diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-07-18 13:44:44 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-07-18 13:44:44 +0000 |
commit | 6e38ddfc1e14ffa1fa0fbe0b9e91f6af0aaba98a (patch) | |
tree | dcb3628acf8a028d6994dea95063d6db8029769b /security/libksba | |
parent | Verify gpg signature if possible. (diff) |
Verify GnuPG signature if possible.
Notes
Notes:
svn path=/head/; revision=85133
Diffstat (limited to 'security/libksba')
-rw-r--r-- | security/libksba/Makefile | 17 | ||||
-rw-r--r-- | security/libksba/distinfo | 1 |
2 files changed, 17 insertions, 1 deletions
diff --git a/security/libksba/Makefile b/security/libksba/Makefile index 42877f3d82ce..ff484ae2963e 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 f06cf04ffd98..c8e348173cb3 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 |