security/libxcrypt: Use upstream release archive and improve port
* Use upstream release tarball, removed USES= autoreconf dependency * Remove patch, not necessary * Add Perl5 build dependency * Use INSTALL_TARGET instead of post-install for stripping * Remove "make test" info, this shouldn't go into the port Makefile PR: 290822 Approved by: maintainer timeout, 1+ month
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
PORTNAME= libxcrypt
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 4.5.2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= https://github.com/besser82/${PORTNAME}/releases/download/v${DISTVERSION}/
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Extended crypt library for descrypt, md5crypt, bcrypt, and others
|
||||
@@ -9,30 +9,17 @@ WWW= https://github.com/besser82/libxcrypt
|
||||
|
||||
LICENSE= LGPL21
|
||||
|
||||
USES= autoreconf gmake libtool pkgconfig
|
||||
USES= gmake libtool pathfix perl5 tar:xz
|
||||
USE_PERL5= build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= besser82
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
|
||||
CONFIGURE_ARGS= --disable-static
|
||||
|
||||
CFLAGS+= -Wno-gnu-statement-expression
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcrypt.so.2.0.0
|
||||
|
||||
# tests as of 4.5.2:
|
||||
# TOTAL: 52
|
||||
# PASS: 51
|
||||
# SKIP: 1
|
||||
# XFAIL: 0
|
||||
# FAIL: 0
|
||||
# XPASS: 0
|
||||
# ERROR: 0
|
||||
CONFIGURE_ARGS= --disable-static
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1764494505
|
||||
SHA256 (besser82-libxcrypt-v4.5.2_GH0.tar.gz) = d99b548636894641e6b29b58ef592cab692e75672155a938c3209c187a872e1e
|
||||
SIZE (besser82-libxcrypt-v4.5.2_GH0.tar.gz) = 575991
|
||||
TIMESTAMP = 1767444612
|
||||
SHA256 (libxcrypt-4.5.2.tar.xz) = 71513a31c01a428bccd5367a32fd95f115d6dac50fb5b60c779d5c7942aec071
|
||||
SIZE (libxcrypt-4.5.2.tar.xz) = 669820
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
- workaround for symbol map containing missing symbols, see https://github.com/besser82/libxcrypt/issues/181
|
||||
|
||||
--- Makefile.am.orig 2024-01-21 03:27:38 UTC
|
||||
+++ Makefile.am
|
||||
@@ -154,12 +154,12 @@ libcrypt_la_LDFLAGS = -version-info $(libcrypt_la_VERS
|
||||
|
||||
libcrypt_la_LDFLAGS = -version-info $(libcrypt_la_VERSION)
|
||||
|
||||
-if HAVE_VSCRIPT
|
||||
-libcrypt_la_LDFLAGS += $(VSCRIPT_LDFLAGS),$(builddir)/libcrypt.map
|
||||
-APPLY_SYMVERS = yes
|
||||
-else
|
||||
+#if HAVE_VSCRIPT
|
||||
+#libcrypt_la_LDFLAGS += $(VSCRIPT_LDFLAGS),$(builddir)/libcrypt.map
|
||||
+#APPLY_SYMVERS = yes
|
||||
+#else
|
||||
APPLY_SYMVERS = no
|
||||
-endif
|
||||
+#endif
|
||||
|
||||
libcrypt_la_LDFLAGS += $(UNDEF_FLAG) $(TEXT_RELOC_FLAG) $(AM_LDFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user