1998-11-23 15:13:26 +01:00
|
|
|
# New ports collection makefile for: gnupg
|
|
|
|
# Date created: Sep 30, 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: kuriyama@FreeBSD.org
|
1998-11-23 15:13:26 +01:00
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1998-11-23 15:13:26 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= gnupg
|
2011-08-05 02:35:25 +02:00
|
|
|
PORTVERSION= 2.0.18
|
2011-09-26 16:49:01 +02:00
|
|
|
PORTREVISION= 1
|
1998-11-23 15:13:26 +01:00
|
|
|
CATEGORIES= security
|
2003-02-15 13:35:42 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG}
|
2000-11-06 09:37:20 +01:00
|
|
|
MASTER_SITE_SUBDIR= gnupg
|
2002-10-06 10:55:25 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-11-23 15:13:26 +01:00
|
|
|
|
1999-08-31 08:53:31 +02:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2003-02-22 08:48:51 +01:00
|
|
|
COMMENT= The GNU Privacy Guard
|
1998-11-23 15:13:26 +01:00
|
|
|
|
2011-01-14 08:42:11 +01:00
|
|
|
LIB_DEPENDS= assuan.0:${PORTSDIR}/security/libassuan \
|
2011-07-03 13:40:49 +02:00
|
|
|
gcrypt.18:${PORTSDIR}/security/libgcrypt \
|
2006-12-21 14:31:56 +01:00
|
|
|
gpg-error:${PORTSDIR}/security/libgpg-error \
|
2011-03-27 21:03:02 +02:00
|
|
|
ksba.19:${PORTSDIR}/security/libksba \
|
2006-12-21 14:31:56 +01:00
|
|
|
pth.20:${PORTSDIR}/devel/pth
|
|
|
|
|
2010-07-20 16:01:50 +02:00
|
|
|
LICENSE= GPLv3 LGPL3
|
|
|
|
LICENSE_COMB= multi
|
2010-07-23 15:43:26 +02:00
|
|
|
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
|
|
|
|
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LIB
|
2002-10-06 10:55:25 +02:00
|
|
|
USE_BZIP2= YES
|
2002-04-30 15:13:01 +02:00
|
|
|
USE_GMAKE= YES
|
1999-03-14 04:12:11 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2006-12-21 14:31:56 +01:00
|
|
|
USE_ICONV= YES
|
|
|
|
USE_LDCONFIG= YES
|
2009-01-13 02:24:47 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-symcryptrun
|
2008-03-04 23:57:41 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --disable-doc
|
|
|
|
.else
|
2006-12-21 14:31:56 +01:00
|
|
|
MAN1= gpg2.1 gpgsm.1 gpgv2.1 gpg-agent.1 scdaemon.1 watchgnupg.1 \
|
|
|
|
gpgconf.1 gpg-preset-passphrase.1 gpg-connect-agent.1 \
|
2009-01-13 02:24:47 +01:00
|
|
|
gpgparsemail.1 symcryptrun.1 gpgsm-gencert.sh.1 gpg-zip.1
|
2007-03-08 22:20:17 +01:00
|
|
|
MAN8= addgnupghome.8 applygnupgdefaults.8
|
2006-12-21 14:31:56 +01:00
|
|
|
INFO= gnupg
|
2008-03-04 23:57:41 +01:00
|
|
|
.endif
|
2006-08-17 21:39:48 +02:00
|
|
|
|
2006-08-02 03:34:30 +02:00
|
|
|
OPTIONS= LDAP "LDAP keyserver interface" off \
|
2006-12-21 14:31:56 +01:00
|
|
|
SCDAEMON "Enable Smartcard daemon (with libusb)" off \
|
2007-01-14 08:03:52 +01:00
|
|
|
CURL "Use the real curl library (worked around if no)" on \
|
2011-02-08 04:40:15 +01:00
|
|
|
GPGSM "Enable GPGSM (requires LDAP)" off \
|
2009-01-13 02:24:47 +01:00
|
|
|
KDNS "Use DNS CERT helper" off \
|
2010-07-20 16:01:50 +02:00
|
|
|
STD_SOCKET "Use standard socket for agent" off \
|
2008-03-04 23:57:41 +01:00
|
|
|
NLS "National Language Support" off
|
2006-08-02 03:34:30 +02:00
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-14 08:03:52 +01:00
|
|
|
.if defined(WITHOUT_GPGSM)
|
|
|
|
CONFIGURE_ARGS+=--disable-gpgsm
|
|
|
|
PLIST_SUB+= GPGSM="@comment "
|
|
|
|
.else
|
2007-09-03 06:31:51 +02:00
|
|
|
RUN_DEPENDS= dirmngr:${PORTSDIR}/security/dirmngr
|
2007-01-14 08:03:52 +01:00
|
|
|
WITH_LDAP= YES
|
2007-10-13 13:10:09 +02:00
|
|
|
.undef WITHOUT_LDAP
|
2007-01-14 08:03:52 +01:00
|
|
|
PLIST_SUB+= GPGSM=""
|
|
|
|
.endif
|
|
|
|
|
2004-08-04 05:42:11 +02:00
|
|
|
.if defined(WITH_LDAP)
|
2006-12-21 14:31:56 +01:00
|
|
|
USE_OPENLDAP= YES
|
|
|
|
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
|
|
|
|
PLIST_SUB+= LDAP=""
|
2002-10-06 10:55:25 +02:00
|
|
|
.else
|
2006-12-21 14:31:56 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
|
|
|
PLIST_SUB+= LDAP="@comment "
|
2002-10-06 10:55:25 +02:00
|
|
|
.endif
|
2002-02-04 00:00:56 +01:00
|
|
|
|
2009-01-13 02:24:47 +01:00
|
|
|
.if defined(WITH_KDNS) && !defined(WITHOUT_KDNS)
|
|
|
|
LIB_DEPENDS+= adns:${PORTSDIR}/dns/adns
|
|
|
|
PLIST_SUB+= ADNS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_SUB= -e '/GPGKEYS_KDNS=/s/".*"/""/'
|
|
|
|
PLIST_SUB+= ADNS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2010-07-20 16:01:50 +02:00
|
|
|
.if defined(WITH_STD_SOCKET) && !defined(WITHOUT_STD_SOCKET)
|
|
|
|
CONFIGURE_ARGS+=--enable-standard-socket
|
|
|
|
.endif
|
|
|
|
|
2008-03-04 23:57:41 +01:00
|
|
|
.if defined(WITH_NLS) && !defined(WITHOUT_NLS)
|
2008-07-27 17:13:59 +02:00
|
|
|
USE_GETTEXT= YES
|
2007-01-14 08:27:47 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
|
|
PLIST_SUB+= NLS=""
|
2008-03-04 23:57:41 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
2007-01-14 08:27:47 +01:00
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
.if defined(WITH_SCDAEMON)
|
|
|
|
CONFIGURE_ARGS+=--enable-scdaemon
|
2009-03-09 18:15:43 +01:00
|
|
|
. if ${OSVERSION} < 800069
|
2006-12-21 14:31:56 +01:00
|
|
|
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb
|
2009-03-09 18:15:43 +01:00
|
|
|
. endif
|
2006-12-21 14:31:56 +01:00
|
|
|
PLIST_SUB+= SCDAEMON=""
|
2006-08-17 21:39:48 +02:00
|
|
|
.else
|
2006-12-21 14:31:56 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-scdaemon
|
|
|
|
PLIST_SUB+= SCDAEMON="@comment "
|
2006-08-17 21:39:48 +02:00
|
|
|
.endif
|
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
.if defined(WITHOUT_CURL)
|
|
|
|
CONFIGURE_ARGS+=--without-libcurl
|
|
|
|
.else
|
2006-10-05 15:37:17 +02:00
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
|
|
|
CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
verify: checksum
|
|
|
|
gpg2 --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig
|
1998-11-23 15:13:26 +01:00
|
|
|
|
2011-08-05 02:35:25 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" ${CONFIGURE_SUB} \
|
2006-12-21 14:31:56 +01:00
|
|
|
${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
|
2011-08-05 02:35:25 +02:00
|
|
|
@${REINPLACE_CMD} -e "/#include <utmp.h>/d" \
|
2010-01-16 07:27:17 +01:00
|
|
|
${WRKSRC}/tools/symcryptrun.c
|
2005-08-01 13:17:24 +02:00
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
post-install:
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2007-08-13 09:57:48 +02:00
|
|
|
.if defined(WITH_SUID_GPG)
|
2010-11-19 04:34:08 +01:00
|
|
|
${CHMOD} u+s ${PREFIX}/bin/gpg2
|
2007-08-13 09:57:48 +02:00
|
|
|
.endif
|
2006-12-21 14:31:56 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-11-23 15:13:26 +01:00
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|