Index: Makefile =================================================================== RCS file: /home/ncvs/ports/ftp/jftpgw/Makefile,v --- Makefile 4 Apr 2003 07:21:16 -0000 1.10 +++ Makefile 6 Jul 2004 15:25:45 -0000 @@ -2,11 +2,11 @@ # Date created: Sun Jul 15 13:19:01 CEST 2001 # Whom: se # -# $FreeBSD$ +# $FreeBSD: ports/ftp/jftpgw/Makefile,v 1.10 2003/04/04 07:21:16 se Exp $ # PORTNAME= jftpgw -PORTVERSION= 0.13.4 +PORTVERSION= 0.13.5 CATEGORIES= ftp MASTER_SITES= http://www.mcknight.de/jftpgw/ @@ -14,6 +14,7 @@ COMMENT= Highly configurable FTP proxy USE_BZIP2= yes +USE_RC_SUBR= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-logpath=/var/log \ --enable-crypt \ @@ -24,7 +25,8 @@ ${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' \ + @${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \ + -e 's:%%RC_SUBR%%:${RC_SUBR}:g' \ ${FILESDIR}/jftpgw.sh.in > ${WRKDIR}/jftpgw.sh ${INSTALL_SCRIPT} ${WRKDIR}/jftpgw.sh ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) Index: distinfo =================================================================== RCS file: /home/ncvs/ports/ftp/jftpgw/distinfo,v --- distinfo 4 Apr 2003 07:21:16 -0000 1.7 +++ distinfo 6 Jul 2004 15:25:45 -0000 @@ -1,2 +1,2 @@ -MD5 (jftpgw-0.13.4.tar.bz2) = 9f03bfc4dca5e488ab725911c297dccf -SIZE (jftpgw-0.13.4.tar.bz2) = 214236 +MD5 (jftpgw-0.13.5.tar.bz2) = 1053186ac3939dc4e709a8ba175c4fbc +SIZE (jftpgw-0.13.5.tar.bz2) = 240415 Index: files/jftpgw.sh.in =================================================================== RCS file: /home/ncvs/ports/ftp/jftpgw/files/jftpgw.sh.in,v --- files/jftpgw.sh.in 4 Apr 2003 07:20:12 -0000 1.4 +++ files/jftpgw.sh.in 6 Jul 2004 15:25:45 -0000 @@ -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 + +# +# Add the following lines to /etc/rc.conf to enable pure-ftpd: +# +# jftpgw_enable="YES" +# + +. %%RC_SUBR%% + +name=jftpgw +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/jftpgw +jftpgw_config=${jftpgw_config:-"%%PREFIX%%/etc/jftpgw.conf"} +required_files=${jftpgw_config} +pidfile=/var/run/jftpgw.pid -PIDFILE=/var/run/jftpgw.pid - -case "$1" in - -start) - if [ -x $PROGRAM ] && [ -r $CFGFILE ] - then - $PROGRAM - echo -n " jftpgw" - fi - ;; - -stop) - PID=`cat $PIDFILE 2>/dev/null` - ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $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"