1 # Contributor: Andrea Zucchelli <zukka77@gmail.com>
5 pkgdesc="implements an independent VRRPv2 stack and a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover"
7 url="http://www.keepalived.org/"
10 backup=('etc/keepalived/keepalived.conf' 'etc/conf.d/keepalived')
11 depends=('openssl' 'popt' 'libnl')
12 source=("http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz"
19 cd "$srcdir/$pkgname-$pkgver"
20 #patch -p0 -i "$startdir/src/vrrp_arp.patch"
21 #export CPPFLAGS=-I/usr/src/linux-`uname -r`/include
22 patch -p1 -i $srcdir/ip_vs_moved.patch
23 ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
25 make DESTDIR="$pkgdir" install
26 install -d -m 755 "$pkgdir/etc/rc.d"
27 rm "$pkgdir/etc/rc.d/init.d/keepalived"
28 rmdir "$pkgdir/etc/rc.d/init.d"
29 cp "$srcdir/keepalived" "$pkgdir/etc/rc.d"
30 mv "$pkgdir/etc/keepalived/keepalived.conf" "$pkgdir/etc/keepalived/keepalived.conf.sample"
31 mv "$pkgdir/etc/sysconfig" "$pkgdir/etc/conf.d"
33 md5sums=('f68327ca142616a8463d2d105db122cd'
34 '5d01008994157f47968e8bd82fb366d5'
35 '87ee19c85adaedd3eb11bea8a5865d47')