aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinyproxy/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-06 20:41:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-07 08:30:24 +0000
commitd7c55cd683734666163de29824806a7096e998b3 (patch)
treea7f3443d6943c1ad2b9d567ca3431dfa8817caca /main/tinyproxy/APKBUILD
parent02ce8a55c740b8a702d035d196a65e4a03725db0 (diff)
downloadaports-d7c55cd683734666163de29824806a7096e998b3.tar.bz2
aports-d7c55cd683734666163de29824806a7096e998b3.tar.xz
main/tinyproxy: fix CVE-2012-3505
fixes #1515
Diffstat (limited to 'main/tinyproxy/APKBUILD')
-rw-r--r--main/tinyproxy/APKBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/main/tinyproxy/APKBUILD b/main/tinyproxy/APKBUILD
index 28ec287fe5..8c62f955e3 100644
--- a/main/tinyproxy/APKBUILD
+++ b/main/tinyproxy/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.8.3
-pkgrel=1
+pkgrel=2
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
@@ -14,12 +14,18 @@ makedepends="asciidoc"
install="tinyproxy.pre-install"
subpackages="$pkgname-doc"
source="https://www.banu.com/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ limit_headers.patch
tinyproxy.initd
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
# set default user to tinyproxy:tinyproxy and correct pidfile
sed -i -e 's:^User.*:User tinyproxy:' \
@@ -47,4 +53,5 @@ package() {
}
md5sums="292ac51da8ad6ae883d4ebf56908400d tinyproxy-1.8.3.tar.bz2
+cf72d2503f6415079c4702853d467ea8 limit_headers.patch
ce2b2e3c79fa0e8491fe625bbb15710a tinyproxy.initd"