void-packages/srcpkgs/mdadm/template

26 lines
808 B
Bash

# Template file for 'mdadm'
pkgname=mdadm
version=3.3.3
revision=1
build_pie=yes
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="http://ftp.kernel.org/pub/linux/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=f5b50a6b506697fb9968d660444447473b453f9eaefaa9b7d31c184693b8a28c
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
vsv mdadm
vsconf mdadm.conf-example mdadm.conf
}