summaryrefslogtreecommitdiff
path: root/net/jftpgw
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-02-23 01:32:33 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-02-23 01:32:33 +0000
commitc63bd9bbcde085b0f8c875ae00989a533fe74ea1 (patch)
treec5357556d335566acc5fb7181d26cac34330c024 /net/jftpgw
parent84f3387a30afec1b225ff4c60b77403008285091 (diff)
downloadpkgsrc-c63bd9bbcde085b0f8c875ae00989a533fe74ea1.tar.gz
Initial import of jftpgw-0.13.4, packaged by David Ferlier in PR
pkg/24414, with minor changes by me. 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.
Diffstat (limited to 'net/jftpgw')
-rw-r--r--net/jftpgw/DESCR5
-rw-r--r--net/jftpgw/Makefile28
-rw-r--r--net/jftpgw/PLIST6
-rw-r--r--net/jftpgw/distinfo5
-rwxr-xr-xnet/jftpgw/files/jftpgw.sh20
-rw-r--r--net/jftpgw/patches/patch-aa21
6 files changed, 85 insertions, 0 deletions
diff --git a/net/jftpgw/DESCR b/net/jftpgw/DESCR
new file mode 100644
index 00000000000..ca995b91d06
--- /dev/null
+++ b/net/jftpgw/DESCR
@@ -0,0 +1,5 @@
+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.
diff --git a/net/jftpgw/Makefile b/net/jftpgw/Makefile
new file mode 100644
index 00000000000..db80cf06472
--- /dev/null
+++ b/net/jftpgw/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/23 01:32:33 xtraeme Exp $
+
+DISTNAME= jftpgw-0.13.4
+CATEGORIES= net
+MASTER_SITES= http://www.mcknight.de/jftpgw/
+
+MAINTAINER= david@netbsd-fr.org
+HOMEPAGE= http://www.mcknight.de/jftpgw/
+COMMENT= FTP gateway/proxy
+
+USE_BUILDLINK3= yes
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
+
+CONFIGURE_ARGS+= --with-logpath=/var/log
+CONFIGURE_ARGS+= --enable-crypt
+CONFIGURE_ARGS+= --enable-sftp
+
+RCD_SCRIPTS= jftpgw
+EGDIR= ${PREFIX}/share/examples/jftpgw
+CONF_FILES= ${EGDIR}/jftpgw.conf ${PKG_SYSCONFDIR}/jftpgw.conf
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-build
+SUBST_FILES.config= ${WRKSRC}/jftpgw.conf.sample
+SUBST_SED.config= -e "s/nobody/root/"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/jftpgw/PLIST b/net/jftpgw/PLIST
new file mode 100644
index 00000000000..82036ced7c9
--- /dev/null
+++ b/net/jftpgw/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/23 01:32:34 xtraeme Exp $
+etc/rc.d/jftpgw
+man/man1/jftpgw.1
+sbin/jftpgw
+share/examples/jftpgw/jftpgw.conf
+@dirrm share/examples/jftpgw
diff --git a/net/jftpgw/distinfo b/net/jftpgw/distinfo
new file mode 100644
index 00000000000..1e8c9031a22
--- /dev/null
+++ b/net/jftpgw/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/23 01:32:33 xtraeme Exp $
+
+SHA1 (jftpgw-0.13.4.tar.gz) = 9bc043bafc2be73b29a446429b76b58345ae55e8
+Size (jftpgw-0.13.4.tar.gz) = 255160 bytes
+SHA1 (patch-aa) = 8af643cbdd2e6c4f620cd8f7a0d51419ce7f6769
diff --git a/net/jftpgw/files/jftpgw.sh b/net/jftpgw/files/jftpgw.sh
new file mode 100755
index 00000000000..610f5bd6ab2
--- /dev/null
+++ b/net/jftpgw/files/jftpgw.sh
@@ -0,0 +1,20 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+#
+# $NetBSD: jftpgw.sh,v 1.1.1.1 2004/02/23 01:32:34 xtraeme Exp $
+#
+# PROVIDE: jftpgw
+# REQUIRE: DAEMON LOGIN
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="jftpgw"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/jftpgw/patches/patch-aa b/net/jftpgw/patches/patch-aa
new file mode 100644
index 00000000000..9898621a8f7
--- /dev/null
+++ b/net/jftpgw/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/23 01:32:34 xtraeme Exp $
+
+--- Makefile.in.orig 2004-02-23 02:20:31.000000000 +0100
++++ Makefile.in 2004-02-23 02:23:09.000000000 +0100
+@@ -528,11 +528,12 @@
+ # use mkinstalldirs, not "install -d"
+ # don't install a list of file. Just one file per install.
+ # if you have more of them, create a subdirectory with an extra Makefile
++examplesdir=$(datadir)/examples/jftpgw
++
+ install-data-local:
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- if test -f $(DESTDIR)$(sysconfdir)/jftpgw.conf; then echo -e "\n\nMoving $(DESTDIR)$(sysconfdir)/jftpgw.conf to $(DESTDIR)$(sysconfdir)/jftpgw.conf.old\n\n"; mv $(DESTDIR)$(sysconfdir)/jftpgw.conf $(DESTDIR)$(sysconfdir)/jftpgw.conf.old; fi
+- $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(sysconfdir)/jftpgw.conf
+- $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(sysconfdir)/jftpgw.conf.sample
++ $(mkinstalldirs) $(DESTDIR)$(examplesdir)
++ if test -f $(DESTDIR)$(sysconfdir)/jftpgw.conf; then echo -e "\n\nMoving $(DESTDIR)$(examplesdir)/jftpgw.conf to $(DESTDIR)$(examplesdir)/jftpgw.conf.old\n\n"; mv $(DESTDIR)$(examplesdir)/jftpgw.conf $(DESTDIR)$(examplesdir)/jftpgw.conf.old; fi
++ $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(examplesdir)/jftpgw.conf
+
+ # remove ALL you have installed in install-data-local or install-exec-local
+ uninstall-local: