diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2007-10-05 23:08:24 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2007-10-05 23:08:24 +0000 |
commit | 78273bdee9859fe64be57f16047af2fb353c76a2 (patch) | |
tree | 98ab762922070e51a0aae6ad1a38eba195c52060 /net-proxy/ziproxy | |
parent | initial commit. (diff) | |
download | gentoo-2-78273bdee9859fe64be57f16047af2fb353c76a2.tar.gz gentoo-2-78273bdee9859fe64be57f16047af2fb353c76a2.tar.bz2 gentoo-2-78273bdee9859fe64be57f16047af2fb353c76a2.zip |
version bump.
(Portage version: 2.1.3.11)
Diffstat (limited to 'net-proxy/ziproxy')
-rw-r--r-- | net-proxy/ziproxy/ChangeLog | 9 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/digest-ziproxy-2.3.0 | 3 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy-2.3.0.diff | 22 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy-2.3.confd | 18 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy-2.3.initd | 26 | ||||
-rw-r--r-- | net-proxy/ziproxy/ziproxy-2.3.0.ebuild | 84 |
6 files changed, 161 insertions, 1 deletions
diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog index 56510beaa85e..87440498aac1 100644 --- a/net-proxy/ziproxy/ChangeLog +++ b/net-proxy/ziproxy/ChangeLog @@ -1,6 +1,13 @@ # 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.10 2007/06/17 16:22:12 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.11 2007/10/05 23:08:23 sbriesen Exp $ + +*ziproxy-2.3.0 (05 Oct 2007) + + 05 Oct 2007; Stefan Briesenick <sbriesen@gentoo.org> + +files/ziproxy-2.3.0.diff, +files/ziproxy-2.3.confd, + +files/ziproxy-2.3.initd, +ziproxy-2.3.0.ebuild: + version bump. 17 Jun 2007; Alin Năstac <mrness@gentoo.org> -files/ziproxy-2.1.confd, -files/ziproxy-2.1.initd, -ziproxy-2.1.1.ebuild: diff --git a/net-proxy/ziproxy/files/digest-ziproxy-2.3.0 b/net-proxy/ziproxy/files/digest-ziproxy-2.3.0 new file mode 100644 index 000000000000..6a5280e35209 --- /dev/null +++ b/net-proxy/ziproxy/files/digest-ziproxy-2.3.0 @@ -0,0 +1,3 @@ +MD5 2733c117e819c5000d898456388922ba ziproxy-2.3.0.tar.bz2 152058 +RMD160 934598381ea78c6fed9e6ca696e04eda285622b5 ziproxy-2.3.0.tar.bz2 152058 +SHA256 e69e179304498e0c4dcaf19dd2b4dd3be76ad9a09c68fe58c4004780a8598894 ziproxy-2.3.0.tar.bz2 152058 diff --git a/net-proxy/ziproxy/files/ziproxy-2.3.0.diff b/net-proxy/ziproxy/files/ziproxy-2.3.0.diff new file mode 100644 index 000000000000..42c636b33854 --- /dev/null +++ b/net-proxy/ziproxy/files/ziproxy-2.3.0.diff @@ -0,0 +1,22 @@ +diff -Naur ziproxy-2.3.0.orig/src/log.c ziproxy-2.3.0/src/log.c +--- ziproxy-2.3.0.orig/src/log.c 2006-05-17 05:25:18.000000000 +0200 ++++ ziproxy-2.3.0/src/log.c 2007-10-06 00:04:06.000000000 +0200 +@@ -15,6 +15,7 @@ + #include <stdarg.h> + #include <time.h> + #include <sys/time.h> ++#include <string.h> + #include "cfgfile.h" + #include "http.h" + +diff -Naur ziproxy-2.3.0.orig/src/tools/ziproxylogtool.c ziproxy-2.3.0/src/tools/ziproxylogtool.c +--- ziproxy-2.3.0.orig/src/tools/ziproxylogtool.c 2007-05-09 03:34:34.000000000 +0200 ++++ ziproxy-2.3.0/src/tools/ziproxylogtool.c 2007-10-06 00:03:30.000000000 +0200 +@@ -9,6 +9,7 @@ + #include <string.h> + #include <getopt.h> + #include <stdarg.h> ++#include <stdlib.h> + + #define LINE_BUFFER 4096 + #define HOSTNAME_BUFFER 256 diff --git a/net-proxy/ziproxy/files/ziproxy-2.3.confd b/net-proxy/ziproxy/files/ziproxy-2.3.confd new file mode 100644 index 000000000000..793b8c666739 --- /dev/null +++ b/net-proxy/ziproxy/files/ziproxy-2.3.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.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.3.initd b/net-proxy/ziproxy/files/ziproxy-2.3.initd new file mode 100644 index 000000000000..122fe9eafd5d --- /dev/null +++ b/net-proxy/ziproxy/files/ziproxy-2.3.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/files/ziproxy-2.3.initd,v 1.1 2007/10/05 23:08:24 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.3.0.ebuild b/net-proxy/ziproxy/ziproxy-2.3.0.ebuild new file mode 100644 index 000000000000..99d4d78612b6 --- /dev/null +++ b/net-proxy/ziproxy/ziproxy-2.3.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-2.3.0.ebuild,v 1.1 2007/10/05 23:08:23 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="dev-libs/confuse + media-libs/giflib + media-libs/libpng + media-libs/jpeg + sys-libs/zlib + jpeg2k? ( media-libs/jasper ) + xinetd? ( virtual/inetd )" + +pkg_setup() { + enewgroup ziproxy + enewuser ziproxy -1 -1 -1 ziproxy +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # fix some compile warnings + epatch "${FILESDIR}/${P}.diff" + + # fix sample config file + sed -i -e "s:/usr/local/ziproxy/\(ziproxy.passwd\):/etc/\1:g" \ + -e "s:/var/ziproxy/:/var/lib/ziproxy/:g" etc/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="--enable-shared-confuse --with-cfgfile=/etc/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() { + make DESTDIR="${D}" install || die "make 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 etc/ziproxy.conf + + 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 +} |