From fc004f77e4dd3e645f9c9785907eb2cb3af35319 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 5 Dec 2014 15:34:10 +0100 Subject: [PATCH] import cryptsetup from oldpackages and bump version to 1.6.6 and switch to kernel.org mirror Signed-off-by: Daniel Golle --- utils/cryptsetup/Makefile | 76 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 utils/cryptsetup/Makefile diff --git a/utils/cryptsetup/Makefile b/utils/cryptsetup/Makefile new file mode 100644 index 0000000000..ac6ad63b88 --- /dev/null +++ b/utils/cryptsetup/Makefile @@ -0,0 +1,76 @@ +# +# Copyright (C) 2006-2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=cryptsetup +PKG_VERSION:=1.6.6 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v1.6 +PKG_MD5SUM:=179c0781de59838a4e39f61b2df5ea48 +PKG_MAINTAINER:=Daniel Golle + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +define Package/cryptsetup/Default + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Cryptsetup + DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +@KERNEL_DIRECT_IO + URL:=http://code.google.com/p/cryptsetup/ +endef + +define Package/cryptsetup +$(call Package/cryptsetup/Default) + DEPENDS+=+libgcrypt + VARIANT:=gcrypt +endef + +define Package/cryptsetup-openssl +$(call Package/cryptsetup/Default) + TITLE+= (with openssl support) + DEPENDS+=+libopenssl + VARIANT:=openssl +endef + +define Package/cryptsetup/Default/description + Cryptsetup-luks +endef + +define Package/cryptsetup/description +$(call Package/cryptsetup/Default/description) +linked against libgcrypt +endef + + +define Package/cryptsetup-openssl/description +$(call Package/cryptsetup/Default/description) +linked against openssl +endef + +ifeq ($(BUILD_VARIANT),openssl) +CONFIGURE_ARGS+= \ + --with-crypto_backend=openssl +endif + +define Package/cryptsetup/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/src/.libs/cryptsetup $(1)/usr/sbin + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/lib/.libs/libcryptsetup.so* $(1)/usr/lib +endef + +Package/cryptsetup-openssl/install = $(Package/cryptsetup/install) + +$(eval $(call BuildPackage,cryptsetup)) +$(eval $(call BuildPackage,cryptsetup-openssl)) -- 2.30.2