40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'drbd'
|
|
pkgname=drbd-utils
|
|
version=8.9.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--sbindir=/usr/bin \
|
|
--libexecdir=/usr/libexec \
|
|
--with-distro=generic \
|
|
--with-bashcompletion \
|
|
--with-udev \
|
|
--without-rgmanager \
|
|
--without-pacemaker \
|
|
--without-heartbeat \
|
|
--without-xen"
|
|
conf_files="
|
|
/etc/drbd.conf
|
|
/etc/drbd.d/global_common.conf"
|
|
short_desc="Distributed replicated storage"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://www.drbd.org"
|
|
makedepends="eudev-libudev-devel"
|
|
hostmakedepends="flex pkg-config eudev"
|
|
distfiles="http://oss.linbit.com/drbd/drbd-utils-$version.tar.gz"
|
|
checksum=01a8924f8bc1370fc91e0495989d69b65c3b08346006d614d4b1dbdcd1caade5
|
|
|
|
pre_configure() {
|
|
sed -i 's#^/lib#/usr/lib#' drbd.spec.in
|
|
sed -i 's#$(DESTDIR)/lib/#$(DESTDIR)/usr/lib/#g' $(find -name Makefile.in)
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/lib/drbd $DESTDIR/usr/libexec
|
|
mv ${DESTDIR}/etc/init.d/* $DESTDIR/usr/libexec
|
|
vmkdir usr/share/bash-completion/completions
|
|
mv ${DESTDIR}/etc/bash_completion.d/* $DESTDIR/usr/share/bash-completion/completions
|
|
vsv drbd
|
|
}
|