summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2009-12-17 14:12:24 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2009-12-17 14:12:24 +0000
commit0ebe9dfe6674573a85fa3b164e794e4e9675c54e (patch)
tree930c69795409d89c0b72aa49691260f3e6e79b17 /net-proxy
parentVersion bump (diff)
downloadgentoo-2-0ebe9dfe6674573a85fa3b164e794e4e9675c54e.tar.gz
gentoo-2-0ebe9dfe6674573a85fa3b164e794e4e9675c54e.tar.bz2
gentoo-2-0ebe9dfe6674573a85fa3b164e794e4e9675c54e.zip
version bump, added russian docs with LINGUAS=ru
(Portage version: 2.2_rc59/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/ziproxy/ChangeLog8
-rw-r--r--net-proxy/ziproxy/metadata.xml6
-rw-r--r--net-proxy/ziproxy/ziproxy-2.7.2.ebuild80
3 files changed, 90 insertions, 4 deletions
diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog
index 850048403aef..780c8ee08efb 100644
--- a/net-proxy/ziproxy/ChangeLog
+++ b/net-proxy/ziproxy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/ziproxy
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.22 2009/09/22 15:51:58 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.23 2009/12/17 14:12:24 sbriesen Exp $
+
+*ziproxy-2.7.2 (17 Dec 2009)
+
+ 17 Dec 2009; Stefan Briesenick <sbriesen@gentoo.org>
+ +ziproxy-2.7.2.ebuild, metadata.xml:
+ version bump, added russian docs with LINGUAS=ru
*ziproxy-2.7.1 (22 Sep 2009)
diff --git a/net-proxy/ziproxy/metadata.xml b/net-proxy/ziproxy/metadata.xml
index 5e4b4924fc50..4caf20d4e295 100644
--- a/net-proxy/ziproxy/metadata.xml
+++ b/net-proxy/ziproxy/metadata.xml
@@ -7,8 +7,8 @@
<name>Stefan Briesenick</name>
</maintainer>
<longdescription lang="en">
- Ziproxy is forwarding, non-caching, compressing web proxy server. It
- squeezes images by converting them to low quality JPEGs and optionally
- can also compress (gzip) HTML and other text-like data.
+ Ziproxy is a http compression and optimizer, non-caching, fully configurable
+ proxy. Ziproxy features JPEG, GIF, PNG, JPEG2k and GZIP recompression for
+ lower HTTP traffic through low speed links, among other features.
</longdescription>
</pkgmetadata>
diff --git a/net-proxy/ziproxy/ziproxy-2.7.2.ebuild b/net-proxy/ziproxy/ziproxy-2.7.2.ebuild
new file mode 100644
index 000000000000..533110a221e8
--- /dev/null
+++ b/net-proxy/ziproxy/ziproxy-2.7.2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-2.7.2.ebuild,v 1.1 2009/12/17 14:12:24 sbriesen Exp $
+
+EAPI="2"
+
+inherit 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 linguas_ru"
+
+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
+
+ # 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
+}
+
+src_configure() {
+ local myconf="--with-cfgfile=/etc/ziproxy/ziproxy.conf"
+ use jpeg2k && myconf="${myconf} --with-jasper" # use_with doesn't work
+ econf ${myconf} || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodir /usr/sbin
+ mv -f "${D}usr/bin/ziproxy" "${D}usr/sbin/ziproxy"
+
+ dobin src/tools/ziproxy_genhtml_stats.sh
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+ dodoc ChangeLog CREDITS README README.tools
+ use linguas_ru && dodoc README.ru README.tools.ru
+ if use jpeg2k; then
+ dodoc JPEG2000.txt
+ use linguas_ru && dodoc JPEG2000.ru.txt
+ fi
+
+ insinto /etc
+ doins -r etc/ziproxy
+
+ insinto /var/lib/ziproxy/error
+ doins var/ziproxy/error/*.html
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins etc/xinetd.d/ziproxy
+ fi
+
+ diropts -m0750 -o ziproxy -g ziproxy
+ keepdir /var/log/ziproxy
+}