summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Alexandratos <jerry@gentoo.org>2001-07-21 07:57:32 +0000
committerJerry Alexandratos <jerry@gentoo.org>2001-07-21 07:57:32 +0000
commitde07c7205062064dbb54cd31c6dcf0f84551c991 (patch)
tree8f100be7f7c5d2dadfaa84689f760b336a2ef23a /net-ftp
parentFixed typo in link for /usr/bin/ncftp -> /usr/bin/ftp. (diff)
downloadgentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.tar.gz
gentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.tar.bz2
gentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.zip
Added init.d startup script. Modified ebuilds to install startup
script into /etc/rc.d/init.d.
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/proftpd/files/proftpd29
-rw-r--r--net-ftp/proftpd/proftpd-1.2.1.ebuild6
-rw-r--r--net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild6
3 files changed, 39 insertions, 2 deletions
diff --git a/net-ftp/proftpd/files/proftpd b/net-ftp/proftpd/files/proftpd
new file mode 100644
index 000000000000..fcbc7bfa441b
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd
@@ -0,0 +1,29 @@
+#!/bin/sh
+#RCUPDATE:2 3 4:78:This line is required for script management
+
+. /etc/rc.d/config/functions
+
+SERVICE=proftpd
+opts="start stop restart"
+
+PIDFILE=/var/run/proftpd.pid
+EXE=/usr/sbin/proftpd
+
+start() {
+ ebegin "Starting $SERVICE..."
+ start-stop-daemon --start --quiet --exec $EXE -- -d -p $PIDFILE
+ eend $? "Started $SERVICE." "Error Starting $SERVICE."
+}
+
+stop() {
+ ebegin "Stopping $SERVICE..."
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE
+ eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
+}
+
+restart() {
+ stop
+ start
+}
+
+doservice ${@}
diff --git a/net-ftp/proftpd/proftpd-1.2.1.ebuild b/net-ftp/proftpd/proftpd-1.2.1.ebuild
index e8ada6b3e7f1..26d263f4ac15 100644
--- a/net-ftp/proftpd/proftpd-1.2.1.ebuild
+++ b/net-ftp/proftpd/proftpd-1.2.1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.1.ebuild,v 1.3 2001/07/20 18:00:06 jerry Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.1.ebuild,v 1.4 2001/07/21 07:57:32 jerry Exp $
S=${WORKDIR}/${P}
DESCRIPTION="proftpd."
@@ -73,4 +73,8 @@ src_install() {
dodoc rfc/*.txt
cp ${FILESDIR}/proftpd.conf ${D}/etc/proftpd
+
+ insinto /etc/rc.d/init.d
+ insopts -m 0755
+ doins ${FILESDIR}/proftpd
}
diff --git a/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild b/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild
index 6cbbc8682db9..2e12f8c05f29 100644
--- a/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild
+++ b/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild,v 1.3 2001/07/20 18:00:06 jerry Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.2_rc3.ebuild,v 1.4 2001/07/21 07:57:32 jerry Exp $
P=${PN}-1.2.2rc3
S=${WORKDIR}/${P}
@@ -74,4 +74,8 @@ src_install() {
dodoc rfc/*.txt
cp ${FILESDIR}/proftpd.conf ${D}/etc/proftpd
+
+ insinto /etc/rc.d/init.d
+ insopts -m 0755
+ doins ${FILESDIR}/proftpd
}