Lines 1-11
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= gnupg |
3 |
PORTNAME= gnupg |
4 |
PORTVERSION= 2.1.0 |
4 |
PORTVERSION= 2.1.1 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= security |
5 |
CATEGORIES= security |
7 |
MASTER_SITES= ${MASTER_SITE_GNUPG} |
6 |
MASTER_SITES= GNUPG/gnupg |
8 |
MASTER_SITE_SUBDIR= gnupg |
|
|
9 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig |
7 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig |
10 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
8 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
11 |
|
9 |
|
Lines 25-76
BUILD_DEPENDS= libgpg-error>=1.11:${PORT
Link Here
|
25 |
RUN_DEPENDS= pinentry>0:${PORTSDIR}/security/pinentry |
23 |
RUN_DEPENDS= pinentry>0:${PORTSDIR}/security/pinentry |
26 |
|
24 |
|
27 |
GNU_CONFIGURE= YES |
25 |
GNU_CONFIGURE= YES |
28 |
USES= gmake iconv tar:bzip2 |
26 |
USES= gmake iconv pkgconfig tar:bzip2 |
29 |
USE_LDCONFIG= YES |
27 |
USE_LDCONFIG= YES |
30 |
CONFIGURE_ARGS+= --enable-symcryptrun --enable-gpgsm |
28 |
CONFIGURE_ARGS= --disable-ntbtls --enable-symcryptrun |
31 |
CONFLICTS= gnupg-2.0.* |
29 |
CONFLICTS= gnupg-2.0.* |
32 |
|
30 |
|
33 |
OPTIONS_DEFINE= LDAP SCDAEMON KDNS NLS DOCS SUID_GPG |
31 |
OPTIONS_DEFINE= GNUTLS LDAP SCDAEMON KDNS NLS DOCS SUID_GPG |
34 |
LDAP_DESC= LDAP keyserver interface |
32 |
LDAP_DESC= LDAP keyserver interface |
35 |
SCDAEMON_DESC= Enable Smartcard daemon (with libusb) |
33 |
SCDAEMON_DESC= Enable Smartcard daemon (with libusb) |
36 |
KDNS_DESC= Use DNS CERT helper |
34 |
KDNS_DESC= Use DNS CERT helper |
37 |
SUID_GPG_DESC= Install GPG with suid |
35 |
SUID_GPG_DESC= Install GPG with suid |
38 |
OPTIONS_DEFAULT= # |
36 |
OPTIONS_DEFAULT= GNUTLS |
39 |
NO_OPTIONS_SORT= YES |
37 |
NO_OPTIONS_SORT= YES |
40 |
OPTIONS_SUB= YES |
38 |
OPTIONS_SUB= YES |
41 |
# In jail, SUID is required to avoid warning (security.bsd.unprivileged_mlock sysctl is not used in jail). |
39 |
# In jail, SUID is required to avoid warning (security.bsd.unprivileged_mlock sysctl is not used in jail). |
42 |
|
40 |
|
43 |
DOCS_CONFIGURE_ENABLE= doc |
41 |
DOCS_CONFIGURE_ENABLE= doc |
|
|
42 |
DOCS_INFO= gnupg |
43 |
GNUTLS_CONFIGURE_ENABLE=gnutls |
44 |
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls |
44 |
KDNS_LIB_DEPENDS= libadns.so:${PORTSDIR}/dns/adns |
45 |
KDNS_LIB_DEPENDS= libadns.so:${PORTSDIR}/dns/adns |
45 |
KDNS_CONFIGURE_ON= --with-adns=${LOCALBASE} |
46 |
KDNS_CONFIGURE_ON= --with-adns=${LOCALBASE} |
|
|
47 |
LDAP_CONFIGURE_ENABLE= ldap |
48 |
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE} |
49 |
LDAP_LIBS= -L${LOCALBASE}/lib |
50 |
LDAP_USE= OPENLDAP=yes |
46 |
NLS_USES= gettext |
51 |
NLS_USES= gettext |
47 |
NLS_CONFIGURE_ENABLE= nls |
52 |
NLS_CONFIGURE_ENABLE= nls |
48 |
SCDAEMON_CONFIGURE_ENABLE= scdaemon |
53 |
SCDAEMON_CONFIGURE_ENABLE= scdaemon |
49 |
|
54 |
|
50 |
.include <bsd.port.options.mk> |
|
|
51 |
|
52 |
.if ${PORT_OPTIONS:MDOCS} |
53 |
INFO= gnupg |
54 |
.endif |
55 |
|
56 |
.if ${PORT_OPTIONS:MLDAP} |
57 |
USE_OPENLDAP= YES |
58 |
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} |
59 |
.else |
60 |
CONFIGURE_ARGS+=--disable-ldap |
61 |
.endif |
62 |
|
63 |
.if ! ${PORT_OPTIONS:MKDNS} |
64 |
CONFIGURE_SUB= -e '/GPGKEYS_KDNS=/s/".*"/""/' |
65 |
.endif |
66 |
|
67 |
verify: checksum |
55 |
verify: checksum |
68 |
gpg2 --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig |
56 |
gpg2 --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig |
69 |
|
57 |
|
70 |
post-patch: |
|
|
71 |
@${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" ${CONFIGURE_SUB} \ |
72 |
${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure |
73 |
@${REINPLACE_CMD} -e "/#include <utmp.h>/d" \ |
74 |
${WRKSRC}/tools/symcryptrun.c |
75 |
|
76 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |