summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-07-02 23:15:07 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-07-02 23:15:07 +0000
commit007b0b2c8084af1efef9e80dfff379be3d17502a (patch)
treeafcbdf7f2ecaf5a567be217a2f4ef34bbf71f252 /net-ftp/oftpd/files
parentStable on alpha. (diff)
downloadgentoo-2-007b0b2c8084af1efef9e80dfff379be3d17502a.tar.gz
gentoo-2-007b0b2c8084af1efef9e80dfff379be3d17502a.tar.bz2
gentoo-2-007b0b2c8084af1efef9e80dfff379be3d17502a.zip
Added support to change tcp port to the init script. Closes bug #97183.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-ftp/oftpd/files')
-rw-r--r--net-ftp/oftpd/files/conf.d.oftpd-r117
-rw-r--r--net-ftp/oftpd/files/digest-oftpd-0.3.7-r21
-rw-r--r--net-ftp/oftpd/files/init.d.oftpd4
-rw-r--r--net-ftp/oftpd/files/init.d.oftpd-r129
4 files changed, 49 insertions, 2 deletions
diff --git a/net-ftp/oftpd/files/conf.d.oftpd-r1 b/net-ftp/oftpd/files/conf.d.oftpd-r1
new file mode 100644
index 000000000000..67c40c897b6f
--- /dev/null
+++ b/net-ftp/oftpd/files/conf.d.oftpd-r1
@@ -0,0 +1,17 @@
+# Please read the oftd(8) man page for a more detailed explaination of these
+# variables.
+#
+# FTPUSER (user-name in the man page):
+# Set this variable to the user to run the ftp daemon as
+FTPUSER=ftp
+
+# FTPROOT (root-directory in the man page):
+# The server uses chroot(2) to change the root directory of the server to this
+# directory. When a user connects, this is the directory that they will start
+# in, and is the top of their directory tree.
+#
+FTPROOT=/home/ftp
+
+# FTPPORT (TCP port)
+# 22 is the standard ftp port, but you can change it here to something else
+FTPPORT=22
diff --git a/net-ftp/oftpd/files/digest-oftpd-0.3.7-r2 b/net-ftp/oftpd/files/digest-oftpd-0.3.7-r2
new file mode 100644
index 000000000000..b99ac815fee3
--- /dev/null
+++ b/net-ftp/oftpd/files/digest-oftpd-0.3.7-r2
@@ -0,0 +1 @@
+MD5 1a396ad12584c7efe3a0e712dadf28be oftpd-0.3.7.tar.gz 97364
diff --git a/net-ftp/oftpd/files/init.d.oftpd b/net-ftp/oftpd/files/init.d.oftpd
index e655478b1bdf..c398abfa9b71 100644
--- a/net-ftp/oftpd/files/init.d.oftpd
+++ b/net-ftp/oftpd/files/init.d.oftpd
@@ -1,10 +1,10 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/oftpd/files/init.d.oftpd,v 1.3 2004/10/05 22:24:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/oftpd/files/init.d.oftpd,v 1.4 2005/07/02 23:15:07 eradicator Exp $
depend() {
- use net
+ need net
}
checkconfig() {
diff --git a/net-ftp/oftpd/files/init.d.oftpd-r1 b/net-ftp/oftpd/files/init.d.oftpd-r1
new file mode 100644
index 000000000000..057b1146cadf
--- /dev/null
+++ b/net-ftp/oftpd/files/init.d.oftpd-r1
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/oftpd/files/init.d.oftpd-r1,v 1.1 2005/07/02 23:15:07 eradicator Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [[ -z ${FTPUSER} || -z ${FTPROOT} || -z ${FTPPORT} ] ; then
+ eerror "You need to setup FTPUSER and FTPROOT in /etc/conf.d/oftpd"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting oftpd"
+ start-stop-daemon --start --exec /usr/sbin/oftpd -- -p ${FTPPORT} ${FTPUSER} ${FTPROOT}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping oftpd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/oftpd
+ eend $?
+}