void-packages/srcpkgs/mdadm/template
2022-01-01 18:20:05 +01:00

26 lines
857 B
Bash

# Template file for 'mdadm'
pkgname=mdadm
version=4.2
revision=1
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=461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d
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
}