summaryrefslogtreecommitdiff
path: root/net/pureftpd
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-05-08 00:35:13 +0000
committerhubertf <hubertf@pkgsrc.org>2002-05-08 00:35:13 +0000
commit90c9f1c484f3f331993b5fece29b38f056e4aa99 (patch)
tree74cf113deadef8ae9d752d5e622a1f582c4ff770 /net/pureftpd
parent0e1ba53d095603ff9be78e0fb37af131b239fd81 (diff)
downloadpkgsrc-90c9f1c484f3f331993b5fece29b38f056e4aa99.tar.gz
Add rc-script
Submitted by Dawid SzymaƱski <dawszy@arhea.net> in private mail.
Diffstat (limited to 'net/pureftpd')
-rw-r--r--net/pureftpd/MESSAGE5
-rw-r--r--net/pureftpd/Makefile10
-rw-r--r--net/pureftpd/PLIST3
-rw-r--r--net/pureftpd/files/pure_ftpd18
4 files changed, 34 insertions, 2 deletions
diff --git a/net/pureftpd/MESSAGE b/net/pureftpd/MESSAGE
new file mode 100644
index 00000000000..5d7cf0f9c9c
--- /dev/null
+++ b/net/pureftpd/MESSAGE
@@ -0,0 +1,5 @@
+===============================================================================
+You may wish to:
+ cp ${PREFIX}/etc/rc.d/pure_ftpd /etc/rc.d/pure_ftpd
+ echo "pure_ftpd=YES" >> /etc/rc.conf
+===============================================================================
diff --git a/net/pureftpd/Makefile b/net/pureftpd/Makefile
index 6fb443bda57..b31df045701 100644
--- a/net/pureftpd/Makefile
+++ b/net/pureftpd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2002/05/07 23:12:05 hubertf Exp $
+# $NetBSD: Makefile,v 1.5 2002/05/08 00:35:14 hubertf Exp $
#
DISTNAME= pure-ftpd-1.0.11
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://belnet.dl.sourceforge.net/sourceforge/pureftpd/ \
${MASTER_SITE_SOURCEFORGE:=pureftpd/}
@@ -25,4 +26,11 @@ LDFLAGS+= -L${LOCALBASE}/lib/mysql -Wl,-R${LOCALBASE}/lib/mysql
BUILD_DEFS+= PURE_FTPD_USE_MYSQL
.endif
+post-build:
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/pure_ftpd > ${WRKDIR}/pure_ftpd
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/pure_ftpd ${PREFIX}/etc/rc.d/pure_ftpd
+
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/pureftpd/PLIST b/net/pureftpd/PLIST
index de6db0aa8b7..7fa27b50379 100644
--- a/net/pureftpd/PLIST
+++ b/net/pureftpd/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/02 23:22:54 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/05/08 00:35:14 hubertf Exp $
bin/pure-pw
bin/pure-pwconvert
bin/pure-statsdecode
+etc/rc.d/pure_ftpd
man/man8/pure-authd.8
man/man8/pure-ftpd.8
man/man8/pure-ftpwho.8
diff --git a/net/pureftpd/files/pure_ftpd b/net/pureftpd/files/pure_ftpd
new file mode 100644
index 00000000000..8bef92a33cd
--- /dev/null
+++ b/net/pureftpd/files/pure_ftpd
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: pure_ftpd,v 1.1 2002/05/08 00:35:14 hubertf Exp $
+#
+# PROVIDE: pure-ftpd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="pure_ftpd"
+help_name="pure-ftpd"
+rcvar=$rcname
+command="@PREFIX@/sbin/${help_name}"
+command_args="-B"
+pidfile="/var/run/${help_name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"