Merge pull request #16194 from miska/snort3-master
[feed/packages.git] / utils / cryptsetup / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cryptsetup
11 PKG_VERSION:=2.3.6
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.3
16 PKG_HASH:=b296b7a21ea576c2b180611ccb19d06aec8dddaedf7c704b0c6a81210c25635f
17
18 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
19 PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=COPYING COPYING.LGPL
21
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/cryptsetup
29 SECTION:=utils
30 CATEGORY:=Utilities
31 SUBMENU:=Encryption
32 TITLE:=Cryptsetup
33 DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
34 URL:=https://gitlab.com/cryptsetup/cryptsetup/
35 endef
36
37 define Package/cryptsetup/description
38 Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
39 endef
40
41 CONFIGURE_ARGS += \
42 --disable-cryptsetup-reencrypt \
43 --disable-integritysetup \
44 --disable-selinux \
45 --disable-rpath \
46 --disable-veritysetup \
47 --disable-udev \
48 --with-default-luks-format=LUKS2 \
49 --with-luks2-lock-path=/var/run/cryptsetup \
50 --with-crypto_backend=kernel
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libcryptsetup.h $(1)/usr/include
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so* $(1)/usr/lib
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcryptsetup.pc $(1)/usr/lib/pkgconfig
59 endef
60
61 define Package/cryptsetup/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so* $(1)/usr/lib
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cryptsetup $(1)/usr/sbin
66 endef
67
68 $(eval $(call BuildPackage,cryptsetup))