diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-09-22 23:24:06 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-09-22 23:24:06 +0000 |
commit | 3a24737d2b8cf94eac65f12a5f907d3a25da76f5 (patch) | |
tree | 183a753e25c897b106c8681b2ca5dc39248e182a /net-misc/siproxd/siproxd-0.5.11.ebuild | |
parent | stable on x86 (diff) | |
download | gentoo-2-3a24737d2b8cf94eac65f12a5f907d3a25da76f5.tar.gz gentoo-2-3a24737d2b8cf94eac65f12a5f907d3a25da76f5.tar.bz2 gentoo-2-3a24737d2b8cf94eac65f12a5f907d3a25da76f5.zip |
Added non-root changes (with little modifications) submitted by CJ Kucera in bug #97309.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/siproxd/siproxd-0.5.11.ebuild')
-rw-r--r-- | net-misc/siproxd/siproxd-0.5.11.ebuild | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/net-misc/siproxd/siproxd-0.5.11.ebuild b/net-misc/siproxd/siproxd-0.5.11.ebuild index dbf781135e03..3a8328fa3439 100644 --- a/net-misc/siproxd/siproxd-0.5.11.ebuild +++ b/net-misc/siproxd/siproxd-0.5.11.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-misc/siproxd/siproxd-0.5.11.ebuild,v 1.1 2005/05/07 15:36:23 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/siproxd-0.5.11.ebuild,v 1.2 2005/09/22 23:24:06 stkn Exp $ inherit eutils @@ -26,6 +26,9 @@ src_unpack() { # re-create configure (stolen from dhcpd :) einfo "Re-creating configure..." autoreconf -fi || die "autoreconf failed" + + # Make the daemon run as user 'siproxd' by default + sed -i -e "s:nobody:siproxd:" doc/siproxd.conf.example } src_compile() { @@ -47,4 +50,16 @@ src_install() { newexe ${FILESDIR}/siproxd.rc6 siproxd dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO RELNOTES + + # Set up siproxd directories + keepdir /var/lib/siproxd + keepdir /var/run/siproxd +} + +pkg_postinst() { + enewgroup siproxd + enewuser siproxd -1 -1 /dev/null siproxd + + fowners siproxd:siproxd /var/lib/siproxd + fowners siproxd:siproxd /var/run/siproxd } |