diff options
author | root <root@rshg054.dnsready.net> | 2011-12-07 23:14:52 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-07 23:14:52 +0000 |
commit | 6f9a9504db6338f0c35c4ca70bad42965b74791a (patch) | |
tree | 8cd9006f99ed08350063a734502b77e1d0ee7db4 /community/keepalived/PKGBUILD | |
parent | 8736f458a17a03cf79a763a0c8122f93162fed71 (diff) |
Wed Dec 7 23:14:52 UTC 2011
Diffstat (limited to 'community/keepalived/PKGBUILD')
-rw-r--r-- | community/keepalived/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/keepalived/PKGBUILD b/community/keepalived/PKGBUILD new file mode 100644 index 000000000..79361ec90 --- /dev/null +++ b/community/keepalived/PKGBUILD @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net +# Contributor: Andrea Zucchelli <zukka77@gmail.com> + +pkgname=keepalived +pkgver=1.2.2 +pkgrel=1 +pkgdesc='implements an independent VRRPv2 stack and a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover' +arch=('i686' 'x86_64') +url='http://www.keepalived.org/' +license=('GPL2') +backup=('etc/keepalived/keepalived.conf' 'etc/conf.d/keepalived') +depends=('openssl' 'popt' 'libnl') +source=("http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz" + 'keepalived.rc' + 'keepalived.conf' + 'ip_vs_moved.patch') +md5sums=('f68327ca142616a8463d2d105db122cd' + 'baeb62a682c2b59d732cea84bf52cc87' + '9c8142da8730ad27a345587dea83ced7' + '87ee19c85adaedd3eb11bea8a5865d47') + +build() { + cd $pkgname-$pkgver + patch -p1 -i ../ip_vs_moved.patch + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + # add initscripts + install -D -m 755 $pkgname.rc "${pkgdir}/etc/rc.d/$pkgname" + install -D -m 644 $pkgname.conf "${pkgdir}/etc/conf.d/$pkgname" + + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + # clean pacakge init scripts + rm -r "$pkgdir/etc/rc.d/init.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" +} + +# vim:set ts=2 sw=2 ft=sh et: |