Index: head/security/xmlsec1/Makefile =================================================================== --- head/security/xmlsec1/Makefile (revision 461198) +++ head/security/xmlsec1/Makefile (revision 461199) @@ -1,69 +1,73 @@ # Created by: Jim Geovedi # $FreeBSD$ PORTNAME= xmlsec1 -PORTVERSION= 1.2.23 -PORTREVISION= 1 +PORTVERSION= 1.2.25 CATEGORIES= security MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \ ftp://ftp.aleksey.com/pub/xmlsec/releases/ \ ftp://ftp.xmlsoft.org/xmlsec/releases/ \ ftp://ftp.rpmfind.net/pub/XML/xmlsec/releases/ MAINTAINER= hrs@FreeBSD.org COMMENT= XML Security Library LICENSE= MIT LICENSE_FILE= ${WRKSRC}/Copyright 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 CONFIGURE_ARGS= --with-openssl="${OPENSSLBASE}" \ - --with-gcrypt="${LOCALBASE}" + --with-gcrypt="${LOCALBASE}" \ + --enable-soap \ + --disable-docs-build MAKE_ENV= ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC} INSTALL_TARGET= install-strip -PORTDOCS= api authors.html bugs.html c14n.html documentation.html \ - download.html faq.html favicon.ico images/bart.gif \ - images/libxml2-logo.png images/libxslt-logo.png \ - images/logo.gif images/openssl-logo.png \ - images/xmlsec-logo.gif index.html news.html related.html \ - xmldsig-verifier.html xmldsig.html xmlenc.html \ - xmlsec-man.html +PORTDOCS= * -OPTIONS_DEFINE= DOCS GNUTLS NSS +OPTIONS_DEFINE= GNUTLS NSS +OPTIONS_DEFAULT= NSS OPTIONS_SUB= yes -DOCS_MAKE_ENV= DOCS=docs GNUTLS_DESC= Enable GNUTLS support GNUTLS_CONFIGURE_ON= --with-gnutls="${LOCALBASE}" GNUTLS_CONFIGURE_OFF= --without-gnutls GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls NSS_DESC= Enable Mozilla's NSS support NSS_CONFIGURE_ON= --with-nss="${LOCALBASE}" \ --with-nspr="${LOCALBASE}" NSS_CONFIGURE_OFF= --without-nss \ --without-nspr NSS_LIB_DEPENDS= libnss3.so:security/nss \ libnspr4.so:devel/nspr \ 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/' \ -e '/^GNUTLS_LIBS=/s,"","-L${LOCALBASE}/lib -lgnutls",' \ ${WRKSRC}/${CONFIGURE_SCRIPT} post-patch-NSS-on: # Makeing the xmlsec1 executable multi-threaded to let load -lnss, # when needed. @${REINPLACE_CMD} -e 's,^\(xmlsec1_LDADD = \)\\$$,\1 -L${LOCALBASE}/lib -lpthread\\,' \ ${WRKSRC}/apps/Makefile.in .include Index: head/security/xmlsec1/distinfo =================================================================== --- head/security/xmlsec1/distinfo (revision 461198) +++ head/security/xmlsec1/distinfo (revision 461199) @@ -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 Index: head/security/xmlsec1/files/patch-src-openssl-app.c =================================================================== --- head/security/xmlsec1/files/patch-src-openssl-app.c (revision 461198) +++ head/security/xmlsec1/files/patch-src-openssl-app.c (nonexistent) @@ -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(); - Property changes on: head/security/xmlsec1/files/patch-src-openssl-app.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h =================================================================== --- head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h (revision 461198) +++ head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h (nonexistent) @@ -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) - Property changes on: head/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/xmlsec1/files/patch-src_openssl_signatures.c =================================================================== --- head/security/xmlsec1/files/patch-src_openssl_signatures.c (revision 461198) +++ head/security/xmlsec1/files/patch-src_openssl_signatures.c (nonexistent) @@ -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 Property changes on: head/security/xmlsec1/files/patch-src_openssl_signatures.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/xmlsec1/files/patch-Makefile.in =================================================================== --- head/security/xmlsec1/files/patch-Makefile.in (revision 461198) +++ head/security/xmlsec1/files/patch-Makefile.in (revision 461199) @@ -1,18 +1,11 @@ ---- 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 -confexecdir = $(libdir) +confexecdir = $(sysconfdir) confexec_DATA = xmlsec1Conf.sh m4datadir = $(datadir)/aclocal m4data_DATA = xmlsec1.m4 Index: head/security/xmlsec1/pkg-plist =================================================================== --- head/security/xmlsec1/pkg-plist (revision 461198) +++ head/security/xmlsec1/pkg-plist (revision 461199) @@ -1,80 +1,80 @@ bin/xmlsec1 bin/xmlsec1-config etc/xmlsec1Conf.sh include/xmlsec1/xmlsec/app.h include/xmlsec1/xmlsec/base64.h include/xmlsec1/xmlsec/bn.h include/xmlsec1/xmlsec/buffer.h include/xmlsec1/xmlsec/crypto.h include/xmlsec1/xmlsec/dl.h include/xmlsec1/xmlsec/errors.h include/xmlsec1/xmlsec/exports.h include/xmlsec1/xmlsec/gcrypt/app.h include/xmlsec1/xmlsec/gcrypt/crypto.h include/xmlsec1/xmlsec/gcrypt/symbols.h %%GNUTLS%%include/xmlsec1/xmlsec/gnutls/app.h %%GNUTLS%%include/xmlsec1/xmlsec/gnutls/crypto.h %%GNUTLS%%include/xmlsec1/xmlsec/gnutls/symbols.h %%GNUTLS%%include/xmlsec1/xmlsec/gnutls/x509.h include/xmlsec1/xmlsec/io.h include/xmlsec1/xmlsec/keyinfo.h include/xmlsec1/xmlsec/keys.h include/xmlsec1/xmlsec/keysdata.h include/xmlsec1/xmlsec/keysmngr.h include/xmlsec1/xmlsec/list.h include/xmlsec1/xmlsec/membuf.h include/xmlsec1/xmlsec/nodeset.h %%NSS%%include/xmlsec1/xmlsec/nss/app.h %%NSS%%include/xmlsec1/xmlsec/nss/bignum.h %%NSS%%include/xmlsec1/xmlsec/nss/crypto.h %%NSS%%include/xmlsec1/xmlsec/nss/keysstore.h %%NSS%%include/xmlsec1/xmlsec/nss/pkikeys.h %%NSS%%include/xmlsec1/xmlsec/nss/symbols.h %%NSS%%include/xmlsec1/xmlsec/nss/x509.h include/xmlsec1/xmlsec/openssl/app.h include/xmlsec1/xmlsec/openssl/bn.h include/xmlsec1/xmlsec/openssl/crypto.h include/xmlsec1/xmlsec/openssl/evp.h include/xmlsec1/xmlsec/openssl/symbols.h 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 include/xmlsec1/xmlsec/version.h include/xmlsec1/xmlsec/x509.h include/xmlsec1/xmlsec/xmldsig.h include/xmlsec1/xmlsec/xmlenc.h include/xmlsec1/xmlsec/xmlsec.h include/xmlsec1/xmlsec/xmltree.h lib/libxmlsec1-gcrypt.a lib/libxmlsec1-gcrypt.so 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 libdata/pkgconfig/xmlsec1-openssl.pc libdata/pkgconfig/xmlsec1.pc man/man1/xmlsec1-config.1.gz man/man1/xmlsec1.1.gz share/aclocal/xmlsec1.m4