summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-01-25 02:03:40 +0000
committerJeroen Roovers <jer@gentoo.org>2011-01-25 02:03:40 +0000
commit3c4595b264c7b634eea1c44753b25514b0e07327 (patch)
tree8834711fac8e9e7d976ed2b333c3fc3897d7067c /net-proxy
parentVersion bump (diff)
downloadgentoo-2-3c4595b264c7b634eea1c44753b25514b0e07327.tar.gz
gentoo-2-3c4595b264c7b634eea1c44753b25514b0e07327.tar.bz2
gentoo-2-3c4595b264c7b634eea1c44753b25514b0e07327.zip
Version bump by Christian Zuckschwerdt (bug #352617). Clean up patches.
(Portage version: 2.2.0_alpha19/cvs/Linux i686)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/tinyproxy/ChangeLog11
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy-1.8.1-ldflags.patch4
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy-no-via.patch4
-rw-r--r--net-proxy/tinyproxy/tinyproxy-1.8.2.ebuild74
4 files changed, 87 insertions, 6 deletions
diff --git a/net-proxy/tinyproxy/ChangeLog b/net-proxy/tinyproxy/ChangeLog
index ff9226ef5c62..9154a1dd0df0 100644
--- a/net-proxy/tinyproxy/ChangeLog
+++ b/net-proxy/tinyproxy/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-proxy/tinyproxy
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.20 2010/06/04 05:28:04 jer Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/ChangeLog,v 1.21 2011/01/25 02:03:40 jer Exp $
+
+*tinyproxy-1.8.2 (25 Jan 2011)
+
+ 25 Jan 2011; Jeroen Roovers <jer@gentoo.org>
+ files/tinyproxy-1.8.1-ldflags.patch, +tinyproxy-1.8.2.ebuild,
+ files/tinyproxy-no-via.patch:
+ Version bump by Christian Zuckschwerdt (bug #352617). Clean up patches.
04 Jun 2010; Jeroen Roovers <jer@gentoo.org> tinyproxy-1.8.1-r1.ebuild:
Invert USE=minimal logic thanks to Ben Kohler (bug #321753 again).
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.8.1-ldflags.patch b/net-proxy/tinyproxy/files/tinyproxy-1.8.1-ldflags.patch
index bc6f799d56e3..bd40ec33e31a 100644
--- a/net-proxy/tinyproxy/files/tinyproxy-1.8.1-ldflags.patch
+++ b/net-proxy/tinyproxy/files/tinyproxy-1.8.1-ldflags.patch
@@ -1,5 +1,5 @@
---- configure.ac.orig 2010-03-09 12:41:45.000000000 +0100
-+++ configure.ac 2010-05-17 23:07:39.000000000 +0200
+--- a/configure.ac 2010-03-09 12:41:45.000000000 +0100
++++ b/configure.ac 2010-05-17 23:07:39.000000000 +0200
@@ -222,7 +222,7 @@
CFLAGS="-DNDEBUG $CFLAGS"
fi
diff --git a/net-proxy/tinyproxy/files/tinyproxy-no-via.patch b/net-proxy/tinyproxy/files/tinyproxy-no-via.patch
index d5bbc3e0e471..d01bf12c1770 100644
--- a/net-proxy/tinyproxy/files/tinyproxy-no-via.patch
+++ b/net-proxy/tinyproxy/files/tinyproxy-no-via.patch
@@ -1,5 +1,5 @@
---- src/reqs.c
-+++ src/reqs.c
+--- a/src/reqs.c
++++ b/src/reqs.c
@@ -1002,36 +1002,5 @@
unsigned int major, unsigned int minor)
{
diff --git a/net-proxy/tinyproxy/tinyproxy-1.8.2.ebuild b/net-proxy/tinyproxy/tinyproxy-1.8.2.ebuild
new file mode 100644
index 000000000000..fdb4dc6485de
--- /dev/null
+++ b/net-proxy/tinyproxy/tinyproxy-1.8.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.2.ebuild,v 1.1 2011/01/25 02:03:40 jer Exp $
+
+EAPI="2"
+
+inherit autotools eutils
+
+DESCRIPTION="A lightweight HTTP/SSL proxy"
+HOMEPAGE="http://www.banu.com/tinyproxy/"
+SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="debug +filter-proxy minimal reverse-proxy transparent-proxy
+ +upstream-proxy +xtinyproxy-header"
+
+DEPEND="!minimal? ( app-text/asciidoc )"
+RDEPEND=""
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} "" "" "" ${PN}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.8.1-ldflags.patch
+ use minimal && epatch "${FILESDIR}/${P}-minimal.patch"
+ sed -i etc/${PN}.conf.in -e "s|nobody|${PN}|g" || die "sed failed"
+ sed \
+ -e "/CONFFILE/s:${PN}/::g" \
+ "${FILESDIR}/${PN}.initd" \
+ > "${WORKDIR}"/${PN}.initd \
+ || die "sed failed"
+ eautoreconf
+}
+
+src_configure() {
+ if use minimal; then
+ ln -s /bin/true "${T}"/a2x
+ export PATH="${T}:${PATH}"
+ fi
+ econf \
+ --localstatedir=/var \
+ $(use_enable filter-proxy filter) \
+ $(use_enable reverse-proxy reverse) \
+ $(use_enable transparent-proxy transparent) \
+ $(use_enable upstream-proxy upstream) \
+ $(use_enable xtinyproxy-header xtinyproxy) \
+ $(use_enable debug)
+}
+
+src_install() {
+ sed -i \
+ -e 's:mkdir $(datadir)/tinyproxy:mkdir -p $(DESTDIR)$(datadir)/tinyproxy:' \
+ Makefile
+ emake DESTDIR="${D}" install || die "install failed"
+
+ if ! use minimal; then
+ dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
+ fi
+
+ diropts -m0775 -o ${PN} -g ${PN}
+ keepdir /var/log/${PN}
+ keepdir /var/run/${PN}
+
+ newinitd "${WORKDIR}"/tinyproxy.initd tinyproxy
+}
+
+pkg_postinst() {
+ einfo "For filtering domains and URLs, enable filter option in the configuration"
+ einfo "file and add them to the filter file (one domain or URL per line)."
+}