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.

78 lines
1.9 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:=1.7.2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
  12. PKG_LICENSE_FILES:=COPYING COPYING.LGPL
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v1.7
  15. PKG_MD5SUM:=a11a140cea496961222170944db01fc1
  16. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  20. define Package/cryptsetup/Default
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Cryptsetup
  24. DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +@KERNEL_DIRECT_IO
  25. URL:=http://code.google.com/p/cryptsetup/
  26. endef
  27. define Package/cryptsetup
  28. $(call Package/cryptsetup/Default)
  29. DEPENDS+=+libgcrypt
  30. VARIANT:=gcrypt
  31. endef
  32. define Package/cryptsetup-openssl
  33. $(call Package/cryptsetup/Default)
  34. TITLE+= (with openssl support)
  35. DEPENDS+=+libopenssl
  36. VARIANT:=openssl
  37. endef
  38. define Package/cryptsetup/Default/description
  39. Cryptsetup-luks
  40. endef
  41. define Package/cryptsetup/description
  42. $(call Package/cryptsetup/Default/description)
  43. linked against libgcrypt
  44. endef
  45. define Package/cryptsetup-openssl/description
  46. $(call Package/cryptsetup/Default/description)
  47. linked against openssl
  48. endef
  49. ifeq ($(BUILD_VARIANT),openssl)
  50. CONFIGURE_ARGS+= \
  51. --with-crypto_backend=openssl
  52. endif
  53. define Package/cryptsetup/install
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(CP) $(PKG_BUILD_DIR)/src/.libs/cryptsetup $(1)/usr/sbin
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_BUILD_DIR)/lib/.libs/libcryptsetup.so* $(1)/usr/lib
  58. endef
  59. Package/cryptsetup-openssl/install = $(Package/cryptsetup/install)
  60. $(eval $(call BuildPackage,cryptsetup))
  61. $(eval $(call BuildPackage,cryptsetup-openssl))