1 # Contributor: John Gerritse <reaphsharc@gmail.com>
5 pkgdesc="Crossroads is an open source load balance and fail over utility for TCP based services."
7 url="http://crossroads.e-tunity.com/"
9 depends=('perl' 'wget')
10 optdepends=('perl-libwww: LWP::UserAgent will be used to replace wget')
11 source=(http://crossroads.e-tunity.com/downloads/$pkgname-stable.tar.gz)
12 md5sums=('72a259b5f1e95143e4057e1b4fb2f6bc')
15 #Silly devs made a mistake so I need to set this manually
18 cd "$srcdir/$pkgname-$pkgver"
20 # xrctl needs to be installed first
21 install -D -m 755 "$srcdir/$pkgname-$pkgver/xrctl/xrctl" "$pkgdir/usr/sbin/xrctl" || return 1
22 export DESTDIR="$pkgdir"
23 make local || return 1
25 # Tarball comes with a pdf, which comes in handy.
26 install -D -m 644 "$srcdir/$pkgname-$pkgver/doc/xr.pdf" "$pkgdir/usr/share/doc/crossroads/xr.pdf"
29 # vim:set ts=2 sw=2 et: