summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Short <zul@gentoo.org>2003-12-22 13:22:20 +0000
committerChuck Short <zul@gentoo.org>2003-12-22 13:22:20 +0000
commite01d67c1af20dae81817871d82e7c43c12f89410 (patch)
treec076243cc18a63204dd74ffcfbcbf72c3a498b05 /net-misc/gofish/files
parentInitial version, closes #35125. (diff)
downloadgentoo-2-e01d67c1af20dae81817871d82e7c43c12f89410.tar.gz
gentoo-2-e01d67c1af20dae81817871d82e7c43c12f89410.tar.bz2
gentoo-2-e01d67c1af20dae81817871d82e7c43c12f89410.zip
Initial version, closes #35125.
Diffstat (limited to 'net-misc/gofish/files')
-rw-r--r--net-misc/gofish/files/digest-gofish-0.291
-rw-r--r--net-misc/gofish/files/gofish.confd27
-rw-r--r--net-misc/gofish/files/gofish.rc33
3 files changed, 61 insertions, 0 deletions
diff --git a/net-misc/gofish/files/digest-gofish-0.29 b/net-misc/gofish/files/digest-gofish-0.29
new file mode 100644
index 000000000000..ff998051cdf3
--- /dev/null
+++ b/net-misc/gofish/files/digest-gofish-0.29
@@ -0,0 +1 @@
+MD5 090010dff4dca4f9c3c6bcad61038665 gofish-0.29.tar.gz 122098
diff --git a/net-misc/gofish/files/gofish.confd b/net-misc/gofish/files/gofish.confd
new file mode 100644
index 000000000000..af244521a7e7
--- /dev/null
+++ b/net-misc/gofish/files/gofish.confd
@@ -0,0 +1,27 @@
+#
+# Config file for gofish Gentoo start-script.
+# Should be stored as: /etc/conf.d/gofish
+#
+
+# Application name
+GOFISH_APP=gofish
+
+# Path to gofish executable
+GOFISH_EXEC=/usr/sbin/gofish
+
+# The gofish config file
+GOFISH_CONF_FILE=/etc/gofish.conf
+
+# The start options
+GOFISH_START_OPTS="-d"
+
+# The stop options
+GOFISH_STOP_OPTS=""
+
+# The reload options
+GOFISH_RELOAD_OPTS=""
+
+# The pid file
+GOFISH_PIDFILE=/var/run/gofish.pid
+
+
diff --git a/net-misc/gofish/files/gofish.rc b/net-misc/gofish/files/gofish.rc
new file mode 100644
index 000000000000..aa49772f1379
--- /dev/null
+++ b/net-misc/gofish/files/gofish.rc
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+#
+# Startup script for the Gofish Gopher Server (for Gentoo Linux)
+#
+# config: /etc/conf.d/gofish
+##
+# use: rc-update add gofish default
+#
+
+opts="start stop"
+
+depend() {
+ need net
+}
+
+
+start() {
+ ebegin "Starting ${GOFISH_APP} "
+ start-stop-daemon --start --verbose --pidfile ${GOFISH_PIDFILE} \
+ --exec ${GOFISH_EXEC} -- ${GOFISH_START_OPTS}
+ eend $?
+}
+
+
+stop() {
+ ebegin "Stopping ${GOFISH_APP} "
+ start-stop-daemon --stop --quiet --pidfile ${GOFISH_PIDFILE} \
+ --exec ${GOFISH_EXEC} -- ${GOFISH_STOP_OPTS}
+ eend $?
+}
+
+
+