From d7c55cd683734666163de29824806a7096e998b3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 6 Dec 2012 20:41:34 +0000 Subject: main/tinyproxy: fix CVE-2012-3505 fixes #1515 --- main/tinyproxy/APKBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'main/tinyproxy/APKBUILD') 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 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" -- cgit v1.2.3