ports/68728: update ftp/jftpgw to 0.13.5 + rcNG'ify
Joerg Pulz
Joerg.Pulz at frm2.tum.de
Tue Jul 6 15:40:27 UTC 2004
>Number: 68728
>Category: ports
>Synopsis: update ftp/jftpgw to 0.13.5 + rcNG'ify
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 06 15:40:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Joerg Pulz
>Release: FreeBSD 5.2.1-RELEASE-p8 i386
>Organization:
TU-Munich / ZWE FRM-II
>Environment:
System: FreeBSD hades.admin.frm2 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #3: Fri Jun 11 08:51:32 CEST 2004 root at hades.admin.frm2:/usr/obj/usr/src/sys/HADES i386
>Description:
- update to jftpgw-0.13.5
- utilize rcNG
i'm not sure but it's possible, that this update fixes
PR: ports/65326.
for a complete ChangeLog see: http://www.mcknight.de/jftpgw/ChangeLog
>How-To-Repeat:
>Fix:
--- jftpgw.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/ftp/jftpgw/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- 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
retrieving revision 1.7
diff -u -r1.7 distinfo
--- 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
retrieving revision 1.4
diff -u -r1.4 jftpgw.sh.in
--- 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"
--- jftpgw.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list