31 lines
998 B
Bash
31 lines
998 B
Bash
# Template file for 'mdadm'
|
|
pkgname=mdadm
|
|
version=3.3.2
|
|
revision=7
|
|
build_pie=yes
|
|
build_options="systemd"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libudev-devel"
|
|
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"
|
|
checksum=0f3a7e1a76b13892b79f9fceaf99ecb23513260389a768ac644ffa3ae06e5b8c
|
|
|
|
pre_configure() {
|
|
sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
|
|
}
|
|
do_build() {
|
|
make CC=$CC CFLAGS="$CFLAGS -Wno-error" BINDIR=/usr/bin LDFLAGS="$LDFLAGS" ${makejobs}
|
|
}
|
|
do_install() {
|
|
make BINDIR=/usr/bin STRIP= PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
if [ "$build_option_systemd" ]; then
|
|
make BINDIR=/usr/bin STRIP= PREFIX=/usr \
|
|
SYSTEMD_DIR=/usr/lib/systemd/system DESTDIR=${DESTDIR} install-systemd
|
|
else
|
|
vsv mdadm
|
|
fi
|
|
vsconf mdadm.conf-example mdadm.conf
|
|
}
|