summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-03-13 18:03:12 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-03-13 18:03:12 +0000
commitaa77621f35417896a33eb67561810879ebdc0da3 (patch)
treece279e8e1cf045be84ec6e02b26a2e2ebc178bae
parentstep2 (diff)
downloadlu_zero-aa77621f35417896a33eb67561810879ebdc0da3.tar.gz
lu_zero-aa77621f35417896a33eb67561810879ebdc0da3.tar.bz2
lu_zero-aa77621f35417896a33eb67561810879ebdc0da3.zip
feng should drop privs by itself...
svn path=/; revision=84
-rw-r--r--media-video/feng-svn/feng-svn-0.1.ebuild11
-rwxr-xr-xmedia-video/feng-svn/files/feng.rc3
2 files changed, 6 insertions, 8 deletions
diff --git a/media-video/feng-svn/feng-svn-0.1.ebuild b/media-video/feng-svn/feng-svn-0.1.ebuild
index a6b6522..6c4085d 100644
--- a/media-video/feng-svn/feng-svn-0.1.ebuild
+++ b/media-video/feng-svn/feng-svn-0.1.ebuild
@@ -19,10 +19,11 @@ RDEPEND="media-video/ffmpeg
>=dev-libs/glib-2"
DEPEND="virtual/ghostscript"
-pkg_setup() {
- enewgroup feng
- enewuser feng -1 -1 /var/feng feng
-}
+#later....
+#pkg_setup() {
+# enewgroup feng
+# enewuser feng -1 -1 /var/feng feng
+#}
pkg_config() {
einfo "Installing default avroot to ${ROOT}/var/feng/avroot"
@@ -43,7 +44,7 @@ pkg_postinst() {
einfo "Installing default avroot to ${ROOT}/var/feng/avroot"
mkdir -p "${ROOT}"/var/feng/avroot
cp -R "${ROOT}"/usr/share/doc/${PF}/avroot/* "${ROOT}"/var/feng/avroot
- chown -R feng:0 "${ROOT}"/var/feng/avroot
+# chown -R feng:0 "${ROOT}"/var/feng/avroot
fi
}
diff --git a/media-video/feng-svn/files/feng.rc b/media-video/feng-svn/files/feng.rc
index 575f019..deb8615 100755
--- a/media-video/feng-svn/files/feng.rc
+++ b/media-video/feng-svn/files/feng.rc
@@ -12,19 +12,16 @@ depend() {
start() {
ebegin "Starting feng"
- echo start-stop-daemon --start -b -m -p ${PIDFILE} -x ${FENG} -- ${FENG_OPTS}
start-stop-daemon --start --quiet --background \
--make-pidfile \
--pidfile ${PIDFILE} \
--exec /usr/bin/feng \
- --chuid feng:feng \
-- ${FENG_OPTS}
eend $?
}
stop() {
ebegin "Stopping feng"
- echo start-stop-daemon --stop -p ${PIDFILE}
start-stop-daemon --stop -p ${PIDFILE}
eend $?
}