aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinyproxy/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:30:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:39:40 +0000
commit35eab988b694af0b7269e32cd840002e3229354c (patch)
tree6434c3526ad34ee429a649a6d1adfb2d82afedf9 /main/tinyproxy/APKBUILD
parente30baf0f42ab52071caff7c6a7e991750be82fa0 (diff)
downloadaports-35eab988b694af0b7269e32cd840002e3229354c.tar.bz2
aports-35eab988b694af0b7269e32cd840002e3229354c.tar.xz
main/tinyproxy: upgrade to 1.8.3
Diffstat (limited to 'main/tinyproxy/APKBUILD')
-rw-r--r--main/tinyproxy/APKBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/main/tinyproxy/APKBUILD b/main/tinyproxy/APKBUILD
index 4e9cf93cc1..1ce0c08ade 100644
--- a/main/tinyproxy/APKBUILD
+++ b/main/tinyproxy/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
-pkgver=1.6.5
-pkgrel=7
+pkgver=1.8.3
+pkgrel=0
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
@@ -10,37 +10,39 @@ url="https://www.banu.com/tinyproxy/"
arch="all"
license="GPL"
depends=
-makedepends=wget
-install="tinyproxy.pre-install tinyproxy.post-install"
+makedepends="wget asciidoc"
+install="tinyproxy.pre-install"
subpackages="$pkgname-doc"
-source="https://www.banu.com/pub/$pkgname/1.6/$pkgname-$pkgver.tar.gz
+source="https://www.banu.com/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
tinyproxy.initd
"
_builddir="$srcdir/$pkgname-$pkgver"
-build() {
+prepare() {
cd "$_builddir"
# set default user to tinyproxy:tinyproxy and correct pidfile
sed -i -e 's:^User.*:User tinyproxy:' \
-e 's:^Group.*:Group tinyproxy:' \
-e 's:^PidFile.*:PidFile "/var/run/tinyproxy/tinyproxy.pid":' \
- doc/tinyproxy.conf
+ etc/tinyproxy.conf.in
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info
-
+ --sysconfdir=/etc/tinyproxy \
+ --disable-dependency-tracking \
+ || return
make || return 1
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install || return 1
install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/run/tinyproxy
install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy
}
-md5sums="2b2862ba33d2939e4572688d442ba415 tinyproxy-1.6.5.tar.gz
+md5sums="292ac51da8ad6ae883d4ebf56908400d tinyproxy-1.8.3.tar.bz2
ce2b2e3c79fa0e8491fe625bbb15710a tinyproxy.initd"