Index: head/security/xmlsec1/Makefile =================================================================== --- head/security/xmlsec1/Makefile (revision 526437) +++ head/security/xmlsec1/Makefile (revision 526438) @@ -1,73 +1,74 @@ # Created by: Jim Geovedi # $FreeBSD$ PORTNAME= xmlsec1 -PORTVERSION= 1.2.25 +PORTVERSION= 1.2.29 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= gmake gnome libtool localbase pathfix pkgconfig ssl USE_GNOME= libxml2 libxslt USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-openssl="${OPENSSLBASE}" \ --with-gcrypt="${LOCALBASE}" \ --enable-soap \ --disable-docs-build MAKE_ENV= ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC} INSTALL_TARGET= install-strip PORTDOCS= * +PLIST_SUB= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= DOCS GNUTLS NSS OPTIONS_DEFAULT= NSS OPTIONS_SUB= yes 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 526437) +++ head/security/xmlsec1/distinfo (revision 526438) @@ -1,3 +1,3 @@ -TIMESTAMP = 1513083917 -SHA256 (xmlsec1-1.2.25.tar.gz) = 967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2 -SIZE (xmlsec1-1.2.25.tar.gz) = 1839160 +TIMESTAMP = 1581996323 +SHA256 (xmlsec1-1.2.29.tar.gz) = b1d1deba966019930f608d1f2b95c40ca3450f1393bcd3a3c001a8ba1d2839ab +SIZE (xmlsec1-1.2.29.tar.gz) = 1989360 Index: head/security/xmlsec1/files/patch-configure.ac =================================================================== --- head/security/xmlsec1/files/patch-configure.ac (revision 526437) +++ head/security/xmlsec1/files/patch-configure.ac (nonexistent) @@ -1,33 +0,0 @@ ---- configure.ac.orig 2017-09-12 13:21:09 UTC -+++ configure.ac -@@ -493,7 +493,7 @@ if test "z$OPENSSL_FOUND" = "zyes" -a "z - yes - #endif - ],[ -- OPENSSL_VERSION="1.0.0 (libressl)" -+ OPENSSL_VERSION="1.0.0 (libressl < 2.7)" - ],[ - OPENSSL_VERSION="" - ]) -@@ -502,7 +502,20 @@ if test "z$OPENSSL_FOUND" = "zyes" -a "z - if test "z$OPENSSL_VERSION" = "z" ; then - AC_EGREP_CPP(yes,[ - #include -- #if OPENSSL_VERSION_NUMBER >= 0x10100000L -+ #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L -+ yes -+ #endif -+ ],[ -+ OPENSSL_VERSION="1.1.0 (libressl >= 2.7)" -+ ],[ -+ OPENSSL_VERSION="" -+ ]) -+ fi -+ -+ if test "z$OPENSSL_VERSION" = "z" ; then -+ AC_EGREP_CPP(yes,[ -+ #include -+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - yes - #endif - ],[ Property changes on: head/security/xmlsec1/files/patch-configure.ac ___________________________________________________________________ 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-configure =================================================================== --- head/security/xmlsec1/files/patch-configure (revision 526437) +++ head/security/xmlsec1/files/patch-configure (nonexistent) @@ -1,135 +0,0 @@ ---- configure.orig 2017-09-12 13:21:59 UTC -+++ configure -@@ -12661,7 +12649,7 @@ CC=$lt_save_CC - - - --if test "z$RM" == "z" ; then -+if test "z$RM" = "z" ; then - # Extract the first word of "rm", so it can be a program name with args. - set dummy rm; ac_word=$2 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -@@ -13648,7 +13636,7 @@ case "${host}" in - ;; - esac - --if test "z$shrext" == "z" ; then -+if test "z$shrext" = "z" ; then - shrext=$shrext_cmds - fi - -@@ -14384,6 +14372,7 @@ elif test "z$with_openssl" != "z" ; then - *-*-osf5*) openssl_exlibs=;; - *-*-openbsd*) openssl_exlibs=;; - *-*-netbsd*) openssl_exlibs=;; -+ *-*-freebsd*) openssl_exlibs=;; - #FIXME: check if lib "dl" is required - *) openssl_exlibs=-ldl;; - esac -@@ -14641,9 +14630,9 @@ if test "z$OPENSSL_FOUND" = "zno" ; then - for dir in $ac_openssl_lib_dir ; do - if test -f $dir/libcrypto.a ; then - if test "z$dir" = "z/usr/lib" ; then -- OPENSSL_LIBS="-lcrypto -ldl" -+ OPENSSL_LIBS="-lcrypto" - else -- OPENSSL_LIBS="-L$dir -lcrypto -ldl" -+ OPENSSL_LIBS="-L$dir -lcrypto " - fi - OPENSSL_LIBS_FOUND="yes" - ac_found_openssl_lib_dir=$dir -@@ -14668,7 +14669,7 @@ $as_echo_n "checking for openssl librari - /* end confdefs.h. */ - - #include -- #if OPENSSL_VERSION_NUMBER == 0x20000000L && defined(LIBRESSL_VERSION_NUMBER) -+ #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L - yes - #endif - -@@ -14676,7 +14665,7 @@ _ACEOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : - -- OPENSSL_VERSION="1.0.0 (libressl)" -+ OPENSSL_VERSION="1.0.0 (LibreSSL < 2.7)" - - else - -@@ -14692,7 +14681,31 @@ rm -f conftest* - /* end confdefs.h. */ - - #include -- #if OPENSSL_VERSION_NUMBER >= 0x10100000L -+ #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L -+ yes -+ #endif -+ -+_ACEOF -+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -+ $EGREP "yes" >/dev/null 2>&1; then : -+ -+ OPENSSL_VERSION="1.1.0 (LibreSSL >= 2.7)" -+ -+else -+ -+ OPENSSL_VERSION="" -+ -+fi -+rm -f conftest* -+ -+ fi -+ -+ if test "z$OPENSSL_VERSION" = "z" ; then -+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext -+/* end confdefs.h. */ -+ -+ #include -+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) - yes - #endif - -@@ -14749,12 +14762,12 @@ fi - if test "z$OPENSSL_FOUND" = "zyes" ; then - XMLSEC_NO_OPENSSL="0" - OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1" -- XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl" -+ XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"; CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS" - else - XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl" - fi - -- if test "z$XMLSEC_NO_OPENSSL" == "z1"; then -+ if test "z$XMLSEC_NO_OPENSSL" = "z1"; then - XMLSEC_NO_OPENSSL_TRUE= - XMLSEC_NO_OPENSSL_FALSE='#' - else -@@ -14776,7 +14789,7 @@ NSPR_MIN_VERSION="4.4.1" - NSS_CFLAGS="" - NSS_LIBS="" - NSS_LIBS_LIST="-lnss3 -lsmime3" --NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4" -+NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4 -lpthread" - NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss" - NSS_FOUND="no" - NSPR_PACKAGE=mozilla-nspr -@@ -15211,15 +15224,15 @@ $as_echo_n "checking for nss libraries > - NSS_NSS_H="" - - if test "z$with_nss" != "z" ; then -- NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss" -+ NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include/nss/nss -I$with_nss/include/nss" - if test "z$with_gnu_ld" = "zyes" ; then -- NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST" -+ NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib/nss -L$with_nss/lib/nss $NSS_LIBS_LIST" - else -- NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST" -+ NSS_LIBS="$NSS_LIBS -L$with_nss/lib/nss $NSS_LIBS_LIST" - fi - NSS_INCLUDES_FOUND="yes" - NSS_LIBS_FOUND="yes" -- NSS_NSS_H="$with_nss/include/nss.h" -+ NSS_NSS_H="$with_nss/include/nss/nss/nss.h" - else - for dir in $ac_nss_inc_dir ; do - if test -f $dir/nss/nss.h ; then Property changes on: head/security/xmlsec1/files/patch-configure ___________________________________________________________________ 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-include_xmlsec_openssl_crypto.h =================================================================== --- head/security/xmlsec1/files/patch-include_xmlsec_openssl_crypto.h (revision 526437) +++ head/security/xmlsec1/files/patch-include_xmlsec_openssl_crypto.h (nonexistent) @@ -1,19 +0,0 @@ ---- include/xmlsec/openssl/crypto.h.orig 2017-09-12 13:21:09 UTC -+++ include/xmlsec/openssl/crypto.h -@@ -43,11 +43,14 @@ XMLSEC_CRYPTO_EXPORT const xmlChar* - * What version of the openssl API do we have? (also see configure.ac) - * - *******************************************************************/ --#if OPENSSL_VERSION_NUMBER == 0x20000000L && defined(LIBRESSL_VERSION_NUMBER) --/* Libressl decided to take over OpenSSL version 2.0.0, likely will create -+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L -+/* LibreSSL decided to take over OpenSSL version 2.0.0, likely will create - * issues down the road... - */ - #define XMLSEC_OPENSSL_API_100 1 -+#elif defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L -+/* LibreSSL 2.7 implements OpenSSL 1.1 API */ -+#define XMLSEC_OPENSSL_API_110 1 - #elif OPENSSL_VERSION_NUMBER >= 0x10100000L - #define XMLSEC_OPENSSL_API_110 1 - #elif OPENSSL_VERSION_NUMBER >= 0x10000000L Property changes on: head/security/xmlsec1/files/patch-include_xmlsec_openssl_crypto.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/pkg-plist =================================================================== --- head/security/xmlsec1/pkg-plist (revision 526437) +++ head/security/xmlsec1/pkg-plist (revision 526438) @@ -1,80 +1,79 @@ 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.25 +%%GNUTLS%%lib/libxmlsec1-gnutls.so.%%PORTVERSION%% %%NSS%%lib/libxmlsec1-nss.a %%NSS%%lib/libxmlsec1-nss.so %%NSS%%lib/libxmlsec1-nss.so.1 -%%NSS%%lib/libxmlsec1-nss.so.1.2.25 -lib/libxmlsec1-gcrypt.so.1.2.25 +%%NSS%%lib/libxmlsec1-nss.so.%%PORTVERSION%% +lib/libxmlsec1-gcrypt.so.%%PORTVERSION%% lib/libxmlsec1-openssl.a lib/libxmlsec1-openssl.so lib/libxmlsec1-openssl.so.1 -lib/libxmlsec1-openssl.so.1.2.25 +lib/libxmlsec1-openssl.so.%%PORTVERSION%% lib/libxmlsec1.a lib/libxmlsec1.so lib/libxmlsec1.so.1 -lib/libxmlsec1.so.1.2.25 +lib/libxmlsec1.so.%%PORTVERSION%% 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