summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-06-15 15:09:59 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-06-15 15:09:59 +0000
commit9dd2d95bfaf3abd5beb696819ea53eca00d7f2d7 (patch)
tree864ef3381702942d867bb97f339d9d600e55b3da /net-proxy/ziproxy
parentMasking sci-chemistry/pdb-extract-3.004-r2 for bug 314053 (diff)
downloadgentoo-2-9dd2d95bfaf3abd5beb696819ea53eca00d7f2d7.tar.gz
gentoo-2-9dd2d95bfaf3abd5beb696819ea53eca00d7f2d7.tar.bz2
gentoo-2-9dd2d95bfaf3abd5beb696819ea53eca00d7f2d7.zip
Version bump wrt #324021.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy/ziproxy')
-rw-r--r--net-proxy/ziproxy/ChangeLog7
-rw-r--r--net-proxy/ziproxy/ziproxy-3.1.1.ebuild83
2 files changed, 89 insertions, 1 deletions
diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog
index 2b83d5a70af5..1dbb686d09ca 100644
--- a/net-proxy/ziproxy/ChangeLog
+++ b/net-proxy/ziproxy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/ziproxy
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.25 2010/04/13 10:23:43 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.26 2010/06/15 15:09:59 ssuominen Exp $
+
+*ziproxy-3.1.1 (15 Jun 2010)
+
+ 15 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> +ziproxy-3.1.1.ebuild:
+ Version bump wrt #324021.
13 Apr 2010; Diego E. Pettenò <flameeyes@gentoo.org>
files/ziproxy-2.7.2-libpng14.patch:
diff --git a/net-proxy/ziproxy/ziproxy-3.1.1.ebuild b/net-proxy/ziproxy/ziproxy-3.1.1.ebuild
new file mode 100644
index 000000000000..bdda34133574
--- /dev/null
+++ b/net-proxy/ziproxy/ziproxy-3.1.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-3.1.1.ebuild,v 1.1 2010/06/15 15:09:59 ssuominen Exp $
+
+EAPI=2
+inherit autotools eutils
+
+DESCRIPTION="A forwarding, non-caching, compressing web proxy server"
+HOMEPAGE="http://ziproxy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="jpeg2k xinetd"
+
+DEPEND="media-libs/giflib
+ media-libs/libpng
+ media-libs/jpeg
+ sys-libs/zlib
+ jpeg2k? ( media-libs/jasper )"
+RDEPEND="${DEPEND}
+ xinetd? ( virtual/inetd )"
+
+pkg_setup() {
+ enewgroup ziproxy
+ enewuser ziproxy -1 -1 -1 ziproxy
+}
+
+src_prepare() {
+ # fix sample config file
+ sed -i \
+ -e "s:/var/ziproxy/:/var/lib/ziproxy/:g" \
+ -e "s:%j-%Y.log:/var/log/ziproxy/%j-%Y.log:g" \
+ etc/ziproxy/ziproxy.conf || die
+
+ # fix sample xinetd config
+ sed -i \
+ -e "s:/usr/bin/:/usr/sbin/:g" \
+ -e "s:\(.*port.*\):\1\n\ttype\t\t\t= UNLISTED:g" \
+ -e "s:root:ziproxy:g" \
+ etc/xinetd.d/ziproxy || die
+
+ AT_M4DIR="config" eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use jpeg2k && myconf="--with-jasper" # use_with doesn't work
+
+ econf \
+ --with-cfgfile=/etc/ziproxy/ziproxy.conf \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodir /usr/sbin
+ mv -vf "${D}"usr/{,s}bin/ziproxy || die
+
+ dobin src/tools/ziproxy_genhtml_stats.sh || die
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ dodoc ChangeLog CREDITS README README.tools
+ use jpeg2k && dodoc JPEG2000.txt
+
+ insinto /etc
+ doins -r etc/ziproxy || die
+
+ insinto /var/lib/ziproxy/error
+ doins var/ziproxy/error/*.html || die
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins etc/xinetd.d/ziproxy || die
+ fi
+
+ diropts -m0750 -o ziproxy -g ziproxy
+ keepdir /var/log/ziproxy
+}