initial commit, solving bug #63731.
authorStefan Briesenick <sbriesen@gentoo.org>
Fri, 7 Oct 2005 00:03:55 +0000 (00:03 +0000)
committerStefan Briesenick <sbriesen@gentoo.org>
Fri, 7 Oct 2005 00:03:55 +0000 (00:03 +0000)
Package-Manager: portage-2.0.53_rc3

net-proxy/ziproxy/ChangeLog [new file with mode: 0644]
net-proxy/ziproxy/Manifest [new file with mode: 0644]
net-proxy/ziproxy/files/digest-ziproxy-1.5.1 [new file with mode: 0644]
net-proxy/ziproxy/files/ziproxy.confd [new file with mode: 0644]
net-proxy/ziproxy/files/ziproxy.initd [new file with mode: 0644]
net-proxy/ziproxy/metadata.xml [new file with mode: 0644]
net-proxy/ziproxy/ziproxy-1.5.1.ebuild [new file with mode: 0644]

diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog
new file mode 100644 (file)
index 0000000..c61eb83
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for net-proxy/ziproxy
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.1 2005/10/07 00:03:55 sbriesen Exp $
+
+*ziproxy-1.5.1 (07 Oct 2005)
+
+  07 Oct 2005; Stefan Briesenick <sbriesen@gentoo.org> +files/ziproxy.confd,
+  +files/ziproxy.initd, +metadata.xml, +ziproxy-1.5.1.ebuild:
+  initial commit, solving bug #63731.
+
diff --git a/net-proxy/ziproxy/Manifest b/net-proxy/ziproxy/Manifest
new file mode 100644 (file)
index 0000000..7eb8d5f
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 e7958d0ff5aed42d53e6a8e50881a50f ChangeLog 417
+MD5 d99134343b6a3f08d5a80d3c0c54e6c1 files/digest-ziproxy-1.5.1 66
+MD5 363428d06cea3db7d7eebabdfd4688fa files/ziproxy.confd 301
+MD5 072dbc2fc7b4fe372d4d5103bee02af3 files/ziproxy.initd 694
+MD5 13eac033f7cb4d69bd27489ab828449a metadata.xml 513
+MD5 fc39d880b163ea68a5ca2811cb378140 ziproxy-1.5.1.ebuild 1618
diff --git a/net-proxy/ziproxy/files/digest-ziproxy-1.5.1 b/net-proxy/ziproxy/files/digest-ziproxy-1.5.1
new file mode 100644 (file)
index 0000000..fda014d
--- /dev/null
@@ -0,0 +1 @@
+MD5 0129461a8e1770a1310f7e2c343d34fc ziproxy-1.5.1.tar.bz2 118780
diff --git a/net-proxy/ziproxy/files/ziproxy.confd b/net-proxy/ziproxy/files/ziproxy.confd
new file mode 100644 (file)
index 0000000..e8b4f30
--- /dev/null
@@ -0,0 +1,11 @@
+# configuraton file for /etc/init.d/ziproxy
+
+# location of the ziproxy config file
+#
+#CONFIG="/etc/ziproxy.conf"
+
+# following option has the same meaning, but higher precedence
+# as "OnlyFrom=" option in configuration file. Uncomment it
+# if you want to set it.
+#
+#ONLYFROM="<IP.address or hostname>"
diff --git a/net-proxy/ziproxy/files/ziproxy.initd b/net-proxy/ziproxy/files/ziproxy.initd
new file mode 100644 (file)
index 0000000..72abbe9
--- /dev/null
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/files/ziproxy.initd,v 1.1 2005/10/07 00:03:55 sbriesen Exp $
+
+depend() {
+       need net
+}
+
+start() {
+       local OPT
+       ebegin "Starting ziproxy"
+       [ -n "${CONFIG}" ] && OPT="-c ${CONFIG}" || OPT="-c /etc/ziproxy.conf"
+       [ -n "${ONLYFROM}" ] && OPT="${OPT} -f ${ONLYFROM}"
+       start-stop-daemon --quiet --start --background \
+               --make-pidfile --pidfile /var/run/ziproxy.pid \
+               --exec /usr/bin/netd -- ${OPT}
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping ziproxy"
+       start-stop-daemon --stop --quiet --pidfile /var/run/ziproxy.pid
+       eend $?
+}
diff --git a/net-proxy/ziproxy/metadata.xml b/net-proxy/ziproxy/metadata.xml
new file mode 100644 (file)
index 0000000..5e4b492
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>net-proxy</herd>
+       <maintainer>
+               <email>sbriesen@gentoo.org</email>
+               <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.
+       </longdescription>
+</pkgmetadata>
diff --git a/net-proxy/ziproxy/ziproxy-1.5.1.ebuild b/net-proxy/ziproxy/ziproxy-1.5.1.ebuild
new file mode 100644 (file)
index 0000000..5e8ae2f
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-1.5.1.ebuild,v 1.1 2005/10/07 00:03:55 sbriesen Exp $
+
+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 ~x86"
+IUSE="jpeg2k"
+DEPEND="dev-libs/confuse
+       media-libs/giflib
+       media-libs/libpng
+       media-libs/jpeg
+       sys-libs/zlib
+       jpeg2k? ( media-libs/jasper )"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       # fix sample xinetd config filee
+       sed -i -e "s:/home/juro/bin/:/usr/bin/:g" \
+               -e "s:/home/juro/ziproxy/:/etc/:g" \
+               -e "s:\(disable.*=\).*:\1 yes:g" etc/xinetd.d/ziproxy
+       # fix sample config file
+       sed -i -e "s:/usr/local/bin/:/usr/bin/:g" \
+               -e "s:/var/ziproxy/:/var/lib/ziproxy/:g" \
+               -e "s:\(LogFile.*=.*\"\)\(.*\"\):\1/var/log/ziproxy_\2:g" etc/ziproxy.conf
+}
+
+src_compile() {
+       local myconf="--enable-shared-confuse --with-cfgfile=/etc/ziproxy.conf"
+       use jpeg2k && myconf="${myconf} --with-jasper"  # use_with doesn't work
+       econf ${myconf} || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+       dodoc ChangeLog CREDITS README
+       use jpeg2k && dodoc JPEG2000.txt
+       insinto /etc
+       doins etc/ziproxy.conf
+       insinto /etc/xinetd.d
+       doins etc/xinetd.d/ziproxy
+       insinto /var/lib/ziproxy/error
+       doins var/ziproxy/error/*.html
+       newconfd "${FILESDIR}/${PN}.confd" ziproxy
+       newinitd "${FILESDIR}/${PN}.initd" ziproxy
+}