summaryrefslogtreecommitdiff
path: root/community/keepalived
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-06 15:15:42 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-06 15:15:42 +0100
commit9437cdbc03cb103235fa0b043f4cf73882f10f34 (patch)
tree5dba8834685e18222c996b3cd4c728958ed3a49b /community/keepalived
parent7cfa9860fb15a4bf5066e33255da1a9b09cc95b1 (diff)
parenta110e74fe4a31aebb09e0da6e407af69ed996837 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/drbd/PKGBUILD community/dumb/PKGBUILD community/echat/PKGBUILD community/librcc/PKGBUILD community/linux-tools/PKGBUILD community/python2-pysqlite-legacy/PKGBUILD community/python2-pyxmpp/PKGBUILD core/libksba/PKGBUILD core/ncurses/PKGBUILD extra/libbonobo/PKGBUILD extra/libmpeg2/PKGBUILD extra/qt/PKGBUILD extra/rarian/PKGBUILD extra/wpa_supplicant_gui/PKGBUILD libre/audacious-plugins-libre/PKGBUILD
Diffstat (limited to 'community/keepalived')
-rw-r--r--community/keepalived/PKGBUILD27
-rw-r--r--community/keepalived/keepalived.service1
2 files changed, 11 insertions, 17 deletions
diff --git a/community/keepalived/PKGBUILD b/community/keepalived/PKGBUILD
index 85c397d94..880e6aaf6 100644
--- a/community/keepalived/PKGBUILD
+++ b/community/keepalived/PKGBUILD
@@ -1,24 +1,20 @@
-# $Id: PKGBUILD 75723 2012-08-29 14:02:05Z seblu $
-# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
+# $Id: PKGBUILD 83710 2013-02-04 14:57:08Z seblu $
+# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Andrea Zucchelli <zukka77@gmail.com>
pkgname=keepalived
pkgver=1.2.7
-pkgrel=1
+pkgrel=2
pkgdesc='Failover and monitoring daemon for LVS clusters'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.keepalived.org/'
license=('GPL2')
-backup=('etc/keepalived/keepalived.conf' 'etc/conf.d/keepalived')
+backup=('etc/keepalived/keepalived.conf')
depends=('openssl' 'popt' 'libnl1')
source=("http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz"
- 'keepalived.rc'
- 'keepalived.service'
- 'keepalived.conf')
+ 'keepalived.service')
md5sums=('8551a34ee048895dbe5350a031ff29c1'
- '0d7ea6296bce403a5d24be305a0a9d73'
- 'dd0a003a24057eba1e4dc09f372aaa52'
- '9c8142da8730ad27a345587dea83ced7')
+ 'edbeda8c8777cf36110c1623e49bc5c9')
build() {
cd $pkgname-$pkgver
@@ -30,18 +26,15 @@ package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# clean pacakge init scripts
- rm -r "$pkgdir/etc/rc.d/init.d" "$pkgdir/etc/sysconfig"
+ rm -r "$pkgdir/etc/rc.d" "$pkgdir/etc/sysconfig"
# move examples to /usr/share
install -d -m 755 "$pkgdir/usr/share/$pkgname"
mv "$pkgdir/etc/keepalived/samples" "$pkgdir/usr/share/$pkgname/samples"
-
- # add initscripts
- cd ..
- install -D -m 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
- install -D -m 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
+ # systemd
+ cd "$srcdir"
install -D -m 644 $pkgname.service \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
-# vim:set ts=2 sw=2 ft=sh et:
+# vim:set ts=2 sw=2 et:
diff --git a/community/keepalived/keepalived.service b/community/keepalived/keepalived.service
index e29deeebd..b96a8f474 100644
--- a/community/keepalived/keepalived.service
+++ b/community/keepalived/keepalived.service
@@ -1,5 +1,6 @@
[Unit]
Description=Keepalive Daemon
+After=network.target
[Service]
ExecStart=/usr/sbin/keepalived --dont-fork