Skip to content

Commit f544392

Browse files
rockdrillarobimarko
authored andcommitted
libxcrypt: import from packages feed
Import libxcrypt from the packages feed to the main OpenWrt repo, as glibc 2.41 doesn't provide libcrypt (since 2.39 release). Signed-off-by: Konstantin Demin <[email protected]> Link: openwrt/openwrt#19011 Signed-off-by: Robert Marko <[email protected]>
1 parent 5ab72cf commit f544392

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

package/libs/xcrypt/Makefile

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
include $(TOPDIR)/rules.mk
2+
3+
PKG_NAME:=libxcrypt
4+
PKG_VERSION:=4.4.36
5+
PKG_RELEASE:=1
6+
7+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8+
PKG_SOURCE_URL:=https://github.com/besser82/libxcrypt/releases/download/v$(PKG_VERSION)
9+
PKG_HASH:=e5e1f4caee0a01de2aee26e3138807d6d3ca2b8e67287966d1fefd65e1fd8943
10+
11+
PKG_MAINTAINER:=
12+
PKG_LICENSE:=LGPL-2.1-or-later
13+
PKG_LICENSE_FILES:=COPYING.LIB
14+
15+
PKG_INSTALL:=1
16+
PKG_BUILD_PARALLEL:=1
17+
18+
include $(INCLUDE_DIR)/package.mk
19+
20+
define Package/libxcrypt
21+
SECTION:=libs
22+
CATEGORY:=Libraries
23+
URL:=https://github.com/besser82/libxcrypt
24+
TITLE:=Extended crypt library
25+
BUILDONLY:=1
26+
endef
27+
28+
define Package/libxcrypt/description
29+
libxcrypt is a modern library for one-way hashing of passwords. It supports
30+
a wide variety of both modern and historical hashing methods: yescrypt,
31+
gost-yescrypt, scrypt, bcrypt, sha512crypt, sha256crypt, md5crypt, SunMD5,
32+
sha1crypt, NT, bsdicrypt, bigcrypt, and descrypt. It provides the traditional
33+
Unix crypt and crypt_r interfaces, as well as a set of extended interfaces
34+
pioneered by Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt,
35+
crypt_gensalt_rn, and crypt_gensalt_ra.
36+
endef
37+
38+
CONFIGURE_ARGS += \
39+
--disable-shared \
40+
--disable-failure-tokens \
41+
--disable-xcrypt-compat-files \
42+
--disable-obsolete-api \
43+
--enable-hashes=solaris \
44+
--with-pic
45+
46+
define Build/InstallDev
47+
$(INSTALL_DIR) $(1)/usr/include
48+
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
49+
$(INSTALL_DIR) $(1)/usr/lib/libxcrypt
50+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypt.{a,la} $(1)/usr/lib/libxcrypt
51+
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*crypt.pc $(1)/usr/lib/pkgconfig/
53+
endef
54+
55+
$(eval $(call BuildPackage,libxcrypt))

0 commit comments

Comments
 (0)