View | Details | Raw Unified | Return to bug 68728
Collapse All | Expand All

(-)Makefile (-3 / +5 lines)
Lines 2-12 Link Here
2
# Date created:         Sun Jul 15 13:19:01 CEST 2001
2
# Date created:         Sun Jul 15 13:19:01 CEST 2001
3
# Whom:                 se
3
# Whom:                 se
4
#
4
#
5
# $FreeBSD$
5
# $FreeBSD: ports/ftp/jftpgw/Makefile,v 1.10 2003/04/04 07:21:16 se Exp $
6
#
6
#
7
7
8
PORTNAME=	jftpgw
8
PORTNAME=	jftpgw
9
PORTVERSION=	0.13.4
9
PORTVERSION=	0.13.5
10
CATEGORIES=	ftp
10
CATEGORIES=	ftp
11
MASTER_SITES=	http://www.mcknight.de/jftpgw/
11
MASTER_SITES=	http://www.mcknight.de/jftpgw/
12
12
Lines 14-19 Link Here
14
COMMENT=	Highly configurable FTP proxy
14
COMMENT=	Highly configurable FTP proxy
15
15
16
USE_BZIP2=	yes
16
USE_BZIP2=	yes
17
USE_RC_SUBR=	yes
17
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
18
CONFIGURE_ARGS=	--with-logpath=/var/log \
19
CONFIGURE_ARGS=	--with-logpath=/var/log \
19
		--enable-crypt \
20
		--enable-crypt \
Lines 24-30 Link Here
24
		${INSTALL_PROGRAM} ${WRKSRC}/jftpgw ${PREFIX}/sbin/
25
		${INSTALL_PROGRAM} ${WRKSRC}/jftpgw ${PREFIX}/sbin/
25
		${INSTALL_DATA} ${WRKSRC}/jftpgw.conf.sample ${PREFIX}/etc/
26
		${INSTALL_DATA} ${WRKSRC}/jftpgw.conf.sample ${PREFIX}/etc/
26
		${INSTALL_MAN} ${WRKSRC}/jftpgw.1 ${PREFIX}/man/man1/
27
		${INSTALL_MAN} ${WRKSRC}/jftpgw.1 ${PREFIX}/man/man1/
27
		@${SED} -e 's:@PREFIX@:${PREFIX}:g' \
28
		@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
29
			-e 's:%%RC_SUBR%%:${RC_SUBR}:g' \
28
			${FILESDIR}/jftpgw.sh.in > ${WRKDIR}/jftpgw.sh
30
			${FILESDIR}/jftpgw.sh.in > ${WRKDIR}/jftpgw.sh
29
		${INSTALL_SCRIPT} ${WRKDIR}/jftpgw.sh ${PREFIX}/etc/rc.d
31
		${INSTALL_SCRIPT} ${WRKDIR}/jftpgw.sh ${PREFIX}/etc/rc.d
30
.if !defined(NOPORTDOCS)
32
.if !defined(NOPORTDOCS)
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (jftpgw-0.13.4.tar.bz2) = 9f03bfc4dca5e488ab725911c297dccf
1
MD5 (jftpgw-0.13.5.tar.bz2) = 1053186ac3939dc4e709a8ba175c4fbc
2
SIZE (jftpgw-0.13.4.tar.bz2) = 214236
2
SIZE (jftpgw-0.13.5.tar.bz2) = 240415
(-)files/jftpgw.sh.in (-23 / +24 lines)
Lines 1-27 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
PROGRAM=@PREFIX@/sbin/jftpgw
3
# PROVIDE jftpgw
4
CFGFILE=@PREFIX@/etc/jftpgw.conf
4
# REQUIRE: NETWORKING SERVERS
5
# BEFORE: DAEMON
6
# KEYWORD: FreeBSD shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
10
#
11
# jftpgw_enable="YES"
12
#
13
14
. %%RC_SUBR%%
15
16
name=jftpgw
17
rcvar=`set_rcvar`
18
19
command=%%PREFIX%%/sbin/jftpgw
20
jftpgw_config=${jftpgw_config:-"%%PREFIX%%/etc/jftpgw.conf"}
21
required_files=${jftpgw_config}
22
pidfile=/var/run/jftpgw.pid
5
23
6
PIDFILE=/var/run/jftpgw.pid
24
jftpgw_enable=${jftpgw_enable:-"NO"}
7
25
command_args="-f ${jftpgw_config}"
8
case "$1" in
9
10
start)
11
	if [ -x $PROGRAM ] && [ -r $CFGFILE ]
12
	then
13
		$PROGRAM
14
		echo -n " jftpgw"
15
	fi
16
	;;
17
18
stop)
19
	PID=`cat $PIDFILE 2>/dev/null`
20
	ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $PID
21
	;;
22
23
*)
24
	echo "usage: $0 start|stop"
25
	;;
26
esac
27
26
27
load_rc_config $name
28
run_rc_command "$1"

Return to bug 68728