diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2005-06-05 23:39:04 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2005-06-05 23:39:04 +0000 |
commit | dd610395603f145ddcf825617f6320b901acf882 (patch) | |
tree | e2d1eb3ccfe4842c9f9381de1e206d57c0b0b6cc /ftp/jftpgw | |
parent | - Replace .error with BROKEN. (diff) |
- rcNG'ify the port.
PR: ports/68728
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by: maintainer timeout (almost 1 year)
Notes
Notes:
svn path=/head/; revision=136873
Diffstat (limited to 'ftp/jftpgw')
-rw-r--r-- | ftp/jftpgw/Makefile | 6 | ||||
-rw-r--r-- | ftp/jftpgw/files/jftpgw.sh.in | 39 | ||||
-rw-r--r-- | ftp/jftpgw/pkg-plist | 1 |
3 files changed, 23 insertions, 23 deletions
diff --git a/ftp/jftpgw/Makefile b/ftp/jftpgw/Makefile index aca3d42f4553..81936f7073b7 100644 --- a/ftp/jftpgw/Makefile +++ b/ftp/jftpgw/Makefile @@ -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 diff --git a/ftp/jftpgw/files/jftpgw.sh.in b/ftp/jftpgw/files/jftpgw.sh.in index c0e8ae90134d..b4ba07389a79 100644 --- a/ftp/jftpgw/files/jftpgw.sh.in +++ b/ftp/jftpgw/files/jftpgw.sh.in @@ -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" diff --git a/ftp/jftpgw/pkg-plist b/ftp/jftpgw/pkg-plist index f7c45c8eb1b6..59413f0a1459 100644 --- a/ftp/jftpgw/pkg-plist +++ b/ftp/jftpgw/pkg-plist @@ -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 |