diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2005-10-08 16:38:58 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2005-10-08 16:38:58 +0000 |
commit | e89230ea5cb808d87033942c6c56a94b12ea4ab6 (patch) | |
tree | 9e7905bc2b470c627ee629fb02cce23d84353986 /net-proxy/ziproxy | |
parent | adding ~ppc (diff) | |
download | gentoo-2-e89230ea5cb808d87033942c6c56a94b12ea4ab6.tar.gz gentoo-2-e89230ea5cb808d87033942c6c56a94b12ea4ab6.tar.bz2 gentoo-2-e89230ea5cb808d87033942c6c56a94b12ea4ab6.zip |
added RUNAS option in init-script.
(Portage version: 2.0.53_rc3)
Diffstat (limited to 'net-proxy/ziproxy')
-rw-r--r-- | net-proxy/ziproxy/ChangeLog | 6 | ||||
-rw-r--r-- | net-proxy/ziproxy/Manifest | 6 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy.confd | 3 | ||||
-rw-r--r-- | net-proxy/ziproxy/files/ziproxy.initd | 7 | ||||
-rw-r--r-- | net-proxy/ziproxy/ziproxy-1.5.1.ebuild | 6 |
5 files changed, 19 insertions, 9 deletions
diff --git a/net-proxy/ziproxy/ChangeLog b/net-proxy/ziproxy/ChangeLog index c61eb8338300..b565687ad13f 100644 --- a/net-proxy/ziproxy/ChangeLog +++ b/net-proxy/ziproxy/ChangeLog @@ -1,6 +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 $ +# $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) diff --git a/net-proxy/ziproxy/Manifest b/net-proxy/ziproxy/Manifest index 7eb8d5f1d9aa..41e5c7d101ec 100644 --- a/net-proxy/ziproxy/Manifest +++ b/net-proxy/ziproxy/Manifest @@ -1,6 +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 007b66959e3f4d9ec2759e2fbfba370a files/ziproxy.confd 384 +MD5 2c2396da8082f35e2df9284e3f8c1bd0 files/ziproxy.initd 762 MD5 13eac033f7cb4d69bd27489ab828449a metadata.xml 513 -MD5 fc39d880b163ea68a5ca2811cb378140 ziproxy-1.5.1.ebuild 1618 +MD5 0b1682eb49818a737c2bdbfdc7acae54 ziproxy-1.5.1.ebuild 1641 diff --git a/net-proxy/ziproxy/files/ziproxy.confd b/net-proxy/ziproxy/files/ziproxy.confd index e8b4f30f883c..e110cc0d1709 100644 --- a/net-proxy/ziproxy/files/ziproxy.confd +++ b/net-proxy/ziproxy/files/ziproxy.confd @@ -9,3 +9,6 @@ # if you want to set it. # #ONLYFROM="<IP.address or hostname>" + +# Change to this username/uid before starting the process. +RUNAS="nobody:nogroup" diff --git a/net-proxy/ziproxy/files/ziproxy.initd b/net-proxy/ziproxy/files/ziproxy.initd index 72abbe9178eb..8b7b2a4a959a 100644 --- a/net-proxy/ziproxy/files/ziproxy.initd +++ b/net-proxy/ziproxy/files/ziproxy.initd @@ -1,18 +1,19 @@ #!/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 $? diff --git a/net-proxy/ziproxy/ziproxy-1.5.1.ebuild b/net-proxy/ziproxy/ziproxy-1.5.1.ebuild index 5e8ae2f1a380..128252ac4db4 100644 --- a/net-proxy/ziproxy/ziproxy-1.5.1.ebuild +++ b/net-proxy/ziproxy/ziproxy-1.5.1.ebuild @@ -1,6 +1,6 @@ # 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 @@ -22,10 +22,12 @@ DEPEND="dev-libs/confuse 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" \ @@ -33,7 +35,7 @@ src_unpack() { } 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" |