git: 1c18eaf91305 - main - security/libxcrypt: Use upstream release archive and improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Jan 2026 12:04:39 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1c18eaf913051e7e2503f05d438cc1636d66e554
commit 1c18eaf913051e7e2503f05d438cc1636d66e554
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2026-01-03 12:01:24 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2026-01-03 12:02:00 +0000
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
---
security/libxcrypt/Makefile | 23 +++++------------------
security/libxcrypt/distinfo | 6 +++---
security/libxcrypt/files/patch-Makefile.am | 22 ----------------------
3 files changed, 8 insertions(+), 43 deletions(-)
diff --git a/security/libxcrypt/Makefile b/security/libxcrypt/Makefile
index 5b7aff9ed91f..ec3c9f6d9755 100644
--- a/security/libxcrypt/Makefile
+++ b/security/libxcrypt/Makefile
@@ -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>
diff --git a/security/libxcrypt/distinfo b/security/libxcrypt/distinfo
index 8140a2debc58..b0aef070ad76 100644
--- a/security/libxcrypt/distinfo
+++ b/security/libxcrypt/distinfo
@@ -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
diff --git a/security/libxcrypt/files/patch-Makefile.am b/security/libxcrypt/files/patch-Makefile.am
deleted file mode 100644
index a68a0d9d1aa6..000000000000
--- a/security/libxcrypt/files/patch-Makefile.am
+++ /dev/null
@@ -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)
-