View | Details | Raw Unified | Return to bug 224282 | Differences between
and this patch

Collapse All | Expand All

(-)i/security/xmlsec1/Makefile (-14 / +18 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	xmlsec1
4
PORTNAME=	xmlsec1
5
PORTVERSION=	1.2.23
5
PORTVERSION=	1.2.25
6
PORTREVISION=	1
7
CATEGORIES=	security
6
CATEGORIES=	security
8
MASTER_SITES=	http://www.aleksey.com/xmlsec/download/ \
7
MASTER_SITES=	http://www.aleksey.com/xmlsec/download/ \
9
		ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
8
		ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
Lines 20-45 LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ Link Here
20
		libgpg-error.so:security/libgpg-error \
19
		libgpg-error.so:security/libgpg-error \
21
		libltdl.so:devel/libltdl
20
		libltdl.so:devel/libltdl
22
21
23
USES=		libtool localbase pathfix pkgconfig ssl
22
USES=		libtool localbase pathfix pkgconfig ssl gmake
24
USE_GNOME=	libxml2 libxslt
23
USE_GNOME=	libxml2 libxslt
25
USE_LDCONFIG=	yes
24
USE_LDCONFIG=	yes
26
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
27
CONFIGURE_ARGS=	--with-openssl="${OPENSSLBASE}" \
26
CONFIGURE_ARGS=	--with-openssl="${OPENSSLBASE}" \
28
		--with-gcrypt="${LOCALBASE}"
27
		--with-gcrypt="${LOCALBASE}" \
28
		--enable-soap \
29
		--disable-docs-build
29
MAKE_ENV=	ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC}
30
MAKE_ENV=	ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC}
30
INSTALL_TARGET=	install-strip
31
INSTALL_TARGET=	install-strip
31
PORTDOCS= api authors.html bugs.html c14n.html documentation.html	\
32
PORTDOCS=	*
32
	download.html faq.html favicon.ico images/bart.gif		\
33
	images/libxml2-logo.png images/libxslt-logo.png			\
34
	images/logo.gif images/openssl-logo.png				\
35
	images/xmlsec-logo.gif index.html news.html related.html	\
36
	xmldsig-verifier.html xmldsig.html xmlenc.html			\
37
	xmlsec-man.html
38
33
39
OPTIONS_DEFINE=	DOCS GNUTLS NSS
34
OPTIONS_DEFINE=		GNUTLS NSS
40
OPTIONS_SUB=	yes
35
OPTIONS_DEFAULT=	NSS
36
OPTIONS_SUB=		yes
41
37
42
DOCS_MAKE_ENV=		DOCS=docs
43
GNUTLS_DESC=		Enable GNUTLS support
38
GNUTLS_DESC=		Enable GNUTLS support
44
GNUTLS_CONFIGURE_ON=	--with-gnutls="${LOCALBASE}"
39
GNUTLS_CONFIGURE_ON=	--with-gnutls="${LOCALBASE}"
45
GNUTLS_CONFIGURE_OFF=	--without-gnutls
40
GNUTLS_CONFIGURE_OFF=	--without-gnutls
Lines 54-59 NSS_LIB_DEPENDS= libnss3.so:security/nss \ Link Here
54
			libplds4.so:devel/nspr \
49
			libplds4.so:devel/nspr \
55
			libplc4.so:devel/nspr
50
			libplc4.so:devel/nspr
56
51
52
post-patch:
53
	@${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \
54
		-e 's/mozilla-nspr/nspr/' ${WRKSRC}/configure
55
	@${REINPLACE_CMD} -e 's/(CP) -ru/(CP) -r/' \
56
		-e 's/(CP) -u/(CP)/' \
57
		${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in \
58
		${WRKSRC}/docs/api/Makefile.am ${WRKSRC}/docs/api/Makefile.in \
59
		${WRKSRC}/man/Makefile.am ${WRKSRC}/man/Makefile.in
60
57
post-patch-GNUTLS-on:
61
post-patch-GNUTLS-on:
58
# Don't rely on broken autodetection
62
# Don't rely on broken autodetection
59
	@${REINPLACE_CMD} -e '/^GNUTLS_FOUND/s/no/yes/' \
63
	@${REINPLACE_CMD} -e '/^GNUTLS_FOUND/s/no/yes/' \
(-)i/security/xmlsec1/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1483094320
1
TIMESTAMP = 1513083917
2
SHA256 (xmlsec1-1.2.23.tar.gz) = 41d463d16c9894cd3317098d027c038039c6d896b9cbb9bad9c4e29959e10e9f
2
SHA256 (xmlsec1-1.2.25.tar.gz) = 967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2
3
SIZE (xmlsec1-1.2.23.tar.gz) = 1794694
3
SIZE (xmlsec1-1.2.25.tar.gz) = 1839160
(-)i/security/xmlsec1/files/patch-Makefile.in (-10 / +3 lines)
Lines 1-13 Link Here
1
--- Makefile.in.orig	2017-01-05 17:38:02.402682000 +0900
1
--- Makefile.in.orig	2017-12-12 16:05:23.187628000 +0300
2
+++ Makefile.in	2017-01-05 17:39:12.079701000 +0900
2
+++ Makefile.in	2017-12-12 16:07:19.241092000 +0300
3
@@ -468,13 +468,13 @@
3
@@ -480,7 +480,7 @@
4
 top_srcdir = @top_srcdir@
5
 NULL = 
6
 SAFE_VERSION = @XMLSEC_VERSION_SAFE@
7
-SUBDIRS = include src apps man docs
8
+SUBDIRS = include src apps man ${DOCS}
9
 TEST_APP = apps/xmlsec1$(EXEEXT)
10
 DEFAULT_CRYPTO = @XMLSEC_DEFAULT_CRYPTO@
11
 bin_SCRIPTS = xmlsec1-config
4
 bin_SCRIPTS = xmlsec1-config
12
 pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@
5
 pkgconfig_DATA = xmlsec1.pc @XMLSEC_CRYPTO_PC_FILES_LIST@
13
 pkgconfigdir = $(prefix)/libdata/pkgconfig
6
 pkgconfigdir = $(prefix)/libdata/pkgconfig
(-)c/security/xmlsec1/files/patch-src-openssl-app.c (-20 lines)
Removed Link Here
1
--- src/openssl/app.c.orig	2017-01-05 18:07:26.936917000 +0900
2
+++ src/openssl/app.c	2017-01-05 18:08:34.388575000 +0900
3
@@ -61,7 +61,7 @@
4
 int
5
 xmlSecOpenSSLAppInit(const char* config) {
6
     
7
-#if (OPENSSL_VERSION_NUMBER < 0x10100000)
8
+#if !defined(XMLSEC_OPENSSL_110)
9
     ERR_load_crypto_strings();
10
     OPENSSL_config(NULL);
11
     OpenSSL_add_all_algorithms();
12
@@ -119,7 +119,7 @@
13
 xmlSecOpenSSLAppShutdown(void) {
14
     xmlSecOpenSSLAppSaveRANDFile(NULL);
15
 
16
-#if (OPENSSL_VERSION_NUMBER < 0x10100000)
17
+#if !defined(XMLSEC_OPENSSL_110)
18
     RAND_cleanup();
19
     EVP_cleanup();
20
 
(-)c/security/xmlsec1/files/patch-src-openssl-openssl11_wrapper.h (-11 lines)
Removed Link Here
1
--- src/openssl/openssl11_wrapper.h.orig	2016-10-16 22:48:17.000000000 +0000
2
+++ src/openssl/openssl11_wrapper.h	2017-01-16 14:02:41.553210002 +0000
3
@@ -9,7 +9,7 @@
4
  * same syntax. This file won't be required once OpenSSL 1.1.0 is the minimum
5
  * suported version.
6
  */
7
-#if (OPENSSL_VERSION_NUMBER < 0x10100000)
8
+#if (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER))
9
 
10
 #define EVP_PKEY_up_ref(pKey)  CRYPTO_add(&((pKey)->references), 1, CRYPTO_LOCK_EVP_PKEY)
11
 
(-)c/security/xmlsec1/files/patch-src_openssl_signatures.c (-10 lines)
Removed Link Here
1
--- src/openssl/signatures.c.orig	2016-04-20 16:26:22 UTC
2
+++ src/openssl/signatures.c
3
@@ -10,6 +10,7 @@
4
 
5
 #include <string.h>
6
 
7
+#include <openssl/ecdsa.h> // ECDSA_SIG
8
 #include <openssl/evp.h>
9
 #include <openssl/rand.h>
10
 #include <openssl/sha.h>
(-)i/security/xmlsec1/pkg-plist (-5 / +5 lines)
Lines 56-75 lib/libxmlsec1-gcrypt.so.1 Link Here
56
%%GNUTLS%%lib/libxmlsec1-gnutls.a
56
%%GNUTLS%%lib/libxmlsec1-gnutls.a
57
%%GNUTLS%%lib/libxmlsec1-gnutls.so
57
%%GNUTLS%%lib/libxmlsec1-gnutls.so
58
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1
58
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1
59
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1.2.23
59
%%GNUTLS%%lib/libxmlsec1-gnutls.so.1.2.25
60
%%NSS%%lib/libxmlsec1-nss.a
60
%%NSS%%lib/libxmlsec1-nss.a
61
%%NSS%%lib/libxmlsec1-nss.so
61
%%NSS%%lib/libxmlsec1-nss.so
62
%%NSS%%lib/libxmlsec1-nss.so.1
62
%%NSS%%lib/libxmlsec1-nss.so.1
63
%%NSS%%lib/libxmlsec1-nss.so.1.2.23
63
%%NSS%%lib/libxmlsec1-nss.so.1.2.25
64
lib/libxmlsec1-gcrypt.so.1.2.23
64
lib/libxmlsec1-gcrypt.so.1.2.25
65
lib/libxmlsec1-openssl.a
65
lib/libxmlsec1-openssl.a
66
lib/libxmlsec1-openssl.so
66
lib/libxmlsec1-openssl.so
67
lib/libxmlsec1-openssl.so.1
67
lib/libxmlsec1-openssl.so.1
68
lib/libxmlsec1-openssl.so.1.2.23
68
lib/libxmlsec1-openssl.so.1.2.25
69
lib/libxmlsec1.a
69
lib/libxmlsec1.a
70
lib/libxmlsec1.so
70
lib/libxmlsec1.so
71
lib/libxmlsec1.so.1
71
lib/libxmlsec1.so.1
72
lib/libxmlsec1.so.1.2.23
72
lib/libxmlsec1.so.1.2.25
73
libdata/pkgconfig/xmlsec1-gcrypt.pc
73
libdata/pkgconfig/xmlsec1-gcrypt.pc
74
%%GNUTLS%%libdata/pkgconfig/xmlsec1-gnutls.pc
74
%%GNUTLS%%libdata/pkgconfig/xmlsec1-gnutls.pc
75
%%NSS%%libdata/pkgconfig/xmlsec1-nss.pc
75
%%NSS%%libdata/pkgconfig/xmlsec1-nss.pc

Return to bug 224282