summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2008-07-31 18:08:55 +0000
committerJeremy Olexa <darkside@gentoo.org>2008-07-31 18:08:55 +0000
commiteb8dc27fef49cd4707a17180baf82481d0fcaaff (patch)
treea6905393c4917863fbd4658ae30a7fb144649af7 /net-misc/wicd/files
parentInitial version. (diff)
downloadhistorical-eb8dc27fef49cd4707a17180baf82481d0fcaaff.tar.gz
historical-eb8dc27fef49cd4707a17180baf82481d0fcaaff.tar.bz2
historical-eb8dc27fef49cd4707a17180baf82481d0fcaaff.zip
Initial commit of net-misc/wicd, originally in the sunrise overlay
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.22-gentoo-r2 i686
Diffstat (limited to 'net-misc/wicd/files')
-rw-r--r--net-misc/wicd/files/wicd-1.4.2-init.d23
-rw-r--r--net-misc/wicd/files/wicd-1.5.0_rc5-init.d24
2 files changed, 47 insertions, 0 deletions
diff --git a/net-misc/wicd/files/wicd-1.4.2-init.d b/net-misc/wicd/files/wicd-1.4.2-init.d
new file mode 100644
index 000000000000..9c056045cb67
--- /dev/null
+++ b/net-misc/wicd/files/wicd-1.4.2-init.d
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opts="start stop restart"
+
+WICD_DAEMON="/opt/wicd/daemon.py"
+
+depend() {
+ need dbus
+}
+
+start() {
+ ebegin "Starting wicd daemon"
+ start-stop-daemon --start --exec $WICD_DAEMON &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wicd daemon"
+ start-stop-daemon --stop --exec $WICD_DAEMON &>/dev/null
+ eend $?
+}
diff --git a/net-misc/wicd/files/wicd-1.5.0_rc5-init.d b/net-misc/wicd/files/wicd-1.5.0_rc5-init.d
new file mode 100644
index 000000000000..f4083beeb8db
--- /dev/null
+++ b/net-misc/wicd/files/wicd-1.5.0_rc5-init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opts="start stop restart"
+
+WICD_DAEMON=/usr/sbin/wicd
+WICD_PIDFILE=/var/run/wicd/wicd.pid
+
+depend() {
+ need dbus
+}
+
+start() {
+ ebegin "Starting wicd daemon"
+ $WICD_DAEMON &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping wicd daemon"
+ start-stop-daemon --stop --pidfile "$WICD_PIDFILE"
+ eend $?
+}