summaryrefslogtreecommitdiff
path: root/community/ucarp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ucarp/PKGBUILD')
-rw-r--r--community/ucarp/PKGBUILD26
1 files changed, 18 insertions, 8 deletions
diff --git a/community/ucarp/PKGBUILD b/community/ucarp/PKGBUILD
index fa1879371..9b2d22f94 100644
--- a/community/ucarp/PKGBUILD
+++ b/community/ucarp/PKGBUILD
@@ -1,9 +1,9 @@
# $Id$
-# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
+# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
pkgname=ucarp
pkgver=1.5.2
-pkgrel=1
+pkgrel=2
pkgdesc='UCARP is a portable implementation of the CARP protocol'
arch=('i686' 'x86_64')
url='http://www.ucarp.org/project/ucarp'
@@ -13,11 +13,13 @@ optdepends=('iproute2')
source=("http://download.pureftpd.org/pub/ucarp/ucarp-$pkgver.tar.gz"
'ucarp.rc'
'ucarp.conf'
+ 'ucarp.8'
'01-fix-getopt.patch'
'02-fix-downscript-on-error.c')
md5sums=('e3caa733316a32c09e5d3817617e9145'
'd941d2978c5b43154a29212115729519'
- '35d1aabe416384e6fd8bd62312dbdb25'
+ '9b27f0cf552511716b1ce3678b7a77ca'
+ '05b64a5daeb7aab45a2a59e0f4d83c8f'
'3f20699aaf2ef8139dcd337f1e7f06ab'
'09d26233c37956cf08e629554a91b8cd')
@@ -26,12 +28,12 @@ build() {
patch -N -p1 -i ../01-fix-getopt.patch
patch -N -p1 -i ../02-fix-downscript-on-error.c
- ./configure --prefix=/usr --mandir=/usr/share/man
+ ./configure --prefix=/usr
make
# fix iproute2 path
- sed -i "s|/sbin|/usr/sbin|g" examples/linux/vip-down.sh
- sed -i "s|/sbin|/usr/sbin|g" examples/linux/vip-up.sh
+ sed -i 's|/sbin|/usr/sbin|g' examples/linux/vip-down.sh
+ sed -i 's|/sbin|/usr/sbin|g' examples/linux/vip-up.sh
}
package() {
@@ -39,12 +41,20 @@ package() {
install -D -m 755 $pkgname.rc "${pkgdir}/etc/rc.d/$pkgname"
install -D -m 644 $pkgname.conf "${pkgdir}/etc/conf.d/$pkgname"
+ # add manpage
+ install -D -m 644 $pkgname.8 "${pkgdir}/usr/share/man/man8/$pkgname.8"
+
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
- install -D -m 755 examples/linux/vip-down.sh "$pkgdir/etc/ucarp/vip-down.sh"
- install -D -m 755 examples/linux/vip-up.sh "$pkgdir/etc/ucarp/vip-up.sh"
+ # install examples files
+ install -D -m 644 examples/linux/vip-down.sh \
+ "$pkgdir/usr/share/doc/$pkgname/examples/vip-down.sh"
+ install -D -m 644 examples/linux/vip-up.sh \
+ "$pkgdir/usr/share/doc/$pkgname/examples/vip-up.sh"
+ # install README
+ install -D -m 644 README "$pkgdir/usr/share/doc/$pkgname/README"
}
# vim:set ts=2 sw=2 ft=sh et: