void-packages/srcpkgs/mdadm/template

27 lines
846 B
Bash

# Template file for 'mdadm'
pkgname=mdadm
version=4.1
revision=3
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel"
short_desc="Tool for managing/monitoring Linux md device arrays"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=ab7688842908d3583a704d491956f31324c3a5fc9f6a04653cb75d19f1934f4a
pre_configure() {
sed -i 's,^install : mdadm mdmon,install: ,g' Makefile
}
do_build() {
make ${makejobs} CC=$CC \
CFLAGS="$CFLAGS -DNO_COROSYNC -DNO_DLM -Wno-error -DSendmail='\"sendmail -t\"'" \
BINDIR=/usr/bin LDFLAGS="$LDFLAGS"
}
do_install() {
make BINDIR=/usr/bin STRIP= PREFIX=/usr DESTDIR=${DESTDIR} install
vsv mdadm
vsconf mdadm.conf-example mdadm.conf
}