aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-03-07 09:27:02 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-03-07 09:27:02 +0000
commit48381ba2bcc9daff8aa053a291d71d69f9797638 (patch)
tree247a8f5e31b34c43dee41a613ac9b1e391298a65 /ftp
parentb9cb98847e2fb487e241a0f31acd74434ae3546b (diff)
downloadports-48381ba2bcc9daff8aa053a291d71d69f9797638.tar.gz
ports-48381ba2bcc9daff8aa053a291d71d69f9797638.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/Makefile1
-rw-r--r--ftp/ftp-proxy/Makefile31
-rw-r--r--ftp/ftp-proxy/distinfo3
-rw-r--r--ftp/ftp-proxy/files/ftp-proxy.sh32
-rw-r--r--ftp/ftp-proxy/pkg-descr3
-rw-r--r--ftp/ftp-proxy/pkg-message23
6 files changed, 93 insertions, 0 deletions
diff --git a/ftp/Makefile b/ftp/Makefile
index 82a1fe069c14..1c12bc539b04 100644
--- a/ftp/Makefile
+++ b/ftp/Makefile
@@ -21,6 +21,7 @@
SUBDIR += filezilla
SUBDIR += fmirror
SUBDIR += frox
+ SUBDIR += ftp-proxy
SUBDIR += ftp-tls
SUBDIR += ftpcopy
SUBDIR += ftpcube
diff --git a/ftp/ftp-proxy/Makefile b/ftp/ftp-proxy/Makefile
new file mode 100644
index 000000000000..b681488a3629
--- /dev/null
+++ b/ftp/ftp-proxy/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: ftp-proxy
+# Date created: 4. March 2007
+# Whom: Christian Ludwig
+#
+# $FreeBSD$
+#
+
+PORTNAME= ftp-proxy
+PORTVERSION= 4.0p0
+CATEGORIES= ftp
+MASTER_SITES= http://www.chrissicool.net/projects/ftp-proxy/distfiles/
+
+MAINTAINER= chrissicool@chrissicool.net
+COMMENT= A port of OpenBSD's ftp-proxy
+
+LIB_DEPENDS= event:${PORTSDIR}/devel/libevent
+
+MAN8= ftp-proxy.8
+MANCOMPRESSED= yes
+
+PLIST_FILES= sbin/ftp-proxy \
+ etc/rc.d/ftp-proxy.sh
+
+CFLAGS+= -I${PREFIX}/include
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ftp-proxy ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${FILESDIR}/ftp-proxy.sh ${PREFIX}/etc/rc.d
+ ${INSTALL_MAN} ${WRKSRC}/ftp-proxy.8.gz ${PREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/ftp/ftp-proxy/distinfo b/ftp/ftp-proxy/distinfo
new file mode 100644
index 000000000000..e46c2f8d7b3a
--- /dev/null
+++ b/ftp/ftp-proxy/distinfo
@@ -0,0 +1,3 @@
+MD5 (ftp-proxy-4.0p0.tar.gz) = 1defe7411ed13966910d1ec25784db86
+SHA256 (ftp-proxy-4.0p0.tar.gz) = cabd125a011d6548f40c72e29a254e71decde306f55ff5d037018cb33901867f
+SIZE (ftp-proxy-4.0p0.tar.gz) = 13381
diff --git a/ftp/ftp-proxy/files/ftp-proxy.sh b/ftp/ftp-proxy/files/ftp-proxy.sh
new file mode 100644
index 000000000000..d2c7b904f6a4
--- /dev/null
+++ b/ftp/ftp-proxy/files/ftp-proxy.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ftp-proxy
+# REQUIRE: DAEMON
+#
+# NOTE for FreeBSD 5.0+:
+# If you want this script to start with the base rc scripts
+# move ftp-proxy.sh to /etc/rc.d/ftp-proxy
+# Define these ftp-proxy_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/ftp-proxy
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+
+ftpproxy_enable=${ftp-proxy_enable:-"NO"} # Enable ftp-proxy
+ftpproxy_flags=${ftp-proxy_flags:-""} # Flags to ftp-proxy program
+#ftpproxy_program="%%PREFIX%%/sbin/ftp-proxy" # Location of ftp-proxy
+
+. %%RC_SUBR%%
+
+name="ftp-proxy"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/sbin/${name}"
+
+load_rc_config $name
+
+run_rc_command "$1"
diff --git a/ftp/ftp-proxy/pkg-descr b/ftp/ftp-proxy/pkg-descr
new file mode 100644
index 000000000000..9bd5d64e32b0
--- /dev/null
+++ b/ftp/ftp-proxy/pkg-descr
@@ -0,0 +1,3 @@
+A ftp proxy for firewalled connections,using pf's anchors and rules.
+
+WWW: http://www.openbsd.org/
diff --git a/ftp/ftp-proxy/pkg-message b/ftp/ftp-proxy/pkg-message
new file mode 100644
index 000000000000..00984c94db3a
--- /dev/null
+++ b/ftp/ftp-proxy/pkg-message
@@ -0,0 +1,23 @@
+===================================================================
+To make use of the proxy, pf.conf(5) needs the following rules. All
+anchors are mandatory. Adjust the rules as needed.
+
+In the NAT section:
+
+ nat-anchor "ftp-proxy/*"
+ rdr-anchor "ftp-proxy/*"
+ rdr pass on $int_if proto tcp from $lan to any port 21 -> \
+ 127.0.0.1 port 8021
+
+In the rule section:
+
+ anchor "ftp-proxy/*"
+ pass out proto tcp from $proxy to any port 21 keep state
+
+Add the following line to your /etc/rc.conf to enable the proxy on
+startup:
+
+ ftpproxy_enable="YES"
+
+Please consult the man page ftp-proxy(8) for more information.
+===================================================================