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

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

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make CXFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200809L -Wno-error"
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR=$pkgdir INSTALL=install 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="ea9554d6dc8975f60dcad8c9e597a343  mdadm-3.3.4.tar.gz
d6ac75406869e44d671c7b5c293676d7  mdadm.initd
16d2b8eb2e17184357db503470fdd8eb  mdadm.confd
81b05eca507200f0759cc7481adde280  mdadm-raid.initd
e6dde992d7da016f25161d6637474d26  uclibc-bswap.patch"
sha256sums="3c9657b9b2b88f19c30f8c804cf83a4f2f82f8ea29e97d302b6c740b92d1773a  mdadm-3.3.4.tar.gz
bd59ba77c053c4bf2b73319cdac7b734a22b8174efb8f2574825e4d2bc6fef2e  mdadm.initd
9d3df571c3478aa83edb1d97231c5da5b2a8653232120df6d283605a8dfbb505  mdadm.confd
acab80b9362602b44b7a24dc645ce5a453e764b68e5eae5c376824a09e92d9cf  mdadm-raid.initd
c802c69e8f9c8d3eff0771433350fc77ec5d03bf646d098d45238f47ba145ba0  uclibc-bswap.patch"
sha512sums="994f003068d5ddef1b476c2ffe8a41bbd4eff7a5c2ab60945caed354f859ae2009628145e3c061771120542b49fa31f5f0afaffca57c5a08b4038f9419c33e4b  mdadm-3.3.4.tar.gz
ca5f4e3ff5b284102b44e818d11622e1889066e3d18edce2d62c1a44ee8f4cfdc0979121c0462a916c638423c5ebc706c46aa996a7c4f68e030589adc62803f4  mdadm.initd
7d45bf489ef93a4f217ffcf72311eb661b8de7fbf63a5344697252c0d3a684b0123ff60efa5f218da4eb4cda7c88d91c2ef3625d5e44a588e3e1210cb60b0ab9  mdadm.confd
37022593ba090eb0690669b99d6386152242c017c1e608cea7b5420b7a6f754b377e916e4f81e2abf9941e791db78b5820e63db0e706d5de8b35e796678e921c  mdadm-raid.initd
ee67c97ab4cbffa1418f935224913ec8f3a752ad4154b4fdac1233955f196d3c01147db25b5077d9abefa48193ffa2875bfc956b526437147f5205374e1d9c93  uclibc-bswap.patch"