summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-08-10 17:24:46 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-08-10 17:49:38 -0400
commitb96c98f2e00f4e8a0590858c5470c931f7ed1abd (patch)
treee5a30cb3905ed06421f30141ca588fda450710e7 /www-servers/monkeyd
parentwww-client/netsurf: fix 'src_install' failure, bug #552562 (diff)
downloadgentoo-b96c98f2e00f4e8a0590858c5470c931f7ed1abd.tar.gz
gentoo-b96c98f2e00f4e8a0590858c5470c931f7ed1abd.tar.bz2
gentoo-b96c98f2e00f4e8a0590858c5470c931f7ed1abd.zip
www-servers/monkeyd: fix init script for 1.6.0.
Package-Manager: portage-2.2.20
Diffstat (limited to 'www-servers/monkeyd')
-rw-r--r--www-servers/monkeyd/files/monkeyd.initd-r124
-rw-r--r--www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild (renamed from www-servers/monkeyd/monkeyd-1.6.0.ebuild)2
2 files changed, 25 insertions, 1 deletions
diff --git a/www-servers/monkeyd/files/monkeyd.initd-r1 b/www-servers/monkeyd/files/monkeyd.initd-r1
new file mode 100644
index 000000000000..d1fb73038baf
--- /dev/null
+++ b/www-servers/monkeyd/files/monkeyd.initd-r1
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DAEMON="/usr/sbin/monkey"
+CONFFILE="/etc/monkeyd/monkey.conf"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting monkeyd"
+ start-stop-daemon --start --exec "${DAEMON}" -- "-D" "${MONKEY_ARGS}" >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping monkeyd"
+ local PIDFILE=$(awk '/^ *PidFile/ { print $2 }' "${CONFFILE}")
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/www-servers/monkeyd/monkeyd-1.6.0.ebuild b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
index 73972b8165fa..4dc33775d480 100644
--- a/www-servers/monkeyd/monkeyd-1.6.0.ebuild
+++ b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
@@ -108,7 +108,7 @@ src_compile() {
src_install() {
default
- newinitd "${FILESDIR}"/monkeyd.initd monkeyd
+ newinitd "${FILESDIR}"/monkeyd.initd-r1 monkeyd
newconfd "${FILESDIR}"/monkeyd.confd monkeyd
#move htdocs to docdir, bug #429632