summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-01-24 14:05:34 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-01-24 14:05:34 +0000
commitef7e75077fa17f64df8e51db767f1a3bec821658 (patch)
tree4cd39e929005789e5f6b1b6a6b58da324ec5ac03 /net-ftp/frox/files
parentnet-ftp/frox:clamav (diff)
downloadhistorical-ef7e75077fa17f64df8e51db767f1a3bec821658.tar.gz
historical-ef7e75077fa17f64df8e51db767f1a3bec821658.tar.bz2
historical-ef7e75077fa17f64df8e51db767f1a3bec821658.zip
Initial import as per bug #50674
Package-Manager: portage-2.0.51-r14
Diffstat (limited to 'net-ftp/frox/files')
-rw-r--r--net-ftp/frox/files/digest-frox-0.7.171
-rw-r--r--net-ftp/frox/files/frox.rc46
2 files changed, 47 insertions, 0 deletions
diff --git a/net-ftp/frox/files/digest-frox-0.7.17 b/net-ftp/frox/files/digest-frox-0.7.17
new file mode 100644
index 000000000000..48ad81e441eb
--- /dev/null
+++ b/net-ftp/frox/files/digest-frox-0.7.17
@@ -0,0 +1 @@
+MD5 52cd220295c09577753f5261b18f0b16 frox-0.7.17.tar.bz2 171836
diff --git a/net-ftp/frox/files/frox.rc b/net-ftp/frox/files/frox.rc
new file mode 100644
index 000000000000..949d0e58a251
--- /dev/null
+++ b/net-ftp/frox/files/frox.rc
@@ -0,0 +1,46 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/frox/files/frox.rc,v 1.1 2005/01/24 14:05:34 dragonheart Exp $
+
+PROGNAME=`basename $1`
+
+opts="depend start stop reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -f /etc/frox.config ] ; then
+ eerror "missing /etc/frox.config"
+ return 1
+ fi
+
+}
+
+start() {
+ checkconfig || return 1
+ FROX_OPTS=" -f /etc/frox.conf"
+
+ ebegin "Starting ${PROGNAME}..."
+ start-stop-daemon --start --quiet --exec /usr/sbin/${PROGNAME} -- ${OPTIONS} ${FROX_OPTS} &> /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stop ${PROGNAME}..."
+ start-stop-daemon --stop --quiet --exec /usr/sbin/${PROGNAME} &> /dev/null
+ eend $?
+}
+
+reload() {
+ if [ ! -f /var/run/frox/frox.pid ]; then
+ eerror "frox isn't running"
+ return 1
+ fi
+ ebegin "Reloading configuration"
+ kill -HUP `cat /var/run/frox/frox.pid` &>/dev/null
+ eend $?
+}
+