Add rc-script
Submitted by Dawid Szymañski <dawszy@arhea.net> in private mail.
This commit is contained in:
parent
0e1ba53d09
commit
90c9f1c484
4 changed files with 34 additions and 2 deletions
5
net/pureftpd/MESSAGE
Normal file
5
net/pureftpd/MESSAGE
Normal file
|
@ -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
|
||||
===============================================================================
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
18
net/pureftpd/files/pure_ftpd
Normal file
18
net/pureftpd/files/pure_ftpd
Normal file
|
@ -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"
|
Loading…
Reference in a new issue