updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / keepalived / PKGBUILD
blobe1ea1cd28cc3d2bf82d2f620b988ee5fe6f19054
1 # Contributor: Andrea Zucchelli <zukka77@gmail.com>
2 pkgname=keepalived
3 pkgver=1.2.2
4 pkgrel=1
5 pkgdesc="implements an independent VRRPv2 stack and a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover"
6 arch=('i686' 'x86_64')
7 url="http://www.keepalived.org/"
8 license=('GPL')
9 groups=()
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"
13         "keepalived"
14         "ip_vs_moved.patch"
15         )
18 build() {
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
24   make || return 1
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')