# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=mdadm pkgver=3.1.3 pkgrel=0 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 uclibc-bswap.patch " prepare() { cd "$srcdir/$pkgname-$pkgver" patch -p1 -i "$srcdir"/mdadm-uclibc.patch || return 1 patch -p1 -i "$srcdir"/uclibc-bswap.patch || return 1 } build() { cd "$srcdir/$pkgname-$pkgver" 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="6f48eea4042af51ad38a50e7bf33a760 mdadm-3.1.3.tar.gz ce57e798431f7ab89f9b07a7daaa4852 mdadm.initd 16d2b8eb2e17184357db503470fdd8eb mdadm.confd af5bb6e1479bf1d27cf50521af82dae1 mdadm-raid.initd bca76ff25366bd1b70654b0cf4814236 mdadm-uclibc.patch e6dde992d7da016f25161d6637474d26 uclibc-bswap.patch"