2009-11-01 03:32:03 +00:00
|
|
|
# Maintainer: Mike Staszel <mikestaszel@openpogo.com>
|
2009-10-11 16:56:07 +00:00
|
|
|
|
2009-10-10 02:17:35 +00:00
|
|
|
pkgname=cryptsetup
|
|
|
|
pkgver=1.0.7
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
|
2009-11-01 03:32:03 +00:00
|
|
|
arch=(i686 x86_64 arm)
|
2009-10-10 02:17:35 +00:00
|
|
|
license=('GPL')
|
|
|
|
url="http://code.google.com/p/cryptsetup/"
|
|
|
|
groups=('base')
|
|
|
|
depends=('device-mapper' 'libgcrypt' 'popt' 'e2fsprogs')
|
|
|
|
conflicts=('mkinitcpio<0.5.24.99')
|
|
|
|
options=('!libtool' '!emptydirs')
|
|
|
|
source=(http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2
|
|
|
|
encrypt_hook
|
2009-10-11 16:56:07 +00:00
|
|
|
encrypt_install
|
|
|
|
luksOpen-status.patch)
|
2009-10-10 02:17:35 +00:00
|
|
|
md5sums=('5eea2a77391a8a1a651b31cbaef59e22'
|
|
|
|
'6bdb1b83539453d403335aed1a579a5c'
|
|
|
|
'24b76e9cb938bc3c8dcff396cbab28c7'
|
|
|
|
'd4be8d2059d5427c057be4de4e948887')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-${pkgver}
|
|
|
|
# suppress "Command successful" message on luksOpen
|
|
|
|
patch -p1 -i $srcdir/luksOpen-status.patch || return 1
|
|
|
|
./configure --prefix=/usr --disable-static
|
|
|
|
make || return 1
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
make clean
|
|
|
|
cd $srcdir/$pkgname-${pkgver}
|
|
|
|
./configure --prefix=/usr --enable-static
|
|
|
|
make || return 1
|
|
|
|
install -D -m755 src/cryptsetup $pkgdir/sbin/cryptsetup.static || return 1
|
|
|
|
# install hook
|
|
|
|
install -D -m644 $srcdir/encrypt_hook $pkgdir/lib/initcpio/hooks/encrypt || return 1
|
|
|
|
install -D -m644 $srcdir/encrypt_install $pkgdir/lib/initcpio/install/encrypt || return 1
|
|
|
|
}
|