blob: a28085b244eb5454c88ef5a47a4d77c041eae7f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer (Arch): Spider.007 <archPackage@spider007.net>
# Contributor (Arch): Spider.007 <archPackage@spider007.net>
pkgname=squirm
pkgver=1.26
pkgrel=1
pkgdesc="Fast & configurable proxy redirector"
url="http://squirm.foote.com.au/"
source=("$url/$pkgname-$pkgver.tgz")
md5sums=('54ac1d208620ec1e4419f97315d38848')
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
build() {
cd $srcdir/$pkgname-$pkgver
make PREFIX=/usr
}
package() {
cd $srcdir/$pkgname-$pkgver
# make install uses a weird prefix
install -d $pkgdir/etc/squirm $pkgdir/var/log/squirm
install -Dm755 squirm $pkgdir/usr/bin/squirm
install -m644 squirm.conf.dist $pkgdir/etc/squirm/squirm.conf
install -m644 squirm.patterns.dist $pkgdir/etc/squirm/squirm.patterns
# use absolute path files
sed -e "s,logs,/var/log/squirm,g" \
-e "s,pattern ,& /etc/squirm/,g" \
-i $pkgdir/etc/squirm/squirm.conf
}
|