updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / wwwoffle / PKGBUILD
blobd0689c89be73c3196d31f812886d164ae48aa02f
1 # Contributor: Vasco Costa <vasco dot costa at geekslot dot com>
2 pkgname=wwwoffle
3 pkgver=2.9e
4 pkgrel=1
5 pkgdesc="Simple proxy server with special features for use with dial-up internet links"
6 arch=(i686)
7 url="http://www.gedanken.demon.co.uk/wwwoffle/"
8 license=('GPL')
9 depends=('zlib')
10 backup=('etc/wwwoffle/wwwoffle.conf')
11 install=$pkgname.install
12 source=(http://www.gedanken.demon.co.uk/download-wwwoffle/$pkgname-$pkgver.tgz)
13 md5sums=('39f2dfcf421e0f33286f41043c3075ea')
15 build() {
16   cd $startdir/src/$pkgname-$pkgver
17   ./configure --prefix=/usr
18   make || return 1
19   make DESTDIR=$startdir/pkg install
20   install -D -m755 $startdir/wwwoffle $startdir/pkg/etc/rc.d/wwwoffle
21   install -D -m644 $startdir/wwwoffle.conf.d $startdir/pkg/etc/conf.d/wwwoffle
22   sed -i -e 's/^#run-uid.*/ run-uid           = wwwoffle/' \
23     $startdir/pkg/etc/wwwoffle/wwwoffle.conf
24   sed -i -e 's/^#run-gid.*/ run-gid           = wwwoffle/' \
25     $startdir/pkg/etc/wwwoffle/wwwoffle.conf