www-servers/monkeyd: fix init script for 1.6.0.
authorAnthony G. Basile <blueness@gentoo.org>
Mon, 10 Aug 2015 21:24:46 +0000 (17:24 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Mon, 10 Aug 2015 21:49:38 +0000 (17:49 -0400)
Package-Manager: portage-2.2.20

www-servers/monkeyd/files/monkeyd.initd-r1 [new file with mode: 0644]
www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild [moved from www-servers/monkeyd/monkeyd-1.6.0.ebuild with 98% similarity]

diff --git a/www-servers/monkeyd/files/monkeyd.initd-r1 b/www-servers/monkeyd/files/monkeyd.initd-r1
new file mode 100644 (file)
index 0000000..d1fb730
--- /dev/null
@@ -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 $?
+}
similarity index 98%
rename from www-servers/monkeyd/monkeyd-1.6.0.ebuild
rename to www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild
index 73972b8165fa2c706962e91a0c47dfbf53da49ab..4dc33775d4805f31f2e1d783aa9f45968d3cb871 100644 (file)
@@ -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