From 90c9f1c484f3f331993b5fece29b38f056e4aa99 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 8 May 2002 00:35:13 +0000 Subject: Add rc-script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Submitted by Dawid SzymaƱski in private mail. --- net/pureftpd/MESSAGE | 5 +++++ net/pureftpd/Makefile | 10 +++++++++- net/pureftpd/PLIST | 3 ++- net/pureftpd/files/pure_ftpd | 18 ++++++++++++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 net/pureftpd/MESSAGE create mode 100644 net/pureftpd/files/pure_ftpd (limited to 'net/pureftpd') 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" -- cgit v1.2.3