aboutsummaryrefslogtreecommitdiff
path: root/mail/pgpsendmail/Makefile
blob: 0588d446b9389c57d5fd155523ab8f383a9cde6d (plain) (blame)
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
44
45
46
47
48
49
50
# 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:${PORTSDIR}/security/pgp

WRKSRC=		${WRKDIR}/${PORTNAME}


MAN1=		pgppipe.1 sendpgppass.1
MAN8=		pgpsendmail.8 pgpdaemon.8
PLIST_FILES=	bin/pgpdaemon bin/pgppipe bin/sendpgppass libexec/pgpsendmail

NO_STAGE=	yes
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:
.for i in pgpdaemon pgppipe sendpgppass
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin)
.endfor
.for i in pgpsendmail
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/libexec)
.endfor
.for i in ${MAN1}
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${i} ${MAN1PREFIX}/man/man1)
.endfor
.for i in ${MAN8}
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${i} ${MAN8PREFIX}/man/man8)
.endfor

.include <bsd.port.mk>