Files
ports/security/gnupg/Makefile
T
Adriaan de Groot bf8eb67d87 devel/gnupg: update to 2.5.20, latest upstream
The stable branch of GnuPG is the 2.5 series. The 2.4 series is
end-of-life. Release announcement at

	https://lists.gnupg.org/pipermail/gnupg-announce/2026q2/000504.html (2.5.19)
	https://lists.gnupg.org/pipermail/gnupg-announce/2026q2/000505.html (2.5.20)

Co-installability with security/gnupg1 is removed. FreeBSD ports
include compatibility symlinks gpg2 and gpgsplit2 for compatibility
with the 2.4 series which used the gpg-is-gpg2 configuration.

Note that the manpage says "2.6", even though this is version 2.5.
gpg --version does report the correct version.
2026-06-16 15:35:31 +02:00

83 lines
1.9 KiB
Makefile

PORTNAME= gnupg
DISTVERSION= 2.5.20
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= GNUPG
MAINTAINER= adridg@FreeBSD.org
COMMENT= Complete and free PGP implementation
WWW= https://www.gnupg.org/
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LGPL3
LIB_DEPENDS= libassuan.so:security/libassuan \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error \
libksba.so:security/libksba \
libnpth.so:devel/npth
RUN_DEPENDS= pinentry:security/pinentry
USES= compiler:c11 cpe gmake iconv makeinfo pkgconfig readline sqlite \
tar:bzip2
CPE_VENDOR= gnupg
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-ntbtls
TEST_ARGS= TESTARGS=--parallel
TEST_TARGET= check
CONFLICTS= dirmngr
CONFLICTS_INSTALL= gnupg1-*
INFO= gnupg
OPTIONS_DEFINE= DOCS GNUTLS LARGE_RSA LDAP NLS SCDAEMON SUID_GPG \
WKS_SERVER
OPTIONS_DEFAULT= GNUTLS SCDAEMON WKS_SERVER
OPTIONS_SUB= yes
LARGE_RSA_DESC= Enable support for 8192-bit RSA keys
LDAP_DESC= LDAP keyserver interface
SCDAEMON_DESC= Enable Smartcard daemon (with libusb)
SUID_GPG_DESC= Install GPG as SUID root
WKS_SERVER_DESC= Install the Web Key Service server
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_ENABLE= gnutls
LARGE_RSA_CONFIGURE_ENABLE= large-secmem
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap=${LOCALBASE}
LDAP_LIBS= -L${LOCALBASE}/lib
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
SCDAEMON_CONFIGURE_ENABLE= scdaemon
WKS_SERVER_CONFIGURE_ENABLE= wks-tools
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS} && ${PORT_OPTIONS:MLDAP}
PLIST_SUB+= DIRMNGRLDAP=""
.else
PLIST_SUB+= DIRMNGRLDAP="@comment "
.endif
# Touch the texinfo files to force makeinfo to run. This fixes Linuxisms in
# the paths in the man pages.
pre-build:
${TOUCH} ${WRKSRC}/doc/*.texi
post-install:
${MV} ${STAGEDIR}${DATADIR}/help*.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>