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.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.0.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.0
  13. PKG_HASH:=7c51fae0f0e7ea9af0f515b2ac77009fb2969a6619ebab47d097dca38b083d30
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  16. PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
  17. PKG_LICENSE_FILES:=COPYING COPYING.LGPL
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/cryptsetup
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Encryption
  23. TITLE:=Cryptsetup
  24. DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
  25. URL:=https://gitlab.com/cryptsetup/cryptsetup/
  26. endef
  27. define Package/cryptsetup/description
  28. Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
  29. endef
  30. CONFIGURE_ARGS += \
  31. --disable-cryptsetup-reencrypt \
  32. --disable-integritysetup \
  33. --disable-selinux \
  34. --disable-rpath \
  35. --disable-veritysetup \
  36. --disable-udev \
  37. --with-default-luks-format=LUKS2 \
  38. --with-crypto_backend=kernel
  39. define Package/cryptsetup/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(CP) $(PKG_BUILD_DIR)/.libs/cryptsetup $(1)/usr/sbin
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_BUILD_DIR)/.libs/libcryptsetup.so* $(1)/usr/lib
  44. endef
  45. $(eval $(call BuildPackage,cryptsetup))