* Use ciphertext blinding for Elgamal decryption [CVE-2014-3591]. See http://www.cs.tau.ac.il/~tromer/radioexp/ for details. * Fixed data-dependent timing variations in modular exponentiation [related to CVE-2015-0837, Last-Level Cache Side-Channel Attacks are Practical]. This update introduces additional fixes and features, see http://lists.gnupg.org/pipermail/gnupg-announce/2015q1/000363.html ok sthen@
70 lines
1.6 KiB
Makefile
70 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.97 2015/03/01 12:12:54 jca Exp $
|
|
|
|
COMMENT= GNU privacy guard - a free PGP replacement
|
|
|
|
DISTNAME= gnupg-1.4.19
|
|
CATEGORIES= security
|
|
|
|
# restrict, not compatible with gnupg-2.
|
|
PKGSPEC = gnupg-<2
|
|
|
|
MASTER_SITES= ${MASTER_SITES_GNUPG:=gnupg/}
|
|
|
|
HOMEPAGE= http://www.gnupg.org/
|
|
|
|
MAINTAINER= Jeremie Courreges-Anglas <jca@wxcvbn.org>
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES= devel/gettext
|
|
LIB_DEPENDS= archivers/bzip2 \
|
|
net/curl
|
|
WANTLIB= c z readline termcap ssl crypto idn bz2>=10 curl>=3
|
|
|
|
# XXX give it a chance on vax
|
|
LIB_DEPENDS += devel/libidn
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/scripts
|
|
CONFIGURE_ARGS+= --disable-gnupg-iconv
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
MAKE_FLAGS= LIBINTL="-L${LOCALBASE}/lib -lintl -liconv" \
|
|
LIBICONV="-L${LOCALBASE}/lib -liconv"
|
|
|
|
FLAVORS= card ldap
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mcard}
|
|
LIB_DEPENDS+= devel/libusb-compat
|
|
WANTLIB += usb pthread
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-card-support --without-libusb
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mldap}
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
LIB_DEPENDS+= databases/openldap
|
|
WANTLIB += ldap>=8
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
.endif
|
|
|
|
|
|
GNUPGDOCFILES= README AUTHORS COPYING THANKS TODO BUGS \
|
|
doc/DETAILS doc/FAQ doc/OpenPGP doc/HACKING
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
pre-configure:
|
|
# mpi/hppa1.1/udiv-qrnnd.S is not PIE-safe
|
|
mv ${WRKSRC}/mpi/hppa/udiv-qrnnd.S ${WRKSRC}/mpi/hppa1.1/
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnupg
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${GNUPGDOCFILES} \
|
|
${PREFIX}/share/doc/gnupg
|
|
|
|
.include <bsd.port.mk>
|