summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-08-13 20:48:28 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-08-13 21:03:08 -0400
commitd9dfe176869d8c1c3f0c9953a3162bb0c8ca69bb (patch)
tree076b378cbfe72414fde902215a31e851b0677f60 /www-servers
parentwww-servers/monkeyd: fix build on uClibc (diff)
downloadgentoo-d9dfe176869d8c1c3f0c9953a3162bb0c8ca69bb.tar.gz
gentoo-d9dfe176869d8c1c3f0c9953a3162bb0c8ca69bb.tar.bz2
gentoo-d9dfe176869d8c1c3f0c9953a3162bb0c8ca69bb.zip
www-servers/monkeyd: don't install into /run
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/monkeyd/files/monkeyd.initd-r12
-rw-r--r--www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild5
2 files changed, 6 insertions, 1 deletions
diff --git a/www-servers/monkeyd/files/monkeyd.initd-r1 b/www-servers/monkeyd/files/monkeyd.initd-r1
index d1fb73038baf..e3ca111eb907 100644
--- a/www-servers/monkeyd/files/monkeyd.initd-r1
+++ b/www-servers/monkeyd/files/monkeyd.initd-r1
@@ -12,6 +12,8 @@ depend() {
start() {
ebegin "Starting monkeyd"
+ local PIDFILE=$(awk '/^ *PidFile/ { print $2 }' "${CONFFILE}")
+ mkdir -p $(dirname ${PIDFILE})
start-stop-daemon --start --exec "${DAEMON}" -- "-D" "${MONKEY_ARGS}" >/dev/null
eend $?
}
diff --git a/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
index d07b3b808783..59f80a4f519e 100644
--- a/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
+++ b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
@@ -118,7 +118,7 @@ src_install() {
newinitd "${FILESDIR}"/monkeyd.initd-r1 monkeyd
newconfd "${FILESDIR}"/monkeyd.confd monkeyd
- #move htdocs to docdir, bug #429632
+ # Move htdocs to docdir, bug #429632
docompress -x /usr/share/doc/"${PF}"/htdocs.dist
mv "${D}"${WEBROOT}/htdocs \
"${D}"/usr/share/doc/"${PF}"/htdocs.dist
@@ -127,4 +127,7 @@ src_install() {
keepdir \
/var/log/monkeyd \
${WEBROOT}/htdocs
+
+ # This needs to be created at runtime
+ rm -rf "${D}"/run
}