1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- rcNG'ify the port.

PR:		ports/68728
Submitted by:	Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by:	maintainer timeout (almost 1 year)
This commit is contained in:
Florent Thoumie 2005-06-05 23:39:04 +00:00
parent a9fb6a5b22
commit dd61039560
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136873
3 changed files with 23 additions and 23 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= jftpgw
PORTVERSION= 0.13.5
PORTREVISION= 1
CATEGORIES= ftp
MASTER_SITES= http://www.mcknight.de/jftpgw/
@ -20,13 +21,12 @@ CONFIGURE_ARGS= --with-logpath=/var/log \
--enable-sftp
MAN1= jftpgw.1
USE_RC_SUBR= jftpgw.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/jftpgw ${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/jftpgw.conf.sample ${PREFIX}/etc/
${INSTALL_MAN} ${WRKSRC}/jftpgw.1 ${PREFIX}/man/man1/
@${SED} -e 's:@PREFIX@:${PREFIX}:g' \
${FILESDIR}/jftpgw.sh.in > ${WRKDIR}/jftpgw.sh
${INSTALL_SCRIPT} ${WRKDIR}/jftpgw.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/jftpgw
${INSTALL_DATA} ${WRKSRC}/doc/config.html ${PREFIX}/share/doc/jftpgw

View File

@ -1,27 +1,28 @@
#!/bin/sh
PROGRAM=@PREFIX@/sbin/jftpgw
CFGFILE=@PREFIX@/etc/jftpgw.conf
# PROVIDE jftpgw
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown
PIDFILE=/var/run/jftpgw.pid
#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# jftpgw_enable="YES"
#
case "$1" in
. %%RC_SUBR%%
start)
if [ -x $PROGRAM ] && [ -r $CFGFILE ]
then
$PROGRAM
echo -n " jftpgw"
fi
;;
name=jftpgw
rcvar=`set_rcvar`
stop)
PID=`cat $PIDFILE 2>/dev/null`
ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $PID
;;
command=%%PREFIX%%/sbin/jftpgw
jftpgw_config=${jftpgw_config:-"%%PREFIX%%/etc/jftpgw.conf"}
required_files=${jftpgw_config}
pidfile=/var/run/jftpgw.pid
*)
echo "usage: $0 start|stop"
;;
esac
jftpgw_enable=${jftpgw_enable:-"NO"}
command_args="-f ${jftpgw_config}"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,5 +1,4 @@
sbin/jftpgw
etc/jftpgw.conf.sample
etc/rc.d/jftpgw.sh
%%PORTDOCS%%share/doc/jftpgw/config.html
%%PORTDOCS%%@dirrm share/doc/jftpgw