summaryrefslogtreecommitdiffstats
path: root/abs/core/mdadm/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:27 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:27 (GMT)
commiteb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5 (patch)
tree14fbe26d73dabe2b333e187af28463687a824382 /abs/core/mdadm/PKGBUILD
parent66d9054984063e6c34f034b135bf8153e0e8b431 (diff)
downloadlinhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.zip
linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.gz
linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.bz2
mdadm: upgrade
Diffstat (limited to 'abs/core/mdadm/PKGBUILD')
-rw-r--r--abs/core/mdadm/PKGBUILD60
1 files changed, 39 insertions, 21 deletions
diff --git a/abs/core/mdadm/PKGBUILD b/abs/core/mdadm/PKGBUILD
index 22ecc25..a491dce 100644
--- a/abs/core/mdadm/PKGBUILD
+++ b/abs/core/mdadm/PKGBUILD
@@ -1,33 +1,51 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: Judd Vinet <jvinet@zeroflux.org>
+# $Id: PKGBUILD 89445 2010-09-01 06:46:31Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=mdadm
-pkgver=3.1.2
-pkgrel=2
+pkgver=3.1.4
+pkgrel=1
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
license=('GPL')
url="http://www.cse.unsw.edu.au/~neilb/source/mdadm/"
groups=('base')
+conflicts=('mkinitcpio<0.5.99')
depends=('glibc')
backup=('etc/mdadm.conf')
-conflicts=('udev<135-4')
-source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/$pkgname-$pkgver.tar.bz2 \
- mdadm.conf raid-partitions_install raid-partitions_hook)
+source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-$pkgver.tar.bz2
+ mdadm
+ mdadm.conf
+ mdadm_install
+ mdadm_hook
+ run
+ finish)
+install=mdadm.install
replaces=('raidtools')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd $srcdir/$pkgname-$pkgver
make || return 1
- make INSTALL=/bin/install DESTDIR=$startdir/pkg install
- install -D -m644 ../mdadm.conf $startdir/pkg/etc/mdadm.conf
- install -D -m644 ../raid-partitions_install $startdir/pkg/lib/initcpio/install/raid-partitions
- install -D -m644 ../raid-partitions_hook $startdir/pkg/lib/initcpio/hooks/raid-partitions
- # a static binary is required for Arch's initrd
- rm mdadm
- make LDFLAGS+=-static || return 1
- install -D -m755 mdadm $startdir/pkg/sbin/mdadm.static
}
-md5sums=('c5a39f38c465229767a5af2a4eb81bef'
- '0ce4c0f9770bf582a71228053566359d'
- '9de7e423ec9c6766b5f5d39915929003'
- '09d72c714b40b6fa1e8eab04c1dabd42')
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make INSTALL=/bin/install DESTDIR=$pkgdir install
+ install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf
+ install -D -m755 ../mdadm $pkgdir/etc/rc.d/mdadm
+ install -D -m644 ../mdadm_install $pkgdir/lib/initcpio/install/mdadm
+ install -D -m644 ../mdadm_hook $pkgdir/lib/initcpio/hooks/mdadm
+ install -d ${pkgdir}/etc/sv/mdadm/supervise
+ install -D -m755 ${srcdir}/run ${pkgdir}/etc/sv/mdadm/run
+ install -D -m755 ${srcdir}/finish ${pkgdir}/etc/sv/mdadm/finish
+ # symlink for backward compatibility
+ ln -sf /lib/initcpio/hooks/mdadm $pkgdir/lib/initcpio/hooks/raid
+ # build static mdassemble for Arch's initramfs
+ make MDASSEMBLE_AUTO=1 mdassemble
+ install -D -m755 mdassemble $pkgdir/sbin/mdassemble
+}
+md5sums=('0e7dcb5cc4192ae3abd9956bac475576'
+ '6df172c8f77b280018cf87eb3d313f29'
+ '00cbed931db4f15b6ce49e3e7d433966'
+ '865c3d39e5f5dae58388160b563981f1'
+ '1a3eb63832cecd6550f5b0a21d58cfdb'
+ '0b12cc70819ec274f6eec0b8a4238970'
+ 'fbd58f9753db94e754bd8de71d465489')