aboutsummaryrefslogtreecommitdiffstats
path: root/main/mdadm/APKBUILD
blob: f6efdc58dafcaa97eff1264f1c0d581dcab388a5 (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mdadm
pkgver=3.1.1
pkgrel=2
pkgdesc="a tool for managing Linux Software RAID arrays"
url="http://neil.brown.name/blog/mdadm"
license="GPL-2"
depends=
makedepends="groff"
subpackages="$pkgname-doc"
source="http://www.kernel.org/pub/linux/utils/raid/${pkgname}/${pkgname}-${pkgver}.tar.gz
	${pkgname}.initd
	${pkgname}.confd
	mdadm-raid.initd
	mdadm-uclibc.patch
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	patch -p1 -i ../mdadm-uclibc.patch || return 1
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR=$pkgdir install

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m755 -D "$srcdir"/$pkgname-raid.initd "$pkgdir"/etc/init.d/$pkgname-raid
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -m644 -D mdadm.conf-example "$pkgdir"/etc/mdadm.conf
}

md5sums="8bfeea282d21b5ef8e825122fb359457  mdadm-3.1.1.tar.gz
ce57e798431f7ab89f9b07a7daaa4852  mdadm.initd
16d2b8eb2e17184357db503470fdd8eb  mdadm.confd
af5bb6e1479bf1d27cf50521af82dae1  mdadm-raid.initd
aa601f072096fb8bae8b8946f59a561f  mdadm-uclibc.patch"