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.

54 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cryptsetup
  9. PKG_VERSION:=2.1.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.1
  13. PKG_HASH:=a3eeb2741f8f3376d16585191f3c60e067dd987e096c3c4b073fab7748b1c897
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING COPYING.LGPL
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/cryptsetup
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. SUBMENU:=Encryption
  22. TITLE:=Cryptsetup
  23. DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
  24. URL:=https://gitlab.com/cryptsetup/cryptsetup/
  25. endef
  26. define Package/cryptsetup/description
  27. Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
  28. endef
  29. CONFIGURE_ARGS += \
  30. --disable-cryptsetup-reencrypt \
  31. --disable-integritysetup \
  32. --disable-selinux \
  33. --disable-rpath \
  34. --disable-veritysetup \
  35. --disable-udev \
  36. --with-default-luks-format=LUKS2 \
  37. --with-crypto_backend=kernel
  38. define Package/cryptsetup/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(CP) $(PKG_BUILD_DIR)/.libs/cryptsetup $(1)/usr/sbin
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/.libs/libcryptsetup.so* $(1)/usr/lib
  43. endef
  44. $(eval $(call BuildPackage,cryptsetup))