updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / ezbounce / PKGBUILD
blob9da56f737e2b0c7513272243593fc84a68331887
1 pkgname=ezbounce
2 pkgver=1.04c
3 pkgrel=1
4 pkgdesc="A highly configurable IRC proxy"
5 url="http://druglord.freelsd.org/ezbounce"
6 depends=(gcc openssl)
7 md5sums=(d3cc3bbd162a0ba7d22a0a9fc629bfd6)
8 source=(http://druglord.freelsd.org/ezbounce/files/ezbounce-1.04c.tar.gz)
10 build() {
11   cd $startdir/src/$pkgname-$pkgver
12   ./configure --with-ssl --sysconfdir=/etc
13   make || return 1
14   install -d $startdir/pkg/usr/bin
15   install -m 755 ezbounce $startdir/pkg/usr/bin
16   install -d $startdir/pkg/etc
17   install -m 644 sample.conf $startdir/pkg/etc/ezbounce.conf
18   sed -i 's/set logfile ezbounce.log/set logfile \/var\/log\/ezbounce\/ezbounce.log/g' $startdir/pkg/etc/ezbounce.conf
19   sed -i 's/set log-dir logs/set log-dir \/var\/log\/ezbounce/g' $startdir/pkg/etc/ezbounce.conf
20   ./misc/make_key.sh rsa ezbounce
21   install -m 644 ezb-rsa.pem $startdir/pkg/etc
22   sed -i 's/# set cert-file ezb.cert/set cert-file \/etc\/ezb-rsa.pem/g' $startdir/pkg/etc/ezbounce.conf