aboutsummaryrefslogtreecommitdiffstats
path: root/main/cryptsetup/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-08 15:13:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-08 15:14:02 +0000
commit228008df8c423bb9bbde2564033048362794bc59 (patch)
tree831c75db2f8eb96074a8d829dfd1e89f66c5a12f /main/cryptsetup/APKBUILD
parenta6ac8136ada0d5f1cbacaa55b797127ff7d07f35 (diff)
downloadaports-228008df8c423bb9bbde2564033048362794bc59.tar.bz2
aports-228008df8c423bb9bbde2564033048362794bc59.tar.xz
main/cryptsetup: fix issue with tmpfs and O_DIRECT
patch from upstream. fixes #3281
Diffstat (limited to 'main/cryptsetup/APKBUILD')
-rw-r--r--main/cryptsetup/APKBUILD24
1 files changed, 19 insertions, 5 deletions
diff --git a/main/cryptsetup/APKBUILD b/main/cryptsetup/APKBUILD
index 86bfa88769..d29c090a29 100644
--- a/main/cryptsetup/APKBUILD
+++ b/main/cryptsetup/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cryptsetup
pkgver=1.6.5
-pkgrel=0
+pkgrel=1
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
url="http://code.google.com/p/cryptsetup/"
arch="all"
@@ -9,9 +9,20 @@ license="GPL2+"
depends=""
makedepends="lvm2-dev openssl-dev popt-dev util-linux-dev !libiconv-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/cryptsetup-$pkgver.tar.gz"
+source="https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/cryptsetup-$pkgver.tar.gz
+ direct-io.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
build() {
cd "$_builddir"
./configure \
@@ -40,6 +51,9 @@ libs() {
mv "$pkgdir"/lib "$subpkgdir"/
}
-md5sums="847c9f1df3c20966f27470b2a62fc797 cryptsetup-1.6.5.tar.gz"
-sha256sums="7bfde843a12b150aed758a528c81e64755f224f050159410c493e7d70b77d97d cryptsetup-1.6.5.tar.gz"
-sha512sums="c500d7f9f72b9ae0844cd8bab81c880ad6e65ea0e03f7d35b5f4ebbdb006618ce3ed808a457c00b589d4c72c0b10f5e26d61cefb9ccebe79af92910620f5a9e8 cryptsetup-1.6.5.tar.gz"
+md5sums="847c9f1df3c20966f27470b2a62fc797 cryptsetup-1.6.5.tar.gz
+eff4426fdbba93daf61011ec3f9db685 direct-io.patch"
+sha256sums="7bfde843a12b150aed758a528c81e64755f224f050159410c493e7d70b77d97d cryptsetup-1.6.5.tar.gz
+3cd05276966ee714315be6a3bca056bf500d3c7ac1b0481b29e1c6d5bd80eb2a direct-io.patch"
+sha512sums="c500d7f9f72b9ae0844cd8bab81c880ad6e65ea0e03f7d35b5f4ebbdb006618ce3ed808a457c00b589d4c72c0b10f5e26d61cefb9ccebe79af92910620f5a9e8 cryptsetup-1.6.5.tar.gz
+d3950d9bd84453aacd8bc4092e39e52e06ae5dbc4284587f5209353e5315524ece8a4c2f492bf2dcde862bd2ec75cf59e9768936f21659029a49e5b1e201201d direct-io.patch"