From 49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Fri, 15 Feb 2013 20:59:24 -0500 Subject: Adding packages to pcr --- pcr/squirm/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/squirm/PKGBUILD (limited to 'pcr/squirm') diff --git a/pcr/squirm/PKGBUILD b/pcr/squirm/PKGBUILD new file mode 100644 index 000000000..a1249c39d --- /dev/null +++ b/pcr/squirm/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Spider.007 +# Contributor: Spider.007 +pkgname=squirm +pkgver=1.26 +pkgrel=2 +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 +} -- cgit v1.2.3-54-g00ecf