blob: 71f4b3f243be474cccb454af0cb7e389af93c3c6 (
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
|
# $FreeBSD$
PORTNAME= pine-pgp-filters
PORTVERSION= 1.8
CATEGORIES= mail security
#MASTER_SITES=
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple /bin/sh-based filters to use GnuPG with Alpine
PLIST_FILES= bin/ppf_mime bin/ppf_mime_decrypt \
libexec/ppf_decrypt libexec/ppf_encrypt libexec/ppf_mime \
libexec/ppf_mime_decrypt libexec/ppf_sign libexec/ppf_verify
NO_STAGE= yes
.include <bsd.port.pre.mk>
RUN_DEPENDS= alpine:${PORTSDIR}/mail/alpine
# We want to be version-agnostic here, but also record the right dependency
# if the user installs the package and already has one or the other installed.
.if exists(${LOCALBASE}/bin/gpg2)
BUILD_DEPENDS= gpg2:${PORTSDIR}/security/gnupg
RUN_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg
.else
BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg1
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg1
.endif
verify: checksum
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc
do-configure:
@(cd ${WRKSRC} && ./configure --prefix=${PREFIX})
PORTDOCS= BUGS CHANGES INSTALL LICENSE README
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|