diff --git a/srcpkgs/drbd-utils/files/drbd/finish b/srcpkgs/drbd-utils/files/drbd/finish new file mode 100755 index 0000000000..8cbd615110 --- /dev/null +++ b/srcpkgs/drbd-utils/files/drbd/finish @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +exec /usr/libexec/drbd stop diff --git a/srcpkgs/drbd-utils/files/drbd/run b/srcpkgs/drbd-utils/files/drbd/run new file mode 100755 index 0000000000..0f594ec6a1 --- /dev/null +++ b/srcpkgs/drbd-utils/files/drbd/run @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +/usr/libexec/drbd start +exec chpst -b drbd pause diff --git a/srcpkgs/drbd-utils/template b/srcpkgs/drbd-utils/template new file mode 100644 index 0000000000..77853b77a7 --- /dev/null +++ b/srcpkgs/drbd-utils/template @@ -0,0 +1,39 @@ +# Template file for 'drbd' +pkgname=drbd-utils +version=8.9.2 +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 " +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=ebbeed5f31cc27a7e10da889f60ff25ec67a3e4a2becf70ed06734e2678d38b2 + +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 +}