void-packages/srcpkgs/mdadm/template

28 lines
880 B
Text
Raw Normal View History

2014-07-06 15:06:57 +00:00
# Template file for 'mdadm'
pkgname=mdadm
2014-09-06 14:00:17 +00:00
version=3.3.2
2014-11-23 14:13:59 +00:00
revision=3
2014-07-06 15:06:57 +00:00
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libudev-devel"
2014-10-13 15:35:15 +00:00
replaces="runit-void<20141013_2"
2014-07-06 15:06:57 +00:00
short_desc="A tool for managing/monitoring Linux md device arrays"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://neil.brown.name/blog/mdadm"
distfiles="ftp://ftp.kernel.org/pub/linux/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
2014-09-06 14:00:17 +00:00
checksum=0f3a7e1a76b13892b79f9fceaf99ecb23513260389a768ac644ffa3ae06e5b8c
2014-07-06 15:06:57 +00:00
2014-11-23 14:13:59 +00:00
build_options="systemd"
2014-07-06 15:06:57 +00:00
do_install() {
2014-11-23 14:13:59 +00:00
make CC=$CC BINDIR=/usr/sbin STRIP= PREFIX=/usr DESTDIR=${DESTDIR} install
if [ "$build_option_systemd" ]; then
make CC=$CC BINDIR=/usr/sbin STRIP= PREFIX=/usr \
SYSTEMD_DIR=/usr/lib/systemd/system DESTDIR=${DESTDIR} install-systemd
else
vsv mdadm
fi
vsconf mdadm.conf-example mdadm.conf
2014-07-06 15:06:57 +00:00
}