summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Portnoy <avenj@gentoo.org>2003-10-17 20:42:13 +0000
committerJon Portnoy <avenj@gentoo.org>2003-10-17 20:42:13 +0000
commit362ede2e730541eb4275a6b6a655a05c99afb488 (patch)
treec014dcdaaffa188ee208bebbb30149a67612e8f7 /net-misc/portfwd/files
parentInitial import. (diff)
downloadgentoo-2-362ede2e730541eb4275a6b6a655a05c99afb488.tar.gz
gentoo-2-362ede2e730541eb4275a6b6a655a05c99afb488.tar.bz2
gentoo-2-362ede2e730541eb4275a6b6a655a05c99afb488.zip
Initial import.
Diffstat (limited to 'net-misc/portfwd/files')
-rw-r--r--net-misc/portfwd/files/digest-portfwd-0.26_rc61
-rw-r--r--net-misc/portfwd/files/portfwd.init28
2 files changed, 29 insertions, 0 deletions
diff --git a/net-misc/portfwd/files/digest-portfwd-0.26_rc6 b/net-misc/portfwd/files/digest-portfwd-0.26_rc6
new file mode 100644
index 000000000000..c7fcf062a2fa
--- /dev/null
+++ b/net-misc/portfwd/files/digest-portfwd-0.26_rc6
@@ -0,0 +1 @@
+MD5 9706c8c4c4551c079f3e76abf985b64d portfwd-0.26rc6.tar.gz 135300
diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init
new file mode 100644
index 000000000000..14bfe71d4ff1
--- /dev/null
+++ b/net-misc/portfwd/files/portfwd.init
@@ -0,0 +1,28 @@
+# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/files/portfwd.init,v 1.1 2003/10/17 20:42:05 avenj Exp $
+
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/portfwd.cnf ] ; then
+ eerror "You need an /etc/portfwd.cnf file first"
+ eerror "There are samples in the documentation directory"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting portfwd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/portfwd -- -t -f
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping portfwd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/portfwd.pid
+ eend $?
+}