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.

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