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
|
2006-12-21 14:31:56 +01:00
|
|
|
PORTVERSION= 2.0.1
|
2007-01-14 08:03:52 +01: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
|
|
|
|
2007-01-14 08:03:52 +01:00
|
|
|
BUILD_DEPENDS= libassuan>=1.0.1:${PORTSDIR}/security/libassuan
|
2006-12-21 14:31:56 +01:00
|
|
|
LIB_DEPENDS= gcrypt.13:${PORTSDIR}/security/libgcrypt \
|
|
|
|
gpg-error:${PORTSDIR}/security/libgpg-error \
|
|
|
|
ksba.17:${PORTSDIR}/security/libksba \
|
|
|
|
pth.20:${PORTSDIR}/devel/pth
|
|
|
|
|
2006-12-21 16:13:49 +01:00
|
|
|
CONFLICTS= gnupg-devel-[0-9]*
|
|
|
|
|
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
|
2006-12-25 03:59:59 +01:00
|
|
|
USE_GETTEXT= YES
|
2006-12-21 14:31:56 +01:00
|
|
|
CONFIGURE_TARGET=# empty
|
|
|
|
CONFIGURE_ARGS+= --infodir=${PREFIX}/info --mandir=${PREFIX}/man \
|
2007-01-14 08:03:52 +01:00
|
|
|
--enable-nls
|
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 \
|
|
|
|
gpgparsemail.1 symcryptrun.1 gpgsm-gencert.sh.1
|
|
|
|
MAN8= addgnupghome.8
|
|
|
|
INFO= gnupg
|
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 \
|
|
|
|
GPGSM "Enable GPGSM" on
|
2006-12-25 03:59:59 +01:00
|
|
|
PLIST_SUB= NLS=""
|
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
|
|
|
|
RUN_DEPENDS= dirmngr:${PORTSDIR}/security/dirmngr
|
|
|
|
WITH_LDAP= YES
|
|
|
|
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
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
.if defined(WITH_SCDAEMON)
|
|
|
|
CONFIGURE_ARGS+=--enable-scdaemon
|
|
|
|
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb
|
|
|
|
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
|
|
|
|
2006-12-21 14:31:56 +01:00
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" \
|
|
|
|
${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
|
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
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-11-23 15:13:26 +01:00
|
|
|
|
1999-04-17 06:51:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|