diff options
Diffstat (limited to 'community/ipvsadm')
-rw-r--r-- | community/ipvsadm/PKGBUILD | 26 | ||||
-rw-r--r-- | community/ipvsadm/ipvsadm.rc | 6 |
2 files changed, 18 insertions, 14 deletions
diff --git a/community/ipvsadm/PKGBUILD b/community/ipvsadm/PKGBUILD index 94a0e668c..a8126aca1 100644 --- a/community/ipvsadm/PKGBUILD +++ b/community/ipvsadm/PKGBUILD @@ -1,43 +1,47 @@ -# $Id: PKGBUILD 66312 2012-02-23 14:03:04Z allan $ +# $Id: PKGBUILD 69082 2012-04-09 02:20:59Z seblu $ # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> # Contributor: Judd Vinet <jvinet@zeroflux.org> pkgname=ipvsadm pkgver=1.26 -pkgrel=3 +pkgrel=4 pkgdesc='The IP Virtual Server administration utility' arch=('i686' 'x86_64') url='http://www.linuxvirtualserver.org/software/ipvs.html' license=('GPL2') depends=('libnl1' 'popt') backup=('etc/conf.d/ipvsadm') -#options=('!makeflags') source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz" 'ipvsadm.rc' 'ipvsadm.conf' 'ipvsadm.rules' '01-fix-not-showing-all-server.patch') md5sums=('eac3ba3f62cd4dea2da353aeddd353a8' - '0e106fce0675e014bea0f9355b947bd6' + '89b15096bb243dc694b6c5d4200561fd' 'cd358130967a9cc0d31fc61282df43e7' 'cd6649c647e495d4d6f981542ce5a93b' 'e9fb77d2fbe2d3f41d60257316338543') build() { - cd ${pkgname}-${pkgver} + cd $pkgname-$pkgver patch -p1 -i ../01-fix-not-showing-all-server.patch - make INCLUDE="-I/usr/src/linux-`uname -r`/include -I.. -I." || return 1 + make INCLUDE="-I/usr/src/linux-$(uname -r)/include -I.. -I." } package() { - cd ${pkgname}-${pkgver} - make BUILD_ROOT=${pkgdir} MANDIR=usr/share/man INIT="$pkgdir/etc/rc.d" install + cd $pkgname-$pkgver + make \ + BUILD_ROOT="$pkgdir" \ + MANDIR=usr/share/man \ + SBIN="$pkgdir/usr/sbin" \ + INIT="$pkgdir/etc/rc.d" \ + install cd "$srcdir" # add initscripts - install -D -m 755 $pkgname.rc "${pkgdir}/etc/rc.d/$pkgname" - install -D -m 644 $pkgname.conf "${pkgdir}/etc/conf.d/$pkgname" + install -D -m 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname" + install -D -m 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname" # add ipvsadm rules - install -D -m 644 $pkgname.rules "${pkgdir}/etc/$pkgname.rules" + install -D -m 644 $pkgname.rules "$pkgdir/etc/$pkgname.rules" } # vim:set ts=2 sw=2 ft=sh et: diff --git a/community/ipvsadm/ipvsadm.rc b/community/ipvsadm/ipvsadm.rc index 91ed32e3b..5a9614106 100644 --- a/community/ipvsadm/ipvsadm.rc +++ b/community/ipvsadm/ipvsadm.rc @@ -7,7 +7,7 @@ case "$1" in start) stat_busy 'Loading IPVS table' - if [[ -f $IPVSADM_CONF ]] && /sbin/ipvsadm-restore < "$IPVSADM_CONF"; then + if [[ -f $IPVSADM_CONF ]] && ipvsadm-restore < "$IPVSADM_CONF"; then add_daemon ipvsadm stat_done else @@ -15,7 +15,7 @@ case "$1" in fi ;; stop) - status 'Clearing IPVS table' /sbin/ipvsadm -C + status 'Clearing IPVS table' ipvsadm -C rm_daemon ipvsadm ;; restart) @@ -25,7 +25,7 @@ case "$1" in ;; save) stat_busy 'Saving IPVS table' - if /sbin/ipvsadm-save -n > "$IPVSADM_CONF" 2>/dev/null; then + if ipvsadm-save -n > "$IPVSADM_CONF" 2>/dev/null; then stat_done else stat_fail |