aboutsummaryrefslogtreecommitdiffstats
path: root/main/cryptsetup1
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-01-25 00:11:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-01-25 00:15:21 +0000
commit5b8a2c9c23dc4aa9d1288b0eaa60b6a22ec38188 (patch)
tree14abe024d48e609bad145e14dba2d1217012bcb8 /main/cryptsetup1
parent9c38b2f111687606d2e2308e45fc6b036f628932 (diff)
downloadaports-5b8a2c9c23dc4aa9d1288b0eaa60b6a22ec38188.tar.bz2
aports-5b8a2c9c23dc4aa9d1288b0eaa60b6a22ec38188.tar.xz
main/cryptsetup1: temporary new aport
we need to satisfy cryptsetup-libs dependency for mkinitfs while we build cryptsetup2 and rebuild mkinitfs with cryptsetup2, so we introduce a temporary cryptsetup1 package and make mkinitfs temprorary depend on that.
Diffstat (limited to 'main/cryptsetup1')
-rw-r--r--main/cryptsetup1/APKBUILD52
-rw-r--r--main/cryptsetup1/flush-stdout.patch17
2 files changed, 69 insertions, 0 deletions
diff --git a/main/cryptsetup1/APKBUILD b/main/cryptsetup1/APKBUILD
new file mode 100644
index 0000000000..c628bdc62f
--- /dev/null
+++ b/main/cryptsetup1/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=cryptsetup1
+pkgver=1.7.5
+pkgrel=1
+pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
+url="https://gitlab.com/cryptsetup/cryptsetup"
+arch="all"
+license="GPL-2.0-or-later"
+depends=""
+conflicts="cryptsetup"
+makedepends_build=""
+makedepends_host="lvm2-dev libressl-dev popt-dev util-linux-dev"
+makedepends="$makedepends_build $makedepends_host"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/cryptsetup-$pkgver.tar.gz
+ flush-stdout.patch
+ "
+builddir="$srcdir"/cryptsetup-$pkgver
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --libdir=/lib \
+ --sbindir=/sbin \
+ --disable-static \
+ --with-crypto_backend=openssl
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR=$pkgdir install
+
+ mkdir -p "$pkgdir"/usr/lib
+ mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+ install -m644 README TODO FAQ "$pkgdir"/usr/share/doc/$pkgname/
+}
+
+libs() {
+ pkgdesc="Cryptsetup shared library"
+ mkdir -p "$subpkgdir"
+ mv "$pkgdir"/lib "$subpkgdir"/
+}
+
+sha512sums="be4cf2815390f415edc3e1013222c9fe735b83c37278484e680cf7e0f6bdb850242bf057020d4c0d9f0e66106dbbc5b57abe34b351c99951d4aebb809e3c0473 cryptsetup-1.7.5.tar.gz
+301e3e3da5a899e0a6f01f44fbf37bb6a3f5b6a4fb41243bae6d3b7aea747276e784626cd1b19721cc264652c10ae8c560c4d20094e33bb82fb2fae0160682c0 flush-stdout.patch"
diff --git a/main/cryptsetup1/flush-stdout.patch b/main/cryptsetup1/flush-stdout.patch
new file mode 100644
index 0000000000..ae21a235f5
--- /dev/null
+++ b/main/cryptsetup1/flush-stdout.patch
@@ -0,0 +1,17 @@
+--- ./src/utils_tools.c.orig 2014-10-24 12:58:35.151717616 -0200
++++ ./src/utils_tools.c 2014-10-24 13:00:42.716855265 -0200
+@@ -105,10 +105,13 @@
+
+ case CRYPT_LOG_NORMAL:
+ fputs(msg, stdout);
++ fflush(stdout);
+ break;
+ case CRYPT_LOG_VERBOSE:
+- if (opt_verbose)
++ if (opt_verbose) {
+ fputs(msg, stdout);
++ fflush(stdout);
++ }
+ break;
+ case CRYPT_LOG_ERROR:
+ fputs(msg, stderr);