summaryrefslogtreecommitdiff
path: root/repo/system/cryptsetup/cryptsetup.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
commit0b977787374349328a21af0deade30d534cf3978 (patch)
tree3c2be28ef9a6f74a36f21cd48a34cb06b3080960 /repo/system/cryptsetup/cryptsetup.xibuild
parentdccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff)
fixed gcc loader/linker errors
Diffstat (limited to 'repo/system/cryptsetup/cryptsetup.xibuild')
-rw-r--r--repo/system/cryptsetup/cryptsetup.xibuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/system/cryptsetup/cryptsetup.xibuild b/repo/system/cryptsetup/cryptsetup.xibuild
new file mode 100644
index 0000000..6c883d9
--- /dev/null
+++ b/repo/system/cryptsetup/cryptsetup.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="cryptsetup"
+DESC="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
+
+MAKEDEPS="make"
+DEPS="util-linux musl popt device-mapper"
+
+PKG_VER=2.4.3
+SOURCE="https://www.kernel.org/pub/linux/utils/cryptsetup/v${PKG_VER%.*}/cryptsetup-$PKG_VER.tar.gz"
+ADDITIONAL="dmcrypt.initd dmcrypt.confd "
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-libargon2 \
+ --with-crypto_backend=openssl \
+ --disable-external-tokens \
+ --disable-ssh-token
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ install -Dm644 "$srcdir"/dmcrypt.confd "$PKG_DEST"/etc/conf.d/dmcrypt
+ install -Dm755 "$srcdir"/dmcrypt.initd "$PKG_DEST"/etc/init.d/dmcrypt
+
+ mkdir -p "$PKG_DEST"/usr/share/doc/cryptsetup/
+ install -m644 README.md FAQ docs/v$PKG_VER-ReleaseNotes \
+ "$PKG_DEST"/usr/share/doc/cryptsetup/
+
+}