summaryrefslogtreecommitdiffstats
path: root/mail/pgpsendmail/Makefile
blob: 0bd04f6d462ec486056584a2beb16e92384dbea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: ache
# $FreeBSD$

PORTNAME=	pgpsendmail
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.dhp.com/pub/crypto/pgp/PGPsendmail/
DISTNAME=	PGPsendmail-v${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	PGP sign/encrypt/decrypt messages automatically

LICENSE=	GPLv2 LGPL21
LICENSE_COMB=	multi

BUILD_DEPENDS=	pgp:security/pgp

WRKSRC=		${WRKDIR}/${PORTNAME}

PLIST_FILES=	bin/pgpdaemon bin/pgppipe bin/sendpgppass libexec/pgpsendmail \
		man/man1/pgppipe.1.gz man/man1/sendpgppass.1.gz \
		man/man8/pgpsendmail.8.gz man/man8/pgpdaemon.8.gz

post-patch:
	@${REINPLACE_CMD} -e \
		's|^CC =|CC ?=| ; \
		 s|^CFLAGS =|CFLAGS +=| ; \
		 /^all:/s|clean|| ; \
		 /install /s|^|#| ; \
		 s|-s -o|-o| ; \
		 /pgpsendmail.h/s|^|#|' ${WRKSRC}/Makefile

do-install:
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} pgpdaemon pgppipe sendpgppass \
		${STAGEDIR}${PREFIX}/bin)
	${INSTALL_PROGRAM} ${WRKSRC}/pgpsendmail ${STAGEDIR}${PREFIX}/libexec
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} pgppipe.1 sendpgppass.1 \
		${STAGEDIR}${MAN1PREFIX}/man/man1)
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} pgpsendmail.8  pgpdaemon.8 \
		${STAGEDIR}${MAN8PREFIX}/man/man8)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud