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.

70 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.3
  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:=3bca4ffe39e2f94cef50f6ea65acb873a6dbce5db34fc6bcefe38b6d095e82df
  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) +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. TARGET_LDFLAGS += -liconv
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libcryptsetup.h $(1)/usr/include
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so* $(1)/usr/lib
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  49. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcryptsetup.pc $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/cryptsetup/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so* $(1)/usr/lib
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cryptsetup $(1)/usr/sbin
  56. endef
  57. $(eval $(call BuildPackage,cryptsetup))