summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-07-18 13:44:44 +0000
committerarved <arved@FreeBSD.org>2003-07-18 13:44:44 +0000
commit1107ac90ad79eb6d78d47983e6d18cbcc80a6a11 (patch)
treef8c272db71af3e907e8d744c7fc8f9ca0b929831 /security
parent1f5144b20d0ef11c81a589317e235eee820d576a (diff)
downloadFreeBSD-ports-1107ac90ad79eb6d78d47983e6d18cbcc80a6a11.zip
FreeBSD-ports-1107ac90ad79eb6d78d47983e6d18cbcc80a6a11.tar.gz
Verify GnuPG signature if possible.
Diffstat (limited to 'security')
-rw-r--r--security/libksba/Makefile17
-rw-r--r--security/libksba/distinfo1
2 files changed, 17 insertions, 1 deletions
diff --git a/security/libksba/Makefile b/security/libksba/Makefile
index 42877f3..ff484ae 100644
--- a/security/libksba/Makefile
+++ b/security/libksba/Makefile
@@ -9,6 +9,8 @@ PORTVERSION= 0.4.7
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= alpha/aegypten
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}.sig
MAINTAINER= arved@FreeBSD.org
COMMENT= "KSBA is an X.509 Library"
@@ -20,4 +22,17 @@ CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_AUTOCONF_VER= 253
USE_PERL5_BUILD= yes
-.include <bsd.port.mk>
+.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
+
+.include <bsd.port.post.mk>
diff --git a/security/libksba/distinfo b/security/libksba/distinfo
index f06cf04..c8e3481 100644
--- a/security/libksba/distinfo
+++ b/security/libksba/distinfo
@@ -1 +1,2 @@
MD5 (libksba-0.4.7.tar.gz) = 65ab8dad1f7fb379f72e1d096657a3d7
+MD5 (libksba-0.4.7.tar.gz.sig) = e11f7627929155b03b7f7a5a4f593aa5
OpenPOWER on IntegriCloud