Commit cc837c00 authored by Anke's avatar Anke

Merge branch 'testing' of gitorious.org:chakra-packages/core into testing

parents b25b9787 8f09b160
# $Id: PKGBUILD 67245 2010-02-05 22:53:48Z thomas $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=cryptsetup
pkgver=1.1.0
pkgrel=2
pkgver=1.3.1
pkgrel=1
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
arch=(i686 x86_64)
license=('GPL')
url="http://code.google.com/p/cryptsetup/"
groups=('base')
depends=('device-mapper' 'libgcrypt' 'popt' 'e2fsprogs')
depends=('device-mapper' 'libgcrypt' 'popt')
conflicts=('mkinitcpio<0.5.99')
options=('!libtool' '!emptydirs')
source=(http://cryptsetup.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2
encrypt_hook
encrypt_install)
sha256sums=('b343fa6bf3c48b633e68da25e44aebd6a32a3dc21c10604acd6faa04e41f58f3'
sha256sums=('7ceb18a0c91fa1546077b41b93463dd2ec9d7f83e6fd93757fb84cc608206a6a'
'64601eae6fbf3e3afceccec5877557aa208a82497c33cc94ad0a686b4022b5dc'
'8e4920bb4b5ce96508aa0c42b9b07326b70daf630519f1aa1d8082bca709c12a')
md5sums=('8177f1833f4d6aaacc5812046d2010b6'
'1b25c0aca2cfd0306dd70de1888cb5b8'
'69af34d82690ce8204ce2d249c24be7a')
'07918fc349b3a7c4a73e8ad1cc3d97a2a79ebc7655090ab9ebb00b1e092c85aa')
build() {
cd $srcdir/$pkgname-${pkgver}
./configure --prefix=/usr --disable-static
make || return 1
make DESTDIR=$pkgdir install
# include a static cryptsetup binary for initrd setups
make clean
./configure --prefix=/usr --disable-static --sbindir=/sbin --libdir=/lib
make
}
package() {
cd $srcdir/$pkgname-${pkgver}
./configure --prefix=/usr --enable-static
make || return 1
install -D -m755 src/cryptsetup $pkgdir/sbin/cryptsetup.static || return 1
make DESTDIR=$pkgdir install
# 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
install -D -m644 $srcdir/encrypt_hook $pkgdir/lib/initcpio/hooks/encrypt
install -D -m644 $srcdir/encrypt_install $pkgdir/lib/initcpio/install/encrypt
# Fix pkgconfig location
install -d -m755 $pkgdir/usr/lib
mv $pkgdir/lib/pkgconfig $pkgdir/usr/lib/
}
......@@ -16,6 +16,7 @@ install ()
add_file "/lib/udev/rules.d/10-dm.rules"
add_file "/lib/udev/rules.d/13-dm-disk.rules"
add_file "/lib/udev/rules.d/95-dm-notify.rules"
add_file "/lib/initcpio/udev/11-dm-initramfs.rules" "/lib/udev/rules.d/11-dm-initramfs.rules"
}
help ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment