You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

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