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.

58 lines
1.6 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.3.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.3
  13. PKG_HASH:=395690de99509428354d3cd15cf023bed01487e6f1565b2181e013dc847bbc85
  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. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/cryptsetup
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. SUBMENU:=Encryption
  24. TITLE:=Cryptsetup
  25. DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
  26. URL:=https://gitlab.com/cryptsetup/cryptsetup/
  27. endef
  28. define Package/cryptsetup/description
  29. Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --disable-cryptsetup-reencrypt \
  33. --disable-integritysetup \
  34. --disable-selinux \
  35. --disable-rpath \
  36. --disable-veritysetup \
  37. --disable-udev \
  38. --with-default-luks-format=LUKS2 \
  39. --with-luks2-lock-path=/var/run/cryptsetup \
  40. --with-crypto_backend=kernel
  41. define Package/cryptsetup/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cryptsetup $(1)/usr/sbin
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so* $(1)/usr/lib
  46. endef
  47. $(eval $(call BuildPackage,cryptsetup))