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

(-)frox/Makefile (-10 / +19 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	frox
8
PORTNAME=	frox
9
PORTVERSION=	0.7.4
9
PORTVERSION=	0.7.7
10
CATEGORIES=	ftp
10
CATEGORIES=	ftp
11
MASTER_SITES= 	http://www.hollo.org/frox/download/ \
11
MASTER_SITES= 	http://www.hollo.org/frox/download/ \
12
		http://frox.sourceforge.net/download/ \
12
		http://frox.sourceforge.net/download/ \
Lines 29-41 Link Here
29
29
30
CONFIGURE_ARGS= --enable-configfile=${PREFIX}/etc/frox.conf
30
CONFIGURE_ARGS= --enable-configfile=${PREFIX}/etc/frox.conf
31
31
32
.if defined(WITH_HTTP_CACHE)
33
CONFIGURE_ARGS+= --enable-http-cache
34
.endif
35
.if defined(WITH_IPFILTER)
32
.if defined(WITH_IPFILTER)
36
CONFIGURE_ARGS+= --enable-ipfilter
33
CONFIGURE_ARGS+= --enable-ipfilter
37
.endif
34
.endif
38
.if defined(WITH_CCP)
35
.if defined(WITH_VIRUS_SCAN)
36
CONFIGURE_ARGS+= --enable-virus-scan
37
.endif
38
.if !defined(WITHOUT_HTTP_CACHE)
39
CONFIGURE_ARGS+= --enable-http-cache
40
.endif
41
.if !defined(WITHOUT_LOCAL_CACHE)
42
CONFIGURE_ARGS+= --enable-local-cache
43
.endif
44
.if !defined(WITHOUT_CCP)
39
CONFIGURE_ARGS+= --enable-ccp
45
CONFIGURE_ARGS+= --enable-ccp
40
.endif
46
.endif
41
.if defined(RUN_AS_ROOT)
47
.if defined(RUN_AS_ROOT)
Lines 46-56 Link Here
46
	@${ECHO} ""
52
	@${ECHO} ""
47
	@${ECHO} "You can use the following build options:"
53
	@${ECHO} "You can use the following build options:"
48
	@${ECHO} ""
54
	@${ECHO} ""
49
	@${ECHO} "	WITH_HTTP_CACHE=yes	enable http-cache (like squid) using;"
55
	@${ECHO} "	WITH_IPFILTER=yes	use ipfilter instead of ipfw;"
50
	@${ECHO} "	WITH_IPFILTER=yes	force use ipfilter instead of ipfw;"
56
	@${ECHO} "	WITH_VIRUS_SCAN=yes	enable to run external virus scaner on each"
51
	@${ECHO} "	WITH_CCP=yes		enable ftp-proxy style command control programs;"
57
	@${ECHO} "				download (experimental);"
52
	@${ECHO} "	RUN_AS_ROOT=yes		allow frox running as root (not recomended)"
58
	@${ECHO} "	WITHOUT_HTTP_CACHE=yes	disable use of external cache;"
53
	@${ECHO} "				for using port number <1024."
59
	@${ECHO} "	WITHOUT_LOCAL_CACHE=yes	disable use of local cache;"
60
	@${ECHO} "	WITHOUT_CCP=yes		disable ftp-proxy style command control programs;"
61
	@${ECHO} "	RUN_AS_ROOT=yes		allow frox running as root for using"
62
	@${ECHO} "				port number <1024 (not recomended)."
54
	@${ECHO} ""
63
	@${ECHO} ""
55
64
56
pre-patch:
65
pre-patch:
(-)frox/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (frox-0.7.4.tar.bz2) = b7f1665635aaf5bc72b82809ee7c4f98
1
MD5 (frox-0.7.7.tar.bz2) = 177f241ad8e5541a87a7a7834d522d8a
(-)frox/files/frox.sh (-2 / +2 lines)
Lines 8-19 Link Here
8
case "$1" in
8
case "$1" in
9
start)
9
start)
10
	[ -x ${PREFIX}/sbin/frox -a -f ${PREFIX}/etc/frox.conf ]
10
	[ -x ${PREFIX}/sbin/frox -a -f ${PREFIX}/etc/frox.conf ]
11
	        grep -q '^ *# *FromInetd *yes' ${PREFIX}/etc/frox.conf && \
11
	        ! grep -iq '^[[:space:]]*frominetd[[:space:]]*yes' ${PREFIX}/etc/frox.conf && \
12
		${PREFIX}/sbin/frox && \
12
		${PREFIX}/sbin/frox && \
13
		echo -n ' frox'
13
		echo -n ' frox'
14
	;;
14
	;;
15
stop)
15
stop)
16
	kill `cat /var/run/frox.pid` && echo -n ' frox'
16
	[ -f /var/run/frox.pid ] && kill `cat /var/run/frox.pid` && echo -n ' frox'
17
	;;
17
	;;
18
*)
18
*)
19
	echo "Usage: `basename $0` {start|stop}" >&2
19
	echo "Usage: `basename $0` {start|stop}" >&2
(-)frox/files/patch-aa (-12 / +12 lines)
Lines 1-6 Link Here
1
--- src/frox.conf.orig	Wed Jun 12 08:01:44 2002
1
--- src/frox.conf.orig	Sat Apr  5 17:30:35 2003
2
+++ src/frox.conf	Wed Jun 12 08:12:27 2002
2
+++ src/frox.conf	Mon Apr  7 15:05:51 2003
3
@@ -18,6 +18,7 @@
3
@@ -18,16 +18,13 @@
4
 # commented out to listen on all local IPs.
4
 # commented out to listen on all local IPs.
5
 #
5
 #
6
 # Listen firewall.localnet
6
 # Listen firewall.localnet
Lines 8-24 Link Here
8
 Listen 192.168.2.1
8
 Listen 192.168.2.1
9
 
9
 
10
 # Port to listen on. Must be supplied.
10
 # Port to listen on. Must be supplied.
11
@@ -26,7 +27,8 @@
12
 
13
 # If specified then bind to this device
14
 #
11
 #
15
-BindToDevice eth0
12
 Port 2121
16
+# DON'T USE: It's not supported for FreeBSD
17
+#BindToDevice eth0
18
 
13
 
14
-# If specified then bind to this device
15
-#
16
-BindToDevice eth0
17
-
19
 # Whether to run from inetd. You should still define Port above, but
18
 # Whether to run from inetd. You should still define Port above, but
20
 # it isn't used for much.
19
 # it isn't used for much.
21
@@ -39,7 +41,7 @@
20
 #
21
@@ -44,7 +41,7 @@
22
 # comment this out and copy resolver libraries into the chroot jail instead.
22
 # comment this out and copy resolver libraries into the chroot jail instead.
23
 # See FAQ section 3.2 for details.
23
 # See FAQ section 3.2 for details.
24
 #
24
 #
Lines 27-33 Link Here
27
 
27
 
28
 # Another ftp proxy to forward on to. Frox will contact this ftp
28
 # Another ftp proxy to forward on to. Frox will contact this ftp
29
 # proxy, and send it a login name of the form "user@host:port" where
29
 # proxy, and send it a login name of the form "user@host:port" where
30
@@ -54,8 +56,8 @@
30
@@ -64,8 +61,8 @@
31
 # you really want to run as root (not a good idea) you must say so
31
 # you really want to run as root (not a good idea) you must say so
32
 # specifically, and have compiled with --enable-run-as-root.
32
 # specifically, and have compiled with --enable-run-as-root.
33
 #
33
 #
Lines 38-44 Link Here
38
 
38
 
39
 # This is frox's working directory - it must be specified. Temporary
39
 # This is frox's working directory - it must be specified. Temporary
40
 # files and sockets will be created here. If you are using local
40
 # files and sockets will be created here. If you are using local
41
@@ -64,8 +66,8 @@
41
@@ -74,8 +71,8 @@
42
 # also chroot to this dir on startup. To avoid this you must specifically 
42
 # also chroot to this dir on startup. To avoid this you must specifically 
43
 # set DontChroot to Yes.
43
 # set DontChroot to Yes.
44
 #
44
 #
(-)frox/pkg-message (-2 / +1 lines)
Lines 5-12 Link Here
5
%%PREFIX%%/etc/rc.d/frox.sh start
5
%%PREFIX%%/etc/rc.d/frox.sh start
6
6
7
Or you can run frox with inetd this way:
7
Or you can run frox with inetd this way:
8
* uncomment 'FromInetd yes' in your %%PREFIX%%/etc/frox.conf (so frox
8
* uncomment 'FromInetd yes' in your %%PREFIX%%/etc/frox.conf
9
would not run on startup by %%PREFIX%%/etc/rc.d/frox.sh)
10
* add this line in /etc/inetd.conf:
9
* add this line in /etc/inetd.conf:
11
frox     stream  tcp     nowait  nobody    %%PREFIX%%/sbin/frox    frox
10
frox     stream  tcp     nowait  nobody    %%PREFIX%%/sbin/frox    frox
12
* and assign port number for frox you want in /etc/services (e.g. 2121):
11
* and assign port number for frox you want in /etc/services (e.g. 2121):

Return to bug 50674