updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ucarp / PKGBUILD
blob2e57771d943c37e361df745efadee8fe551f2923
1 pkgname=ucarp
2 pkgver=1.5.2
3 _patchver=1.5.1
4 pkgrel=1
5 pkgdesc="UCARP allows hosts to share virtual IP addresses to provide automatic failover."
6 arch=('i686' 'x86_64')
7 url="http://www.ucarp.org/project/ucarp"
8 license=('GPL2')
9 depends=('libpcap')
10 conflicts=('ucarp')
11 provides=('ucarp')
12 source=(http://download.pureftpd.org/pub/ucarp/ucarp-$pkgver.tar.gz http://ftp.de.debian.org/debian/pool/main/u/ucarp/ucarp_1.5.1-1.diff.gz)
13 md5sums=('e3caa733316a32c09e5d3817617e9145' 'a3c5b8cac28f1005f12a98e18bb040a7')
15 build() {
16   mkdir -p $pkgdir/etc
18   cd $srcdir/ucarp-$pkgver
19   patch -Np1 -i ../ucarp_${_patchver}-1.diff
21   ./configure --prefix=/usr
22   make
23   make DESTDIR=$pkgdir/ install
25   install -m 755 $srcdir/ucarp-$pkgver/examples/linux/vip-down.sh $pkgdir/etc
26   install -m 755 $srcdir/ucarp-$pkgver/examples/linux/vip-up.sh $pkgdir/etc
28   sed -i "s|/sbin/ip|/usr/sbin/ip|g" $pkgdir/etc/vip-down.sh
29   sed -i "s|/sbin/ip|/usr/sbin/ip|g" $pkgdir/etc/vip-up.sh