aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-06-05 18:38:36 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-06-05 18:46:55 +0000
commitf4058dc1247c7ffb8ff78af7c2c6431ea057ad0b (patch)
tree6be7cd438691d51aa94f9c0fea48ed2ef25704a1
parent3373ea05e8da543289b0244757769cd4dd463433 (diff)
downloadports-f4058dc1247c7ffb8ff78af7c2c6431ea057ad0b.tar.gz
ports-f4058dc1247c7ffb8ff78af7c2c6431ea057ad0b.zip
security/nettle: Update to 3.9.1
-rw-r--r--security/nettle/Makefile9
-rw-r--r--security/nettle/distinfo6
-rw-r--r--security/nettle/files/extra-patch-Makefile.in11
-rw-r--r--security/nettle/files/patch-configure11
-rw-r--r--security/nettle/pkg-plist4
5 files changed, 30 insertions, 11 deletions
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index 351f62cddc3b..c35970d715af 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -1,5 +1,5 @@
PORTNAME= nettle
-PORTVERSION= 3.9
+PORTVERSION= 3.9.1
CATEGORIES= security
MASTER_SITES= GNU \
https://www.lysator.liu.se/~nisse/archive/
@@ -32,6 +32,7 @@ OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_CFLAGS= -I${OPENSSLINC}
EXAMPLES_USES= ssl
+EXAMPLES_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in
.include <bsd.port.options.mk>
@@ -39,15 +40,11 @@ EXAMPLES_USES= ssl
CONFIGURE_ENV+= CCPIC=-fPIC
.endif
-post-patch:
- @${REINPLACE_CMD} -e '/libdir=/ s|lib32|lib|' ${WRKSRC}/configure
.if ${ARCH} == "mips64"
+post-patch:
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure
.endif
-post-patch-EXAMPLES-off:
- @${REINPLACE_CMD} -e '/SUBDIRS = / s| examples||' ${WRKSRC}/Makefile.in
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
diff --git a/security/nettle/distinfo b/security/nettle/distinfo
index a11068facff0..9896b862e6a8 100644
--- a/security/nettle/distinfo
+++ b/security/nettle/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1685162040
-SHA256 (nettle-3.9.tar.gz) = 0ee7adf5a7201610bb7fe0acbb7c9b3be83be44904dd35ebbcd965cd896bfeaa
-SIZE (nettle-3.9.tar.gz) = 2393838
+TIMESTAMP = 1685792186
+SHA256 (nettle-3.9.1.tar.gz) = ccfeff981b0ca71bbd6fbcb054f407c60ffb644389a5be80d6716d5b550c6ce3
+SIZE (nettle-3.9.1.tar.gz) = 2396741
diff --git a/security/nettle/files/extra-patch-Makefile.in b/security/nettle/files/extra-patch-Makefile.in
new file mode 100644
index 000000000000..2974b822043a
--- /dev/null
+++ b/security/nettle/files/extra-patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2023-06-01 18:40:35 UTC
++++ Makefile.in
+@@ -19,7 +19,7 @@ OPT_NETTLE_SOURCES = @OPT_NETTLE_SOURCES@
+
+ FAT_TEST_LIST = @FAT_TEST_LIST@
+
+-SUBDIRS = tools testsuite examples
++SUBDIRS = tools testsuite # examples
+
+ include config.make
+
diff --git a/security/nettle/files/patch-configure b/security/nettle/files/patch-configure
new file mode 100644
index 000000000000..1b8f460d9501
--- /dev/null
+++ b/security/nettle/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2023-06-01 18:40:35 UTC
++++ configure
+@@ -6638,7 +6638,7 @@ $as_echo "$as_me: WARNING: Cross compiling for linux.
+ # and 64-bit in lib. Don't know about "kfreebsd", does
+ # it follow the Linux fhs conventions?
+ *:freebsd*:32)
+- libdir='${exec_prefix}/lib32'
++ libdir='${exec_prefix}/lib'
+ ;;
+ *:freebsd*:64)
+ libdir='${exec_prefix}/lib'
diff --git a/security/nettle/pkg-plist b/security/nettle/pkg-plist
index 2f96bfaa79a9..a55f056f8e35 100644
--- a/security/nettle/pkg-plist
+++ b/security/nettle/pkg-plist
@@ -78,11 +78,11 @@ include/nettle/yarrow.h
lib/libhogweed.a
lib/libhogweed.so
lib/libhogweed.so.6
-lib/libhogweed.so.6.7
+lib/libhogweed.so.6.8
lib/libnettle.a
lib/libnettle.so
lib/libnettle.so.8
-lib/libnettle.so.8.7
+lib/libnettle.so.8.8
libdata/pkgconfig/hogweed.pc
libdata/pkgconfig/nettle.pc
%%PORTDOCS%%%%DOCSDIR%%/NEWS