summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/device-mapper
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/device-mapper
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core-testing/device-mapper')
-rw-r--r--abs/core-testing/device-mapper/PKGBUILD30
-rw-r--r--abs/core-testing/device-mapper/device-mapper.rules1
2 files changed, 31 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
+}
diff --git a/abs/core-testing/device-mapper/device-mapper.rules b/abs/core-testing/device-mapper/device-mapper.rules
new file mode 100644
index 0000000..66204d4
--- /dev/null
+++ b/abs/core-testing/device-mapper/device-mapper.rules
@@ -0,0 +1 @@
+ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="dm-[0-9]*", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", NAME="mapper/%c", MODE="0600", SYMLINK+="disk/by-name/%c"