mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
pkgname=mdadm
|
|
pkgver=2.6.9
|
|
pkgrel=1
|
|
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
|
|
arch=('arm')
|
|
license=('GPL')
|
|
url="http://www.cse.unsw.edu.au/~neilb/source/mdadm/"
|
|
groups=('base')
|
|
depends=('glibc')
|
|
makedepends=('groff')
|
|
backup=('etc/mdadm.conf')
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-$pkgver.tar.bz2
|
|
mdadm
|
|
mdadm.conf
|
|
mdadm_install
|
|
mdadm_hook)
|
|
install=mdadm.install
|
|
replaces=('raidtools')
|
|
md5sums=('96c1bcac1699ba1aa70dfd04a08549c9'
|
|
'6df172c8f77b280018cf87eb3d313f29'
|
|
'00cbed931db4f15b6ce49e3e7d433966'
|
|
'5067783b0051dedc95d159af22f0c681'
|
|
'ef76d9dda597ffca4ef1934fe801cb60')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make || return 1
|
|
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
|
|
# build static mdassemble for Arch's initramfs
|
|
make mdassemble.auto
|
|
install -D -m755 mdassemble.auto $pkgdir/sbin/mdassemble.static
|
|
}
|