1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

security/nettle: Update to 3.9.1

- Convert REINPLACE_CMD to patch files

Changes:	https://git.lysator.liu.se/nettle/nettle/-/blob/nettle_3.9.1_release_20230601/NEWS
This commit is contained in:
Po-Chuan Hsieh 2023-06-06 02:38:36 +08:00
parent 3373ea05e8
commit f4058dc124
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 30 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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