--- w/security/xmlsec1/Makefile +++ w/security/xmlsec1/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= xmlsec1 -PORTVERSION= 1.2.23 +PORTVERSION= 1.2.25 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \ @@ -20,7 +20,7 @@ LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ libgpg-error.so:security/libgpg-error \ libltdl.so:devel/libltdl -USES= libtool localbase pathfix pkgconfig ssl +USES= libtool localbase pathfix pkgconfig ssl gmake USE_GNOME= libxml2 libxslt USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -37,9 +37,16 @@ PORTDOCS= api authors.html bugs.html c14n.html documentation.html \ xmlsec-man.html OPTIONS_DEFINE= DOCS GNUTLS NSS +OPTIONS_DEFAULT= NSS OPTIONS_SUB= yes -DOCS_MAKE_ENV= DOCS=docs +DOCS_CONFIGURE_ENABLE= docs-build +DOCS_BUILD_DEPENDS= gtkdoc-mkhtml:textproc/gtk-doc \ + gtkdoc-mktmpl:textproc/gtk-doc \ + gtkdoc-mkdb:textproc/gtk-doc \ + gtkdoc-scan:textproc/gtk-doc \ + xsltproc:textproc/libxslt \ + perl:lang/perl5 GNUTLS_DESC= Enable GNUTLS support GNUTLS_CONFIGURE_ON= --with-gnutls="${LOCALBASE}" GNUTLS_CONFIGURE_OFF= --without-gnutls @@ -54,6 +61,15 @@ NSS_LIB_DEPENDS= libnss3.so:security/nss \ libplds4.so:devel/nspr \ libplc4.so:devel/nspr +post-patch: + @${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \ + -e 's/mozilla-nspr/nspr/' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's/(CP) -ru/(CP) -r/' \ + -e 's/(CP) -u/(CP)/' \ + ${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in \ + ${WRKSRC}/docs/api/Makefile.am ${WRKSRC}/docs/api/Makefile.in \ + ${WRKSRC}/man/Makefile.am ${WRKSRC}/man/Makefile.in + post-patch-GNUTLS-on: # Don't rely on broken autodetection @${REINPLACE_CMD} -e '/^GNUTLS_FOUND/s/no/yes/' \ --- w/security/xmlsec1/distinfo +++ w/security/xmlsec1/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1483094320 -SHA256 (xmlsec1-1.2.23.tar.gz) = 41d463d16c9894cd3317098d027c038039c6d896b9cbb9bad9c4e29959e10e9f -SIZE (xmlsec1-1.2.23.tar.gz) = 1794694 +TIMESTAMP = 1513083917 +SHA256 (xmlsec1-1.2.25.tar.gz) = 967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2 +SIZE (xmlsec1-1.2.25.tar.gz) = 1839160 --- w/security/xmlsec1/files/patch-Makefile.in +++ w/security/xmlsec1/files/patch-Makefile.in @@ -1,13 +1,6 @@ ---- Makefile.in.orig 2017-01-05 17:38:02.402682000 +0900 -+++ Makefile.in 2017-01-05 17:39:12.079701000 +0900 -@@ -468,13 +468,13 @@ - top_srcdir = @top_srcdir@ - NULL = - SAFE_VERSION = @XMLSEC_VERSION_SAFE@ --SUBDIRS = include src apps man docs -+SUBDIRS = include src apps man ${DOCS} - TEST_APP = apps/xmlsec1$(EXEEXT) - DEFAULT_CRYPTO = @XMLSEC_DEFAULT_CRYPTO@ +--- Makefile.in.orig 2017-12-12 16:05:23.187628000 +0300 ++++ Makefile.in 2017-12-12 16:07:19.241092000 +0300 +@@ -480,7 +480,7 @@ bin_SCRIPTS = xmlsec1-config pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@ pkgconfigdir = $(prefix)/libdata/pkgconfig --- i/security/xmlsec1/files/patch-src-openssl-app.c +++ /dev/null @@ -1,20 +0,0 @@ ---- src/openssl/app.c.orig 2017-01-05 18:07:26.936917000 +0900 -+++ src/openssl/app.c 2017-01-05 18:08:34.388575000 +0900 -@@ -61,7 +61,7 @@ - int - xmlSecOpenSSLAppInit(const char* config) { - --#if (OPENSSL_VERSION_NUMBER < 0x10100000) -+#if !defined(XMLSEC_OPENSSL_110) - ERR_load_crypto_strings(); - OPENSSL_config(NULL); - OpenSSL_add_all_algorithms(); -@@ -119,7 +119,7 @@ - xmlSecOpenSSLAppShutdown(void) { - xmlSecOpenSSLAppSaveRANDFile(NULL); - --#if (OPENSSL_VERSION_NUMBER < 0x10100000) -+#if !defined(XMLSEC_OPENSSL_110) - RAND_cleanup(); - EVP_cleanup(); - --- i/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/openssl/openssl11_wrapper.h.orig 2016-10-16 22:48:17.000000000 +0000 -+++ src/openssl/openssl11_wrapper.h 2017-01-16 14:02:41.553210002 +0000 -@@ -9,7 +9,7 @@ - * same syntax. This file won't be required once OpenSSL 1.1.0 is the minimum - * suported version. - */ --#if (OPENSSL_VERSION_NUMBER < 0x10100000) -+#if (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)) - - #define EVP_PKEY_up_ref(pKey) CRYPTO_add(&((pKey)->references), 1, CRYPTO_LOCK_EVP_PKEY) - --- i/security/xmlsec1/files/patch-src_openssl_signatures.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/openssl/signatures.c.orig 2016-04-20 16:26:22 UTC -+++ src/openssl/signatures.c -@@ -10,6 +10,7 @@ - - #include - -+#include // ECDSA_SIG - #include - #include - #include --- w/security/xmlsec1/pkg-plist +++ w/security/xmlsec1/pkg-plist @@ -40,7 +40,6 @@ include/xmlsec1/xmlsec/openssl/x509.h include/xmlsec1/xmlsec/parser.h include/xmlsec1/xmlsec/private.h include/xmlsec1/xmlsec/private/xslt.h -include/xmlsec1/xmlsec/soap.h include/xmlsec1/xmlsec/strings.h include/xmlsec1/xmlsec/templates.h include/xmlsec1/xmlsec/transforms.h @@ -56,20 +55,20 @@ lib/libxmlsec1-gcrypt.so.1 %%GNUTLS%%lib/libxmlsec1-gnutls.a %%GNUTLS%%lib/libxmlsec1-gnutls.so %%GNUTLS%%lib/libxmlsec1-gnutls.so.1 -%%GNUTLS%%lib/libxmlsec1-gnutls.so.1.2.23 +%%GNUTLS%%lib/libxmlsec1-gnutls.so.1.2.25 %%NSS%%lib/libxmlsec1-nss.a %%NSS%%lib/libxmlsec1-nss.so %%NSS%%lib/libxmlsec1-nss.so.1 -%%NSS%%lib/libxmlsec1-nss.so.1.2.23 -lib/libxmlsec1-gcrypt.so.1.2.23 +%%NSS%%lib/libxmlsec1-nss.so.1.2.25 +lib/libxmlsec1-gcrypt.so.1.2.25 lib/libxmlsec1-openssl.a lib/libxmlsec1-openssl.so lib/libxmlsec1-openssl.so.1 -lib/libxmlsec1-openssl.so.1.2.23 +lib/libxmlsec1-openssl.so.1.2.25 lib/libxmlsec1.a lib/libxmlsec1.so lib/libxmlsec1.so.1 -lib/libxmlsec1.so.1.2.23 +lib/libxmlsec1.so.1.2.25 libdata/pkgconfig/xmlsec1-gcrypt.pc %%GNUTLS%%libdata/pkgconfig/xmlsec1-gnutls.pc %%NSS%%libdata/pkgconfig/xmlsec1-nss.pc