summaryrefslogblamecommitdiff
path: root/user/mdadm/APKBUILD
blob: c39bf46ba6ede398a74daecf7f3efc510c1572c1 (plain) (tree)
1
2
3
4
5
6
                                                      
                                                     

              

          












                                                                                        
                    


                                                                 


         
                                             


           


















                                                                                       

                                                                                               

 
                                                                                                                                                              

                                                                                                                                             
                                                                                                                                                  



                                                                                                                                                                                            
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 
pkgname=mdadm
pkgver=4.3
pkgrel=0
pkgdesc="Tool for managing Linux soft RAID arrays"
url="http://neil.brown.name/blog/mdadm"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="groff linux-headers"
subpackages="$pkgname-doc $pkgname-misc::noarch $pkgname-openrc
	$pkgname-udev::noarch"
source="https://mirrors.kernel.org/pub/linux/utils/raid/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	$pkgname-raid.initd
	time64.patch
	falloc.patch
	missing-header.patch
	0001-udev.c-Do-not-require-libudev.h-if-DNO_LIBUDEV.patch
	"

build() {
	make CXFLAGS="${CFLAGS} -DNO_LIBUDEV"
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 $pkgname.conf-example "$pkgdir"/etc/$pkgname.conf
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm755 "$srcdir"/$pkgname-raid.initd "$pkgdir"/etc/init.d/$pkgname-raid
}

udev() {
	pkgdesc="$pkgdesc (udev rules)"
	install_if="eudev $pkgname=$pkgver-r$pkgrel"

	mkdir -p "$subpkgdir"
	mv "$pkgdir"/lib "$subpkgdir"/
}

misc() {
	pkgdesc="$pkgdesc (misc scripts)"
	depends="$pkgname bash"

	install -Dm755 "$builddir"/misc/mdcheck "$subpkgdir"/usr/sbin/mdcheck
	install -Dm755 "$builddir"/misc/syslog-events "$subpkgdir"/usr/sbin/handle-mdadm-events
}

sha512sums="a77af2b371ed27b7bd89b7991302282f0fc77999eb93d7959446fc4b1c28388582d08ff0abfc470a9f9a8c8036acb0158edc44d9a8d406f807ca28111bf74459  mdadm-4.3.tar.gz
ca5f4e3ff5b284102b44e818d11622e1889066e3d18edce2d62c1a44ee8f4cfdc0979121c0462a916c638423c5ebc706c46aa996a7c4f68e030589adc62803f4  mdadm.initd
7d45bf489ef93a4f217ffcf72311eb661b8de7fbf63a5344697252c0d3a684b0123ff60efa5f218da4eb4cda7c88d91c2ef3625d5e44a588e3e1210cb60b0ab9  mdadm.confd
37022593ba090eb0690669b99d6386152242c017c1e608cea7b5420b7a6f754b377e916e4f81e2abf9941e791db78b5820e63db0e706d5de8b35e796678e921c  mdadm-raid.initd
cb21650ffb7f8bd1a7a72e27e48e5f18de7158cb8ba23315f9fc48ff5fa79662d0a64128d8b61eff76da7a41e0ccbc5be375a10c852823d489aa648baab76ba4  time64.patch
72544b173499c4ecbcf85284cd4ca5560c2e3548e319e8e7e99967e369f3334e7b77950ff7ed2ed61b6e3c338894595154b2a7c6ccb30b5be1bbd2b75756738c  falloc.patch
669e0f14df7de0650eaa7a395167be3e12c08ed8c53ed0388d45be2a17c2e34dc08a2a77dc0d8692b2cd051154a644d6cc7cfcadbe58125dd4c09f9349bb2451  missing-header.patch
b8fdfad727872a0bfc9bc97024b0fb49d6d39ae6d9eac81c65adb0c524add014a27bd9157f2c47b14a54fbe30abf87b64fbeb9218f2bc5a0ada48d06e0e6ea66  0001-udev.c-Do-not-require-libudev.h-if-DNO_LIBUDEV.patch"