2015-12-20 12:18:54 +01:00
|
|
|
# Template file for 'drbd-utils'
|
2015-05-11 12:56:42 +02:00
|
|
|
pkgname=drbd-utils
|
2016-02-04 09:00:24 +01:00
|
|
|
version=8.9.6
|
2015-12-20 12:18:54 +01:00
|
|
|
revision=1
|
2015-05-11 12:56:42 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="
|
|
|
|
--sbindir=/usr/bin \
|
2015-11-03 17:33:08 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2015-05-11 12:56:42 +02:00
|
|
|
--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"
|
2015-11-03 17:33:08 +01:00
|
|
|
hostmakedepends="automake libtool flex pkg-config eudev libxslt"
|
2015-05-11 12:56:42 +02:00
|
|
|
distfiles="http://oss.linbit.com/drbd/drbd-utils-$version.tar.gz"
|
2016-02-04 09:00:24 +01:00
|
|
|
checksum=297b77c9b3f88de2e7dae459234f2753ea4fc2805282b2d276e35cf51e292913
|
2015-11-03 17:33:08 +01:00
|
|
|
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" drbd-utils"
|
|
|
|
fi
|
2015-05-11 12:56:42 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
2015-11-03 17:33:08 +01:00
|
|
|
sed -i 's#/lib/drbd#/usr/lib/drbd#' drbd.spec.in
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
find -name "*.c" -exec sed -i "{}" -e 's#sys/poll\.h#poll.h#g' \;
|
|
|
|
find -name Makefile.in -exec sed -i "{}" -e 's#$(DESTDIR)/lib#$(DESTDIR)/usr/lib#g' \;
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
|
|
# Replace drbdsetup{,-83,84} with the /usr/bin or /usr/libexec counterparts
|
|
|
|
find -name Makefile.in -exec sed -i "{}" \
|
|
|
|
-e 's#^\(\s\)../../user/v83/drbdsetup-83#\1/usr/libexec/drbdsetup-83#' \
|
|
|
|
-e 's#^\(\s\)../../user/v84/drbdsetup-84#\1/usr/libexec/drbdsetup-84#' \
|
|
|
|
-e 's#^\(\s\)../../user/v9/drbdsetup#\1/usr/bin/drbdsetup#' \
|
|
|
|
\;
|
|
|
|
fi
|
2015-05-11 12:56:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|