summaryrefslogtreecommitdiff
path: root/community/ipvsadm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ipvsadm/PKGBUILD')
-rw-r--r--community/ipvsadm/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/community/ipvsadm/PKGBUILD b/community/ipvsadm/PKGBUILD
new file mode 100644
index 000000000..e34683321
--- /dev/null
+++ b/community/ipvsadm/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 90518 2013-05-12 23:51:34Z seblu $
+# Maintainer: Sébastien Luttringer
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+
+pkgname=ipvsadm
+pkgver=1.26
+pkgrel=8
+pkgdesc='The IP Virtual Server administration utility'
+arch=('i686' 'x86_64')
+url='http://www.linuxvirtualserver.org/software/ipvs.html'
+license=('GPL2')
+depends=('libnl1' 'popt' 'bash')
+backup=("etc/$pkgname.conf")
+options=('!makeflags')
+install=$pkgname.install
+source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
+ "$pkgname.systemd"
+ "$pkgname.service"
+ '01-fix-not-showing-all-server.patch')
+md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
+ 'b45ef25d384a7a68b51ff80d0fe81dd2'
+ 'dc87684064f85b64c1e79c1eac336303'
+ 'e9fb77d2fbe2d3f41d60257316338543')
+
+prepare() {
+ patch -p1 -d $pkgname-$pkgver < 01-fix-not-showing-all-server.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make \
+ BUILD_ROOT="$pkgdir" \
+ MANDIR=usr/share/man \
+ SBIN="$pkgdir/usr/bin" \
+ INIT="$pkgdir/etc/rc.d" \
+ install
+ popd
+ # systemd
+ install -Dm 755 $pkgname.systemd \
+ "$pkgdir/usr/lib/systemd/scripts/$pkgname"
+ install -Dm 644 $pkgname.service \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ # remove legacy init system
+ rm -rf "$pkgdir/etc/rc.d"
+ # default config file
+ install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et: