summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/device-mapper/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/device-mapper/PKGBUILD')
-rw-r--r--abs/core-testing/device-mapper/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/core-testing/device-mapper/PKGBUILD b/abs/core-testing/device-mapper/PKGBUILD
new file mode 100644
index 0000000..7c2cd46
--- /dev/null
+++ b/abs/core-testing/device-mapper/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Thomas Baechler <thomas@archlinux.org>
+pkgname=device-mapper
+pkgver=1.02.27
+pkgrel=10
+pkgdesc="Device mapper userspace library and tools."
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://sourceware.org/dm/"
+groups=('base')
+depends=('glibc')
+source=(ftp://sources.redhat.com/pub/dm/device-mapper.$pkgver.tgz
+ device-mapper.rules)
+md5sums=('6074f2c2035c2a526422e691c7457277'
+ '065f32a36947e6183722ed9aef13dc0c')
+
+build() {
+ cd $startdir/src/$pkgname.$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=$startdir/pkg sbindir=$startdir/pkg/sbin \
+ libdir=$startdir/pkg/lib install
+
+ # install the static library as well
+ install -D -m644 lib/ioctl/libdevmapper.a $startdir/pkg/usr/lib/libdevmapper.a
+ # install udev rule
+ install -D -m644 $startdir/src/device-mapper.rules $startdir/pkg/etc/udev/rules.d/device-mapper.rules
+ # fix device-mapper link bug
+ ln -sf /lib/libdevmapper.so $startdir/pkg/usr/lib/libdevmapper.so
+}