diff options
author | flz <flz@FreeBSD.org> | 2005-06-06 07:39:04 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-06-06 07:39:04 +0800 |
commit | e9d66dd6a60518b0fdbaeb0384e632b837a72b1f (patch) | |
tree | 4275ee0a0b75249b682e9fcc86eee5c736d15431 | |
parent | 183cbcbaf19c866945107f9767dc77e1be86e8e7 (diff) | |
download | freebsd-ports-gnome-e9d66dd6a60518b0fdbaeb0384e632b837a72b1f.tar.gz freebsd-ports-gnome-e9d66dd6a60518b0fdbaeb0384e632b837a72b1f.tar.zst freebsd-ports-gnome-e9d66dd6a60518b0fdbaeb0384e632b837a72b1f.zip |
- rcNG'ify the port.
PR: ports/68728
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by: maintainer timeout (almost 1 year)
-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 |