difos/package/libs/xcrypt/libxcrypt-common.mk
Daniel Golle 99054fcb6a xcrypt: work-around broken use of VARIANT with BUILDONLY
Split the xcrypt package build into two Makefiles and a common part for
the version definition in order to work-around build problems when
combining VARIANT with BUILDONLY and scoped InstallDev.

This is done in order to skip build of libcrypt-compat in case we are
not building against glibc in order to prevent libcrypt.so shared
library being present in staging_dir and by that breaking multiple
packages which then will link against it.

Fixes: e3cf7088f1 ("libcrypt-compat: introduce package")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://github.com/openwrt/openwrt/pull/19353
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-09 10:34:12 +02:00

28 lines
1 KiB
Makefile

PKG_SOURCE_NAME:=libxcrypt
PKG_VERSION:=4.4.38
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/besser82/$(PKG_SOURCE_NAME)/releases/download/v$(PKG_VERSION)
PKG_HASH:=80304b9c306ea799327f01d9a7549bdb28317789182631f1b54f4511b4206dd6
PKG_MAINTAINER:=
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING.LIB
define Package/libxcrypt/Default
SECTION:=libs
CATEGORY:=Libraries
URL:=https://github.com/besser82/libxcrypt
TITLE:=Extended crypt library
endef
define Package/libxcrypt/description
libxcrypt is a modern library for one-way hashing of passwords. It supports
a wide variety of both modern and historical hashing methods: yescrypt,
gost-yescrypt, scrypt, bcrypt, sha512crypt, sha256crypt, md5crypt, SunMD5,
sha1crypt, NT, bsdicrypt, bigcrypt, and descrypt. It provides the traditional
Unix crypt and crypt_r interfaces, as well as a set of extended interfaces
pioneered by Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt,
crypt_gensalt_rn, and crypt_gensalt_ra.
endef