2003-01-07 14:02:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gnutls
|
2020-09-06 10:25:41 +00:00
|
|
|
PORTVERSION= 3.6.15
|
2003-01-07 14:02:30 +00:00
|
|
|
CATEGORIES= security net
|
2020-02-02 11:54:35 +00:00
|
|
|
MASTER_SITES= GNUPG/gnutls/v${PORTVERSION:R}
|
2003-01-07 14:02:30 +00:00
|
|
|
|
2016-03-21 12:03:40 +00:00
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= GNU Transport Layer Security library
|
2003-01-07 14:02:30 +00:00
|
|
|
|
2014-07-23 09:54:02 +00:00
|
|
|
LICENSE= GPLv3 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
2017-01-11 22:27:50 +00:00
|
|
|
LICENSE_FILE_GPLv3= ${WRKSRC}/doc/COPYING
|
|
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/doc/COPYING.LESSER
|
2014-01-06 10:59:38 +00:00
|
|
|
|
2016-10-05 13:55:41 +00:00
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp \
|
|
|
|
libnettle.so:security/nettle \
|
2017-01-11 22:27:50 +00:00
|
|
|
libtasn1.so:security/libtasn1 \
|
|
|
|
libunistring.so:devel/libunistring
|
2019-02-24 15:22:40 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
|
2003-01-07 14:02:30 +00:00
|
|
|
|
2018-12-19 09:32:32 +00:00
|
|
|
USES= compiler:c11 cpe gmake iconv libtool localbase makeinfo \
|
2019-02-24 15:22:40 +00:00
|
|
|
pkgconfig tar:xz
|
2006-09-14 03:11:16 +00:00
|
|
|
USE_LDCONFIG= yes
|
2019-02-24 15:22:40 +00:00
|
|
|
|
|
|
|
CPE_VENDOR= gnu
|
2014-07-23 09:54:02 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --disable-guile \
|
2016-03-21 12:03:40 +00:00
|
|
|
--enable-local-libopts \
|
2019-02-24 15:22:40 +00:00
|
|
|
--with-system-priority-file=${PREFIX}/etc/gnutls/default-priorities \
|
|
|
|
--with-default-trust-store-file=${LOCALBASE}/share/certs/ca-root-nss.crt \
|
2016-12-09 10:26:27 +00:00
|
|
|
--with-trousers-lib=${LOCALBASE}/lib/libtspi.so.1 \
|
2019-04-22 08:30:46 +00:00
|
|
|
AUTOGEN=false \
|
2016-03-21 12:03:40 +00:00
|
|
|
ac_cv_type_max_align_t=yes
|
2014-07-23 09:54:02 +00:00
|
|
|
MAKE_ENV= MAKEINFOFLAGS=--no-split
|
2016-03-27 14:57:59 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2019-02-24 15:22:40 +00:00
|
|
|
TEST_TARGET= check
|
2006-05-17 16:42:13 +00:00
|
|
|
|
2020-08-23 12:08:57 +00:00
|
|
|
OPTIONS_DEFINE= DANE EXAMPLES IDN MAN3 NLS P11KIT TPM
|
|
|
|
OPTIONS_DEFAULT= IDN MAN3 P11KIT TPM
|
2014-07-29 09:14:01 +00:00
|
|
|
OPTIONS_SUB= yes
|
2009-01-06 17:55:54 +00:00
|
|
|
|
2016-03-27 14:57:59 +00:00
|
|
|
DANE_DESC= Certificate verification via DNSSEC
|
2016-04-01 14:25:16 +00:00
|
|
|
DANE_LIB_DEPENDS= libunbound.so:dns/unbound
|
2016-03-27 14:57:59 +00:00
|
|
|
DANE_CONFIGURE_ENABLE= libdane
|
|
|
|
|
|
|
|
IDN_CONFIGURE_WITH= idn
|
2017-04-25 14:50:34 +00:00
|
|
|
IDN_LIB_DEPENDS= libidn2.so:dns/libidn2
|
2007-01-02 08:52:38 +00:00
|
|
|
|
2020-08-23 12:08:57 +00:00
|
|
|
MAN3_DESC= Install API manpages (section 3)
|
|
|
|
|
2014-07-23 09:54:02 +00:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2016-12-09 10:26:27 +00:00
|
|
|
NLS_CONFIGURE_OFF= ac_cv_lib_intl_gettext=no
|
2014-07-23 09:54:02 +00:00
|
|
|
NLS_USES= gettext
|
2006-07-06 17:40:10 +00:00
|
|
|
|
2014-07-29 09:14:01 +00:00
|
|
|
P11KIT_DESC= PKCS\#11 and p11-kit support
|
|
|
|
P11KIT_CONFIGURE_WITH= p11-kit
|
2019-02-24 15:22:40 +00:00
|
|
|
P11KIT_CONFIGURE_ON= --with-default-trust-store-pkcs11="pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit"
|
2016-04-01 14:25:16 +00:00
|
|
|
P11KIT_LIB_DEPENDS= libp11-kit.so:security/p11-kit
|
2014-07-29 09:14:01 +00:00
|
|
|
|
2016-12-09 10:26:27 +00:00
|
|
|
TPM_DESC= Trusted Platform Module support
|
2014-07-29 09:14:01 +00:00
|
|
|
TPM_CONFIGURE_WITH= tpm
|
2016-04-01 14:25:16 +00:00
|
|
|
TPM_LIB_DEPENDS= libtspi.so:security/trousers
|
2014-07-29 09:14:01 +00:00
|
|
|
|
2014-07-23 09:54:02 +00:00
|
|
|
INFO= gnutls gnutls-guile
|
2003-01-07 14:02:30 +00:00
|
|
|
|
2012-08-15 13:57:01 +00:00
|
|
|
post-patch:
|
2014-07-23 09:54:02 +00:00
|
|
|
@${RM} ${WRKSRC}/doc/*.info*
|
2019-02-24 15:22:40 +00:00
|
|
|
@${REINPLACE_CMD} 's,/usr/share,${PREFIX}/share,' \
|
|
|
|
${WRKSRC}/doc/manpages/*.[13]
|
|
|
|
@${REINPLACE_CMD} -E 's,/etc/(gnutls|tpasswd),${PREFIX}&,g' \
|
|
|
|
${WRKSRC}/doc/cha-gtls-app.texi \
|
|
|
|
${WRKSRC}/doc/gnutls-api.texi \
|
|
|
|
${WRKSRC}/doc/invoke-certtool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-gnutls-cli.texi \
|
|
|
|
${WRKSRC}/doc/invoke-gnutls-serv.texi \
|
|
|
|
${WRKSRC}/doc/invoke-p11tool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-srptool.texi \
|
|
|
|
${WRKSRC}/doc/manpages/certtool.1 \
|
|
|
|
${WRKSRC}/doc/manpages/gnutls_priority_init2.3 \
|
|
|
|
${WRKSRC}/doc/manpages/gnutls-cli.1 \
|
|
|
|
${WRKSRC}/doc/manpages/gnutls-serv.1 \
|
|
|
|
${WRKSRC}/doc/manpages/p11tool.1 \
|
|
|
|
${WRKSRC}/doc/manpages/srptool.1 \
|
|
|
|
${WRKSRC}/lib/includes/gnutls/pkcs11.h \
|
|
|
|
${WRKSRC}/lib/pkcs11.c \
|
|
|
|
${WRKSRC}/src/p11tool-args.c.bak \
|
2019-12-13 16:28:31 +00:00
|
|
|
${WRKSRC}/src/srptool.c
|
2019-02-24 15:22:40 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
's,/etc/pkcs11/modules,${PREFIX}/share/p11-kit/modules,' \
|
|
|
|
${WRKSRC}/doc/cha-tokens.texi \
|
|
|
|
${WRKSRC}/doc/invoke-p11tool.texi \
|
|
|
|
${WRKSRC}/doc/manpages/p11tool.1 \
|
|
|
|
${WRKSRC}/src/p11tool-args.c.bak
|
|
|
|
# Prevent regeneration. The order is important.
|
|
|
|
@${TOUCH} ${WRKSRC}/doc/enums.texi \
|
|
|
|
${WRKSRC}/doc/invoke-gnutls-cli.texi \
|
|
|
|
${WRKSRC}/doc/invoke-gnutls-cli-debug.texi \
|
|
|
|
${WRKSRC}/doc/invoke-gnutls-serv.texi \
|
|
|
|
${WRKSRC}/doc/invoke-certtool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-ocsptool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-danetool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-srptool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-psktool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-p11tool.texi \
|
|
|
|
${WRKSRC}/doc/invoke-tpmtool.texi \
|
|
|
|
${WRKSRC}/doc/pkcs11-api.texi \
|
|
|
|
${WRKSRC}/doc/manpages/stamp_mans \
|
|
|
|
${WRKSRC}/doc/stamp_enums \
|
|
|
|
${WRKSRC}/doc/stamp_functions
|
2012-08-15 13:57:01 +00:00
|
|
|
|
2003-01-07 14:02:30 +00:00
|
|
|
post-install:
|
2019-02-24 15:22:40 +00:00
|
|
|
@${RM} ${STAGEDIR}${DOCSDIR}/*.png
|
|
|
|
@${RMDIR} ${STAGEDIR}${DOCSDIR}
|
2014-01-06 10:59:38 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-07-23 09:54:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR}
|
2003-01-07 14:02:30 +00:00
|
|
|
|
2018-01-05 02:58:09 +00:00
|
|
|
.include <bsd.port.mk>
|