diff options
Diffstat (limited to 'community/keepalived/PKGBUILD')
-rw-r--r-- | community/keepalived/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/keepalived/PKGBUILD b/community/keepalived/PKGBUILD new file mode 100644 index 000000000..c5bb554c4 --- /dev/null +++ b/community/keepalived/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 90520 2013-05-12 23:55:17Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Andrea Zucchelli <zukka77@gmail.com> + +pkgname=keepalived +pkgver=1.2.7 +pkgrel=3 +pkgdesc='Failover and monitoring daemon for LVS clusters' +arch=('i686' 'x86_64') +url='http://www.keepalived.org/' +license=('GPL2') +backup=('etc/keepalived/keepalived.conf') +depends=('openssl' 'popt' 'libnl1') +source=("http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz" + 'keepalived.service') +md5sums=('8551a34ee048895dbe5350a031ff29c1' + '0a5171f4298528315e8a8004b55befb7') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + # clean pacakge init scripts + 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" + # systemd + install -D -m 644 "$srcdir/$pkgname.service" \ + "$pkgdir/usr/lib/systemd/system/$pkgname.service" +} + +# vim:set ts=2 sw=2 et: |