void-packages/srcpkgs/mdadm/template
Alessio Sergi ffa5f80c9d mdadm: use KERNEL_SITE
ftp.kernel.org is no more.
2017-03-09 13:51:18 +01:00

26 lines
831 B
Bash

# Template file for 'mdadm'
pkgname=mdadm
version=4.0
revision=1
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel"
short_desc="Tool for managing/monitoring Linux md device arrays"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
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=1d6ae7f24ced3a0fa7b5613b32f4a589bb4881e3946a5a2c3724056254ada3a9
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" \
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
}