mdadm: add systemd option.
This commit is contained in:
parent
a6e046e17c
commit
dc9e6989d4
1 changed files with 11 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'mdadm'
|
||||
pkgname=mdadm
|
||||
version=3.3.2
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libudev-devel"
|
||||
|
@ -13,9 +13,15 @@ homepage="http://neil.brown.name/blog/mdadm"
|
|||
distfiles="ftp://ftp.kernel.org/pub/linux/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
|
||||
checksum=0f3a7e1a76b13892b79f9fceaf99ecb23513260389a768ac644ffa3ae06e5b8c
|
||||
|
||||
build_options="systemd"
|
||||
|
||||
do_install() {
|
||||
make CC=$CC BINDIR=/usr/sbin STRIP= PREFIX=/usr \
|
||||
SYSTEMD_DIR=/usr/lib/systemd/system DESTDIR=${DESTDIR} install install-systemd
|
||||
vsconf mdadm.conf-example mdadm.conf
|
||||
vsv mdadm
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue