aboutsummaryrefslogtreecommitdiff
path: root/security/libgcrypt
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2003-07-18 13:37:14 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2003-07-18 13:37:14 +0000
commitb6d7723f1a214e9bcb5f6b94d0de5bb7a29697d3 (patch)
tree9c9881709ac465f43e450cb0fdaff60e4df3c6d4 /security/libgcrypt
parent7ea1b9ba2b89cb13374f570b31ba806662748d9a (diff)
Verify gpg signature if possible.
Notes
Notes: svn path=/head/; revision=85132
Diffstat (limited to 'security/libgcrypt')
-rw-r--r--security/libgcrypt/Makefile19
-rw-r--r--security/libgcrypt/distinfo1
2 files changed, 18 insertions, 2 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile
index 09c7be21e5b7..0f547e084834 100644
--- a/security/libgcrypt/Makefile
+++ b/security/libgcrypt/Makefile
@@ -9,18 +9,33 @@ PORTVERSION= 1.1.12
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= alpha/libgcrypt
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}.sig
MAINTAINER= arved@FreeBSD.org
COMMENT= "General purpose crypto library based on code used in GnuPG"
USE_REINPLACE= yes
USE_PERL5= yes
-#USE_AUTOCONF_VER= 253
USE_LIBTOOL= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+pre-extract:
+.if exists(${PREFIX}/bin/gpg)
+ @${ECHO_CMD} "===> Verifying GnuPG Signature."
+ -${PREFIX}/bin/gpg --keyserver pgp.mit.edu --recv-key 57548DCD
+ cd ${DISTDIR}; ${PREFIX}/bin/gpg --verify \
+ ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}.sig \
+ ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
+.else
+ @${ECHO_CMD} "===> GnuPG not installed. Signature can not be verified"
+.endif
+
+
post-patch:
@${REINPLACE_CMD} -e "s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|" \
${WRKSRC}/scripts/ltmain.sh
@@ -28,4 +43,4 @@ post-patch:
pre-configure:
@${RM} -f ${WRKSRC}/doc/gcrypt.info*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/libgcrypt/distinfo b/security/libgcrypt/distinfo
index 4abd6a50dafe..cc1e9b7ebb37 100644
--- a/security/libgcrypt/distinfo
+++ b/security/libgcrypt/distinfo
@@ -1 +1,2 @@
MD5 (libgcrypt-1.1.12.tar.gz) = c245f62bf8da9a83c5dae26d9fa3559d
+MD5 (libgcrypt-1.1.12.tar.gz.sig) = a00de178c9f44b9a30f5f04f6260538c