summaryrefslogtreecommitdiff
path: root/community/drbd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/drbd/PKGBUILD')
-rw-r--r--community/drbd/PKGBUILD67
1 files changed, 0 insertions, 67 deletions
diff --git a/community/drbd/PKGBUILD b/community/drbd/PKGBUILD
deleted file mode 100644
index 62e027320..000000000
--- a/community/drbd/PKGBUILD
+++ /dev/null
@@ -1,67 +0,0 @@
-# $Id: PKGBUILD 90502 2013-05-12 23:31:07Z seblu $
-# Maintainer: Sébastien Luttringer
-
-pkgname=drbd
-pkgver=8.4.2
-pkgrel=2
-arch=('i686' 'x86_64')
-pkgdesc='Userland tools for Distributed Replicated Block Device'
-url='http://www.drbd.org'
-license=('GPL2')
-depends=('perl' 'bash')
-source=("http://oss.linbit.com/drbd/8.4/$pkgname-$pkgver.tar.gz"
- "$pkgname.service")
-backup=('etc/drbd.conf' 'etc/drbd.d/global_common.conf')
-md5sums=('b081f1046adda1d51ba351c40a8b1107'
- '7dc909b5895c0b5289d3ee0581d7d333')
-
-prepare() {
- # fix hardcoded path in udev rules
- sed -i 's,/sbin/drbdadm,/usr/bin/drbdadm,' $pkgname-$pkgver/scripts/drbd.rules
-}
-
-build() {
- cd $pkgname-$pkgver
- ./configure \
- --prefix=/usr \
- --localstatedir=/var \
- --sysconfdir=/etc \
- --sbindir=/usr/bin \
- --with-distro=generic \
- --with-utils \
- --with-bashcompletion \
- --with-udev \
- --without-km \
- --without-rgmanager \
- --without-pacemaker \
- --without-heartbeat \
- --without-xen \
- --without-legacy_utils
- make
-}
-
-package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
- # move forced /sbin binaries
- cd "$pkgdir"
- mv sbin/* usr/bin
- rmdir sbin
- # move udev files
- mv etc/udev usr/lib
- # move bash completion
- install -dm 755 usr/share/bash-completion
- mv etc/bash_completion.d usr/share/bash-completion/completions
- # remove /var/lock
- rmdir var/lock
- # remove embeded init stuff
- rm -r etc/init.d
- # autoload module
- install -Dm 644 /dev/null usr/lib/modules-load.d/$pkgname.conf
- echo 'drbd' > usr/lib/modules-load.d/$pkgname.conf
- # systemd
- install -Dm 644 "$srcdir/$pkgname.service" \
- "$pkgdir/usr/lib/systemd/system/$pkgname.service"
-}
-
-# vim:set ts=2 sw=2 et: