summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-09-06 11:35:24 +0000
committerDonny Davies <woodchip@gentoo.org>2001-09-06 11:35:24 +0000
commitac7d93ef018a5387c14d2ca278ed1439f15172f7 (patch)
tree101f8a9b040ab7d2c13cc99f2a7df3e01f0e628b /net-ftp/oftpd/files
parentThis package is now supprting rc5 and rc6. (diff)
downloadgentoo-2-ac7d93ef018a5387c14d2ca278ed1439f15172f7.tar.gz
gentoo-2-ac7d93ef018a5387c14d2ca278ed1439f15172f7.tar.bz2
gentoo-2-ac7d93ef018a5387c14d2ca278ed1439f15172f7.zip
This package now supports rc5 and rc6.
Man oh man Im glad I got to take a look at this program. Its totally cool. It offers a secure, anonomous only, read-only ftpd environment. It is such a breeze to configure, and seems pretty fast too. Hehehe next time I need to setup public, read-only FTP, this is the one I will be deploying. =). just thought some of the other devs might be interested.. Cha Cha!
Diffstat (limited to 'net-ftp/oftpd/files')
-rw-r--r--net-ftp/oftpd/files/digest-oftpd-0.3.6-r61
-rw-r--r--[-rwxr-xr-x]net-ftp/oftpd/files/oftpd.rc5 (renamed from net-ftp/oftpd/files/oftpd)2
-rw-r--r--net-ftp/oftpd/files/oftpd.rc625
3 files changed, 27 insertions, 1 deletions
diff --git a/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6 b/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6
new file mode 100644
index 000000000000..bd6726479cb9
--- /dev/null
+++ b/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6
@@ -0,0 +1 @@
+MD5 78b4139bb0108297b9814564db986852 oftpd-0.3.6.tar.gz
diff --git a/net-ftp/oftpd/files/oftpd b/net-ftp/oftpd/files/oftpd.rc5
index 1bc8d8d4a645..1612f482fff9 100755..100644
--- a/net-ftp/oftpd/files/oftpd
+++ b/net-ftp/oftpd/files/oftpd.rc5
@@ -12,7 +12,7 @@ EXE=/usr/sbin/oftpd
start() {
ebegin "Starting $SERVICE"
- start-stop-daemon --start --quiet --exec $EXE $FTPUSER $FTPROOT
+ start-stop-daemon --start --quiet --exec $EXE -- $FTPUSER $FTPROOT
eend $? "Started $SERVICE." "Error starting $SERVICE."
}
diff --git a/net-ftp/oftpd/files/oftpd.rc6 b/net-ftp/oftpd/files/oftpd.rc6
new file mode 100644
index 000000000000..907bfd27d5e3
--- /dev/null
+++ b/net-ftp/oftpd/files/oftpd.rc6
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z "$FTPUSER" ] || [ -z "$FTPROOT" ] ; then
+ eerror "You need to setup FTPUSER and FTPROOT in /etc/rc.conf"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting oftpd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/oftpd -- $FTPUSER $FTPROOT
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping oftpd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/oftpd
+ eend $?
+}