mdadm: enable build_pie; remove obsolete replaces.

This commit is contained in:
Juan RP 2015-03-17 17:25:25 +01:00
parent 78b32f70ee
commit 2ed18e807f
1 changed files with 11 additions and 7 deletions

View File

@ -1,11 +1,11 @@
# Template file for 'mdadm'
pkgname=mdadm
version=3.3.2
revision=3
build_style=gnu-makefile
revision=4
build_pie=yes
build_options="systemd"
hostmakedepends="pkg-config"
makedepends="libudev-devel"
replaces="runit-void<20141013_2"
short_desc="A tool for managing/monitoring Linux md device arrays"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
@ -13,12 +13,16 @@ 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"
pre_configure() {
sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
}
do_build() {
make CC=$CC CFLAGS="$CFLAGS -Wno-error" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
make CC=$CC BINDIR=/usr/sbin STRIP= PREFIX=/usr DESTDIR=${DESTDIR} install
make BINDIR=/usr/sbin STRIP= PREFIX=/usr DESTDIR=${DESTDIR} install
if [ "$build_option_systemd" ]; then
make CC=$CC BINDIR=/usr/sbin STRIP= PREFIX=/usr \
make BINDIR=/usr/sbin STRIP= PREFIX=/usr \
SYSTEMD_DIR=/usr/lib/systemd/system DESTDIR=${DESTDIR} install-systemd
else
vsv mdadm