diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2008-03-16 23:34:41 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2008-03-16 23:34:41 +0000 |
commit | c5ec192fe4536ba37404dd1044dec8ecde794b4d (patch) | |
tree | 28240d530057d7f5a6b52eb89f186ba4a10e1abe /net-proxy/ziproxy | |
parent | Drop to ~mips due to unstable deps (diff) | |
download | gentoo-2-c5ec192fe4536ba37404dd1044dec8ecde794b4d.tar.gz gentoo-2-c5ec192fe4536ba37404dd1044dec8ecde794b4d.tar.bz2 gentoo-2-c5ec192fe4536ba37404dd1044dec8ecde794b4d.zip |
version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-proxy/ziproxy')
-rw-r--r-- | net-proxy/ziproxy/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy-2.5.confd | 18 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy-2.5.initd | 26 | ||||
-rw-r--r-- | net-proxy/ziproxy/ziproxy-2.5.1.ebuild | 81 |
4 files changed, 133 insertions, 2 deletions
diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog index c836ef4c4f61..825b0bf3c8e2 100644 --- a/net-proxy/ziproxy/ChangeLog +++ b/net-proxy/ziproxy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/ziproxy -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.15 2007/12/30 13:17:34 mrness Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.16 2008/03/16 23:34:41 sbriesen Exp $ + +*ziproxy-2.5.1 (16 Mar 2008) + + 16 Mar 2008; Stefan Briesenick <sbriesen@gentoo.org> + +files/ziproxy-2.5.confd, +files/ziproxy-2.5.initd, +ziproxy-2.5.1.ebuild: + version bump. *ziproxy-2.4.3 (30 Dec 2007) diff --git a/net-proxy/ziproxy/files/ziproxy-2.5.confd b/net-proxy/ziproxy/files/ziproxy-2.5.confd new file mode 100644 index 000000000000..9a4a12137c6a --- /dev/null +++ b/net-proxy/ziproxy/files/ziproxy-2.5.confd @@ -0,0 +1,18 @@ +# configuraton file for /etc/init.d/ziproxy +# +# you can symlink /etc/init.d/ziproxy to a different name +# and then copy this config to a new file with the same name +# as the symlinked init-script to run multiple instances of +# ziproxy. You have to change the location for CONFIG then +# of course... ;-) + +# Full path to ziproxy.conf file (instead of default one). +# +#CONFIG="/etc/ziproxy/ziproxy.conf" + +# Limit incoming connections only from the specified address(es). +# This 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-2.5.initd b/net-proxy/ziproxy/files/ziproxy-2.5.initd new file mode 100644 index 000000000000..fd3424d7f09a --- /dev/null +++ b/net-proxy/ziproxy/files/ziproxy-2.5.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/files/ziproxy-2.5.initd,v 1.1 2008/03/16 23:34:41 sbriesen Exp $ + +depend() { + need net +} + +start() { + local OPT="-d" + ebegin "Starting ${myservice}" + + [ -n "${CONFIG}" ] && OPT="${OPT} -c ${CONFIG}" + [ -n "${ONLYFROM}" ] && OPT="${OPT} -f ${ONLYFROM}" + + start-stop-daemon --quiet --start --pidfile /var/run/${myservice}.pid \ + --chuid ziproxy:ziproxy --exec /usr/sbin/ziproxy -- ${OPT} > /var/run/${myservice}.pid + eend $? +} + +stop() { + ebegin "Stopping ziproxy" + start-stop-daemon --stop --quiet --pidfile /var/run/${myservice}.pid + eend $? +} diff --git a/net-proxy/ziproxy/ziproxy-2.5.1.ebuild b/net-proxy/ziproxy/ziproxy-2.5.1.ebuild new file mode 100644 index 000000000000..439909e5f7c1 --- /dev/null +++ b/net-proxy/ziproxy/ziproxy-2.5.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-2.5.1.ebuild,v 1.1 2008/03/16 23:34:41 sbriesen Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +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 ~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_unpack() { + unpack ${A} + cd "${S}" + + # fix sample config file + sed -i -e "s:/var/ziproxy/:/var/lib/ziproxy/: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_compile() { + local myconf="--with-cfgfile=/etc/ziproxy/ziproxy.conf" # --enable-testprogs + use jpeg2k && myconf="${myconf} --with-jasper" # use_with doesn't work + econf ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodir /usr/sbin + mv -f "${D}usr/bin/ziproxy" "${D}usr/sbin/ziproxy" + + newbin stats.awk ${PN}_stats.awk + dobin src/tools/ziproxy_genhtml_stats.sh + + newinitd "${FILESDIR}/${PN}-${PV%.*}.initd" ${PN} + newconfd "${FILESDIR}/${PN}-${PV%.*}.confd" ${PN} + + dodoc ChangeLog CREDITS README README.tools + use jpeg2k && dodoc JPEG2000.txt + + 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 +} |