void-packages/srcpkgs/mdadm/template

27 lines
857 B
Bash

# Template file for 'mdadm'
pkgname=mdadm
version=4.3
revision=2
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.0-or-later"
homepage="https://git.kernel.org/cgit/utils/mdadm/mdadm.git/log/"
distfiles="${KERNEL_SITE}/utils/raid/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=416727ae1f1080ea6e3090cea36dd076826fc369151e36ab736557ba92196f9f
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
}