summaryrefslogtreecommitdiffstats
path: root/main/mdadm/APKBUILD
blob: bc98d6e33e02b25c695d00df23df456c7290392f (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=mdadm
pkgver=2.6.9
pkgrel=0
pkgdesc="a tool for managing Linux Software RAID arrays"
url="http://neil.brown.name/blog/mdadm"
license="GPL-2"
depends="uclibc"
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
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	make || return 1
	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="beaa0f066288441d9b3ad1ef67fa0237  mdadm-2.6.9.tar.gz
96b323ba5b778aeb905c119b9547b2a5  mdadm.initd
16d2b8eb2e17184357db503470fdd8eb  mdadm.confd
cf60ee08fc4fbed0450c5a2d4efc4214  mdadm-raid.initd"