Browse Source

Merge pull request #7631 from neheb/patch-1

cryptsetup: replace libgcrypt with AFALG and remove OpenSSL variant
lilik-openwrt-22.03
Daniel Golle 6 years ago
committed by GitHub
parent
commit
243b06bef5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 40 deletions
  1. +15
    -40
      utils/cryptsetup/Makefile

+ 15
- 40
utils/cryptsetup/Makefile View File

@ -9,63 +9,41 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=cryptsetup
PKG_VERSION:=2.0.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.0
PKG_HASH:=7c51fae0f0e7ea9af0f515b2ac77009fb2969a6619ebab47d097dca38b083d30
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
PKG_LICENSE_FILES:=COPYING COPYING.LGPL
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
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
define Package/cryptsetup
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Encryption
TITLE:=Cryptsetup
DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO
DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
URL:=https://gitlab.com/cryptsetup/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
Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
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
CONFIGURE_ARGS += \
--disable-cryptsetup-reencrypt \
--disable-integritysetup \
--disable-selinux \
--disable-rpath \
--disable-veritysetup \
--disable-udev \
--with-default-luks-format=LUKS2 \
--with-crypto_backend=kernel
define Package/cryptsetup/install
$(INSTALL_DIR) $(1)/usr/sbin
@ -74,7 +52,4 @@ define Package/cryptsetup/install
$(CP) $(PKG_BUILD_DIR)/.libs/libcryptsetup.so* $(1)/usr/lib
endef
Package/cryptsetup-openssl/install = $(Package/cryptsetup/install)
$(eval $(call BuildPackage,cryptsetup))
$(eval $(call BuildPackage,cryptsetup-openssl))

Loading…
Cancel
Save