5 pkgdesc="UCARP allows hosts to share virtual IP addresses to provide automatic failover."
7 url="http://www.ucarp.org/project/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')
18 cd $srcdir/ucarp-$pkgver
19 patch -Np1 -i ../ucarp_${_patchver}-1.diff
21 ./configure --prefix=/usr
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