# 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ChangeLog,v 1.2 2005/10/08 16:38:58 sbriesen Exp $
+
+ 08 Oct 2005; Stefan Briesenick <sbriesen@gentoo.org> files/ziproxy.confd,
+ files/ziproxy.initd, ziproxy-1.5.1.ebuild:
+ added RUNAS option in init-script.
*ziproxy-1.5.1 (07 Oct 2005)
-MD5 e7958d0ff5aed42d53e6a8e50881a50f ChangeLog 417
+MD5 3745dee1e7d55396f3f552fd293e356c ChangeLog 576
MD5 d99134343b6a3f08d5a80d3c0c54e6c1 files/digest-ziproxy-1.5.1 66
-MD5 363428d06cea3db7d7eebabdfd4688fa files/ziproxy.confd 301
-MD5 072dbc2fc7b4fe372d4d5103bee02af3 files/ziproxy.initd 694
+MD5 007b66959e3f4d9ec2759e2fbfba370a files/ziproxy.confd 384
+MD5 71e0da62940b75aeeddf33c1b056d72c files/ziproxy.initd 762
MD5 13eac033f7cb4d69bd27489ab828449a metadata.xml 513
-MD5 fc39d880b163ea68a5ca2811cb378140 ziproxy-1.5.1.ebuild 1618
+MD5 64627ef565dd039048382413c3b7a731 ziproxy-1.5.1.ebuild 1641
# if you want to set it.
#
#ONLYFROM="<IP.address or hostname>"
+
+# Change to this username/uid before starting the process.
+RUNAS="nobody:nogroup"
#!/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 $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/files/ziproxy.initd,v 1.2 2005/10/08 16:38:58 sbriesen Exp $
depend() {
need net
}
start() {
- local OPT
+ local OPT="" EXTRA=""
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 \
+ [ -n "${RUNAS}" ] && EXTRA="--chuid ${RUNAS}"
+ start-stop-daemon --quiet --start --background ${EXTRA} \
--make-pidfile --pidfile /var/run/ziproxy.pid \
--exec /usr/bin/netd -- ${OPT}
eend $?
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ziproxy/ziproxy-1.5.1.ebuild,v 1.2 2005/10/08 16:38:58 sbriesen Exp $
inherit eutils
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" \
}
src_compile() {
- local myconf="--enable-shared-confuse --with-cfgfile=/etc/ziproxy.conf"
+ 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"