1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Verify GnuPG signature if possible.

This commit is contained in:
Tilman Keskinoz 2003-07-18 13:44:44 +00:00
parent b6d7723f1a
commit 6e38ddfc1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85133
2 changed files with 17 additions and 1 deletions

View File

@ -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>

View File

@ -1 +1,2 @@
MD5 (libksba-0.4.7.tar.gz) = 65ab8dad1f7fb379f72e1d096657a3d7
MD5 (libksba-0.4.7.tar.gz.sig) = e11f7627929155b03b7f7a5a4f593aa5