blob: 8c8d6aa83020eff495f54f8460ecd8b78bd20e4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $Id: PKGBUILD 186140 2013-05-21 09:11:15Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=mdadm
pkgver=3.2.6
pkgrel=4
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://neil.brown.name/blog/mdadm"
groups=('base')
conflicts=('mkinitcpio<0.7')
depends=('glibc')
backup=('etc/mdadm.conf')
source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-$pkgver.tar.bz2
mdadm.conf
mdadm_install
mdadm_hook
mdadm_udev_install
mdadm.service
disable-werror.patch
mdadm-fix-udev-rules.patch)
replaces=('raidtools')
md5sums=('3e255dc71e5144bbcb872788ca647267'
'5a37c112aa07dccdde62f9fa5b888607'
'af2f73f0094ebee66f503ca4710c7142'
'fbfb7d07efcbaf5dc61af424c5f6e352'
'b6b0bfd6487c99264578630616dfe5eb'
'eb1786b18fa4d13cfd7b71d6b05cfb4f'
'4ad87b74a4bc9a34621280abe0e0c3e4'
'6c76f2f261c1c3397c7290633f0a9acc')
prepare() {
cd $srcdir/$pkgname-$pkgver
patch -Np0 -i ../disable-werror.patch
patch -p1 -i ../mdadm-fix-udev-rules.patch
}
build() {
cd $srcdir/$pkgname-$pkgver
make CXFLAGS="$CFLAGS" BINDIR=/usr/bin
# build static mdassemble for Arch's initramfs
make MDASSEMBLE_AUTO=1 mdassemble
}
package() {
cd $srcdir/$pkgname-$pkgver
make INSTALL=/usr/bin/install BINDIR=/usr/bin DESTDIR=$pkgdir install
install -D -m755 mdassemble $pkgdir/usr/bin/mdassemble
install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf
install -D -m644 ../mdadm_install $pkgdir/usr/lib/initcpio/install/mdadm
install -D -m644 ../mdadm_hook $pkgdir/usr/lib/initcpio/hooks/mdadm
install -D -m644 ../mdadm_udev_install $pkgdir/usr/lib/initcpio/install/mdadm_udev
# systemd service file
install -D -m644 $srcdir/mdadm.service $pkgdir/usr/lib/systemd/system/mdadm.service
}
|