26 lines
821 B
Bash
26 lines
821 B
Bash
# Template file for 'mdadm'
|
|
pkgname=mdadm
|
|
version=3.4
|
|
revision=1
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libudev-devel"
|
|
short_desc="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=27d0be4627d38a12ddcd1c1c3721d649d4e89e1093914497e22b57245cda8808
|
|
|
|
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
|
|
}
|