mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Highly configurable FTP proxy (under development).
This commit is contained in:
parent
ce8cdca7f6
commit
8c7120c228
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45142
@ -22,6 +22,7 @@
|
||||
SUBDIR += greed
|
||||
SUBDIR += gtm
|
||||
SUBDIR += hsftp
|
||||
SUBDIR += jftpgw
|
||||
SUBDIR += jmirror
|
||||
SUBDIR += junglemonkey
|
||||
SUBDIR += kmago
|
||||
|
28
ftp/jftpgw/Makefile
Normal file
28
ftp/jftpgw/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: jftpgw
|
||||
# Date created: Sun Jul 15 13:19:01 CEST 2001
|
||||
# Whom: se
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= jftpgw
|
||||
PORTVERSION= 0.0.13a
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://www.mcknight.de/jftpgw/
|
||||
|
||||
MAINTAINER= se@FreeBSD.org
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-confpath=${PREFIX}/etc \
|
||||
--with-logpath=/var/log \
|
||||
--enable-crypt \
|
||||
# --enable-sftp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/jftpgw ${PREFIX}/sbin/
|
||||
${INSTALL_DATA} ${WRKSRC}/jftpgw.conf.sample ${PREFIX}/etc/
|
||||
@${SED} -e 's:@PREFIX@:${PREFIX}:g' \
|
||||
${FILESDIR}/jftpgw.sh.in > ${FILESDIR}/jftpgw.sh
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/jftpgw.sh ${PREFIX}/etc/rc.d
|
||||
|
||||
.include <bsd.port.mk>
|
2
ftp/jftpgw/distinfo
Normal file
2
ftp/jftpgw/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (jftpgw-0.0.13a.tar.gz) = 302a5879a76ccd6c82a197f2e625a6c3
|
||||
SIZE (jftpgw-0.0.13a.tar.gz) = 223858
|
25
ftp/jftpgw/files/jftpgw.sh.in
Normal file
25
ftp/jftpgw/files/jftpgw.sh.in
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
PROGRAM=@PREFIX@/sbin/jftpgw
|
||||
PIDFILE=/var/run/jftpgw.pid
|
||||
|
||||
case "$1" in
|
||||
|
||||
start)
|
||||
if [ -x $PROGRAM ] && [ -r @PREFIX@/etc/jftpgw.conf ]
|
||||
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
|
||||
|
46
ftp/jftpgw/files/patch-01
Normal file
46
ftp/jftpgw/files/patch-01
Normal file
@ -0,0 +1,46 @@
|
||||
--- secsftp_cmds.h~ Thu Apr 26 11:11:56 2001
|
||||
+++ secsftp_cmds.h Sun Jul 15 13:14:23 2001
|
||||
@@ -22,25 +22,25 @@
|
||||
int do_cancel(void);
|
||||
|
||||
/* this function is used from the standard command set */
|
||||
-int std_user(char*, struct conn_info_st*);
|
||||
+int std_user(const char*, struct conn_info_st*);
|
||||
|
||||
-int secsftp_user(char*, struct conn_info_st*);
|
||||
-int secsftp_pass(char*, struct conn_info_st*);
|
||||
-int secsftp_quit(char*, struct conn_info_st*);
|
||||
-int secsftp_noop(char*, struct conn_info_st*);
|
||||
-int secsftp_pwd (char*, struct conn_info_st*);
|
||||
-int secsftp_cwd (char*, struct conn_info_st*);
|
||||
-int secsftp_mkd (char*, struct conn_info_st*);
|
||||
-int secsftp_rmd (char*, struct conn_info_st*);
|
||||
-int secsftp_syst(char*, struct conn_info_st*);
|
||||
-int secsftp_cdup(char*, struct conn_info_st*);
|
||||
-int secsftp_pasv(char*, struct conn_info_st*);
|
||||
-int secsftp_port(char*, struct conn_info_st*);
|
||||
-int secsftp_retr(char*, struct conn_info_st*);
|
||||
-int secsftp_stor(char*, struct conn_info_st*);
|
||||
-int secsftp_type(char*, struct conn_info_st*);
|
||||
-int secsftp_size_mdtm(char*, struct conn_info_st*);
|
||||
-int secsftp_abor(char*, struct conn_info_st*);
|
||||
+int secsftp_user(const char*, struct conn_info_st*);
|
||||
+int secsftp_pass(const char*, struct conn_info_st*);
|
||||
+int secsftp_quit(const char*, struct conn_info_st*);
|
||||
+int secsftp_noop(const char*, struct conn_info_st*);
|
||||
+int secsftp_pwd (const char*, struct conn_info_st*);
|
||||
+int secsftp_cwd (const char*, struct conn_info_st*);
|
||||
+int secsftp_mkd (const char*, struct conn_info_st*);
|
||||
+int secsftp_rmd (const char*, struct conn_info_st*);
|
||||
+int secsftp_syst(const char*, struct conn_info_st*);
|
||||
+int secsftp_cdup(const char*, struct conn_info_st*);
|
||||
+int secsftp_pasv(const char*, struct conn_info_st*);
|
||||
+int secsftp_port(const char*, struct conn_info_st*);
|
||||
+int secsftp_retr(const char*, struct conn_info_st*);
|
||||
+int secsftp_stor(const char*, struct conn_info_st*);
|
||||
+int secsftp_type(const char*, struct conn_info_st*);
|
||||
+int secsftp_size_mdtm(const char*, struct conn_info_st*);
|
||||
+int secsftp_abor(const char*, struct conn_info_st*);
|
||||
|
||||
|
||||
struct cmdhandlerstruct secsftp_cmdhandler[] = {
|
63
ftp/jftpgw/files/patch-02
Normal file
63
ftp/jftpgw/files/patch-02
Normal file
@ -0,0 +1,63 @@
|
||||
--- jftpgw.conf.sample.in~ Thu Apr 26 11:11:56 2001
|
||||
+++ jftpgw.conf.sample.in Sun Jul 15 14:48:03 2001
|
||||
@@ -1,7 +1,15 @@
|
||||
-# - This is the configuration file for jftpgw @JFTPGW_VERSION@ -
|
||||
+# - This is the configuration file for jftpgw 0.0.13a -
|
||||
# - -
|
||||
# - Lines starting with a ``#'' sign and empty lines will be ignored -
|
||||
|
||||
+####
|
||||
+#
|
||||
+# New sample config file constructed from 0.0.12pre plus information
|
||||
+# from the web site by Stefan Esser <se@freebsd.org>
|
||||
+#
|
||||
+####
|
||||
+
|
||||
+<global>
|
||||
|
||||
#-Section listen
|
||||
# Bind to the address(es) specified below
|
||||
@@ -502,3 +510,43 @@
|
||||
|
||||
|
||||
# - End of configuration file -
|
||||
+
|
||||
+</global>
|
||||
+
|
||||
+
|
||||
+# nobody should connect, except for host1 and host2
|
||||
+<from 0.0.0.0/0 exclude host1 host2>
|
||||
+ access deny
|
||||
+</from>
|
||||
+
|
||||
+# host1, host2.domain.net and 192.168.181.234 are allowed to connect to some
|
||||
+# other host on port 21.
|
||||
+<from host1 host2.domain.net 192.168.181.234>
|
||||
+ <port 21>
|
||||
+ access allow
|
||||
+ </port>
|
||||
+</from>
|
||||
+
|
||||
+# *.domain.net may not connect, this paragraph is not valid for host1 and
|
||||
+# host2. If the connection comes from .slowdomain.domain.net moreover, limit
|
||||
+# the connection to 4k/s.
|
||||
+<from .domain.net exclude host1 host2>
|
||||
+ access deny
|
||||
+ <from .slowdomain.domain.net>
|
||||
+ limit 4
|
||||
+ </from>
|
||||
+</from>
|
||||
+
|
||||
+# The host on which jftpgw runs may not connect to the proxy itself. Thus,
|
||||
+# the proxy may not loop by calling itself again
|
||||
+<to localhost 0.0.0.0 serverhost.domain.net>
|
||||
+ <port 2370>
|
||||
+ access deny
|
||||
+ </port>
|
||||
+</to>
|
||||
+
|
||||
+# This paragraph is valid for all connections again
|
||||
+<global>
|
||||
+ defaultmode passive
|
||||
+</global>
|
||||
+
|
1
ftp/jftpgw/pkg-comment
Normal file
1
ftp/jftpgw/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Highly configurable FTP proxy
|
9
ftp/jftpgw/pkg-descr
Normal file
9
ftp/jftpgw/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
jftpgw is an FTP proxy/gateway that uses the FTP protocol (unlike those FTP
|
||||
proxies that fetch an FTP file but work as an http proxy). You can use it to
|
||||
make servers behind a firewall/NAT server (masquerading server) accessible
|
||||
or to allow users behind such solutions to transfer files to and from the
|
||||
outside of the LAN. With the new sftp support you can also use FTP to get
|
||||
files from a machine that is only accessible with an ssh connection (see
|
||||
the page on the sftp support).
|
||||
|
||||
WWW: http://www.mcknight.de/jftpgw/
|
3
ftp/jftpgw/pkg-plist
Normal file
3
ftp/jftpgw/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
sbin/jftpgw
|
||||
etc/jftpgw.conf.sample
|
||||
etc/rc.d/jftpgw.sh
|
Loading…
Reference in New Issue
Block a user