aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wu-ftpd
diff options
context:
space:
mode:
authortorstenb <torstenb@FreeBSD.org>1994-10-23 09:37:00 +0800
committertorstenb <torstenb@FreeBSD.org>1994-10-23 09:37:00 +0800
commit48237568190de8547218b78c8fb687456207ea20 (patch)
tree3c22f520b66fd69bdd6d13d49fab6ccffc5123a8 /ftp/wu-ftpd
parent6a43ed2a2f9dd7fa3cf6a28815f8e7f8b5ae2f99 (diff)
downloadfreebsd-ports-gnome-48237568190de8547218b78c8fb687456207ea20.tar.gz
freebsd-ports-gnome-48237568190de8547218b78c8fb687456207ea20.tar.zst
freebsd-ports-gnome-48237568190de8547218b78c8fb687456207ea20.zip
Reviewed by:
Submitted by: Obtained from: wuarchive ftpd with skey support
Diffstat (limited to 'ftp/wu-ftpd')
-rw-r--r--ftp/wu-ftpd/Makefile20
-rw-r--r--ftp/wu-ftpd/files/patch-aa93
-rw-r--r--ftp/wu-ftpd/files/patch-ab56
-rw-r--r--ftp/wu-ftpd/files/patch-ac47
-rw-r--r--ftp/wu-ftpd/pkg-comment1
-rw-r--r--ftp/wu-ftpd/pkg-descr15
-rw-r--r--ftp/wu-ftpd/pkg-plist13
-rw-r--r--ftp/wu-ftpd/scripts/configure12
8 files changed, 257 insertions, 0 deletions
diff --git a/ftp/wu-ftpd/Makefile b/ftp/wu-ftpd/Makefile
new file mode 100644
index 000000000000..656f27156acf
--- /dev/null
+++ b/ftp/wu-ftpd/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: wu-ftpd
+# Version required: 2.4
+# Date created: 18 Oct 1994
+# Whom: torstenb
+#
+# $Id:$
+#
+
+DISTNAME= wu-ftpd-2.4
+MASTER_SITES= ftp://ftp.wustl.edu/packages/wuarchive-ftpd/
+EXTRACT_SUFX= .tar.Z
+
+pre-install:
+ @mkdir -p ${PREFIX}/bin
+ @mkdir -p ${PREFIX}/etc
+ @mkdir -p ${PREFIX}/man/man1
+ @mkdir -p ${PREFIX}/man/man5
+ @mkdir -p ${PREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/ftp/wu-ftpd/files/patch-aa b/ftp/wu-ftpd/files/patch-aa
new file mode 100644
index 000000000000..5c2afd84d3db
--- /dev/null
+++ b/ftp/wu-ftpd/files/patch-aa
@@ -0,0 +1,93 @@
+diff -c -r src/ftpd.c.orig src/ftpd.c
+*** src/ftpd.c.orig Wed Apr 13 23:17:18 1994
+--- src/ftpd.c Tue Oct 18 18:04:43 1994
+***************
+*** 139,146 ****
+ *freopen(const char *, const char *, FILE *);
+ extern int ftpd_pclose(FILE *iop),
+ fclose(FILE *);
+! extern char *getline(),
+! *realpath(char *pathname, char *result);
+ extern char cbuf[];
+ extern off_t restart_point;
+
+--- 139,148 ----
+ *freopen(const char *, const char *, FILE *);
+ extern int ftpd_pclose(FILE *iop),
+ fclose(FILE *);
+! extern char *getline();
+! #ifndef HAVE_REALPATH
+! extern char *realpath(char *pathname, char *result);
+! #endif
+ extern char cbuf[];
+ extern off_t restart_point;
+
+***************
+*** 237,242 ****
+--- 239,250 ----
+
+ #endif /* SETPROCTITLE */
+
++ #ifdef SKEY
++ int pwok = 0;
++ char *skey_challenge();
++ char *skey_crypt();
++ #endif
++
+ #ifdef KERBEROS
+ void init_krb();
+ void end_krb();
+***************
+*** 878,884 ****
+--- 886,897 ----
+ } else
+ acl_setfunctions();
+
++ #ifdef SKEY
++ pwok = skeyaccess(name, NULL, remotehost);
++ reply(331, "%s", skey_challenge(name, pw, pwok));
++ #else
+ reply(331, "Password required for %s.", name);
++ #endif
+ askpasswd = 1;
+ /* Delay before reading passwd after first failed attempt to slow down
+ * passwd-guessing programs. */
+***************
+*** 1007,1013 ****
+--- 1020,1031 ----
+ #ifdef KERBEROS
+ xpasswd = crypt16(passwd, salt);
+ #else
++ #ifdef SKEY
++ xpasswd = skey_crypt(passwd, salt, pw, pwok);
++ pwok = 0;
++ #else
+ xpasswd = crypt(passwd, salt);
++ #endif
+ #endif
+
+ #ifdef ULTRIX_AUTH
+diff -c -r src/realpath.c.orig src/realpath.c
+*** src/realpath.c.orig Fri Apr 1 21:03:45 1994
+--- src/realpath.c Tue Oct 18 17:48:34 1994
+***************
+*** 29,36 ****
+--- 29,39 ----
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
++
+ #include "config.h"
+
++ #ifndef HAVE_REALPATH
++
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+***************
+*** 159,161 ****
+--- 162,165 ----
+ strcpy(result, workpath);
+ return (result);
+ }
++ #endif
diff --git a/ftp/wu-ftpd/files/patch-ab b/ftp/wu-ftpd/files/patch-ab
new file mode 100644
index 000000000000..26023cbbe70c
--- /dev/null
+++ b/ftp/wu-ftpd/files/patch-ab
@@ -0,0 +1,56 @@
+*** Makefile.orig Fri Apr 1 21:03:58 1994
+--- Makefile Tue Oct 18 18:45:08 1994
+***************
+*** 1,25 ****
+! BINDIR= /usr/local/bin
+! ETCDIR= /usr/local/etc
+! MANDIR= /usr/local/man
+ MANEXT= 8
+
+ all:
+ @ echo 'Use the "build" command (shell script) to make ftpd.'
+ @ echo 'You can say "build help" for details on how it works.'
+
+ install: bin/ftpd bin/ftpcount bin/ftpshut
+ -mv -f ${ETCDIR}/ftpd ${ETCDIR}/ftpd-old
+ @echo Installing binaries.
+! install -o bin -g bin -m 755 bin/ftpd ${ETCDIR}/ftpd
+! install -o bin -g bin -m 755 bin/ftpshut ${BINDIR}/ftpshut
+! install -o bin -g bin -m 755 bin/ftpcount ${BINDIR}/ftpcount
+! install -o bin -g bin -m 755 bin/ftpwho ${BINDIR}/ftpwho
+ @echo Installing manpages.
+! install -o bin -g bin -m 755 doc/ftpd.8 ${MANDIR}/man8/ftpd.8
+! install -o bin -g bin -m 755 doc/ftpcount.1 ${MANDIR}/man1/ftpcount.1
+! install -o bin -g bin -m 755 doc/ftpwho.1 ${MANDIR}/man1/ftpwho.1
+! install -o bin -g bin -m 755 doc/ftpshut.8 ${MANDIR}/man8/ftpshut.8
+! install -o bin -g bin -m 755 doc/ftpaccess.5 ${MANDIR}/man5/ftpaccess.5
+! install -o bin -g bin -m 755 doc/ftphosts.5 ${MANDIR}/man5/ftphosts.5
+! install -o bin -g bin -m 755 doc/ftpconversions.5 ${MANDIR}/man5/ftpconversions.5
+! install -o bin -g bin -m 755 doc/xferlog.5 ${MANDIR}/man5/xferlog.5
+--- 1,26 ----
+! BINDIR= ${PREFIX}/bin
+! ETCDIR= ${PREFIX}/etc
+! MANDIR= ${PREFIX}/man
+ MANEXT= 8
+
+ all:
++ /bin/sh build fb2
+ @ echo 'Use the "build" command (shell script) to make ftpd.'
+ @ echo 'You can say "build help" for details on how it works.'
+
+ install: bin/ftpd bin/ftpcount bin/ftpshut
+ -mv -f ${ETCDIR}/ftpd ${ETCDIR}/ftpd-old
+ @echo Installing binaries.
+! install -c -o bin -g bin -m 755 bin/ftpd ${ETCDIR}/ftpd
+! install -c -o bin -g bin -m 755 bin/ftpshut ${BINDIR}/ftpshut
+! install -c -o bin -g bin -m 755 bin/ftpcount ${BINDIR}/ftpcount
+! install -c -o bin -g bin -m 755 bin/ftpwho ${BINDIR}/ftpwho
+ @echo Installing manpages.
+! install -c -o bin -g bin -m 755 doc/ftpd.8 ${MANDIR}/man8/ftpd.8
+! install -c -o bin -g bin -m 755 doc/ftpcount.1 ${MANDIR}/man1/ftpcount.1
+! install -c -o bin -g bin -m 755 doc/ftpwho.1 ${MANDIR}/man1/ftpwho.1
+! install -c -o bin -g bin -m 755 doc/ftpshut.8 ${MANDIR}/man8/ftpshut.8
+! install -c -o bin -g bin -m 755 doc/ftpaccess.5 ${MANDIR}/man5/ftpaccess.5
+! install -c -o bin -g bin -m 755 doc/ftphosts.5 ${MANDIR}/man5/ftphosts.5
+! install -c -o bin -g bin -m 755 doc/ftpconversions.5 ${MANDIR}/man5/ftpconversions.5
+! install -c -o bin -g bin -m 755 doc/xferlog.5 ${MANDIR}/man5/xferlog.5
diff --git a/ftp/wu-ftpd/files/patch-ac b/ftp/wu-ftpd/files/patch-ac
new file mode 100644
index 000000000000..8f9f98a46283
--- /dev/null
+++ b/ftp/wu-ftpd/files/patch-ac
@@ -0,0 +1,47 @@
+*** src/pathnames.h.orig Wed Apr 13 22:46:48 1994
+--- src/pathnames.h Tue Oct 18 18:26:26 1994
+***************
+*** 29,41 ****
+ *
+ * @(#)pathnames.h 5.2 (Berkeley) 6/1/90 */
+
+! #define _PATH_FTPUSERS "/etc/ftpusers"
+! #define _PATH_FTPACCESS "/usr/local/etc/ftpaccess"
+ #define _PATH_EXECPATH "/bin/ftp-exec"
+! #define _PATH_PIDNAMES "/usr/local/daemon/ftpd/ftp.pids-%s"
+! #define _PATH_CVT "/usr/local/etc/ftpconversions"
+! #define _PATH_XFERLOG "/usr/adm/xferlog"
+! #define _PATH_PRIVATE "/etc/ftpgroups"
+
+ #ifndef _PATH_UTMP
+ #define _PATH_UTMP "/etc/utmp"
+--- 29,41 ----
+ *
+ * @(#)pathnames.h 5.2 (Berkeley) 6/1/90 */
+
+! #define _PATH_FTPUSERS "!!PREFIX!!/etc/ftpusers"
+! #define _PATH_FTPACCESS "!!PREFIX!!/etc/ftpaccess"
+ #define _PATH_EXECPATH "/bin/ftp-exec"
+! #define _PATH_PIDNAMES "!!PREFIX!!/daemon/ftpd/ftp.pids-%s"
+! #define _PATH_CVT "!!PREFIX!!/etc/ftpconversions"
+! #define _PATH_XFERLOG "/var/log/xferlog"
+! #define _PATH_PRIVATE "!!PREFIX!!/etc/ftpgroups"
+
+ #ifndef _PATH_UTMP
+ #define _PATH_UTMP "/etc/utmp"
+***************
+*** 47,52 ****
+ #define _PATH_DEVNULL "/dev/null"
+
+ #ifdef HOST_ACCESS
+! #define _PATH_FTPHOSTS "/usr/local/etc/ftphosts"
+ #endif
+
+--- 47,53 ----
+ #define _PATH_DEVNULL "/dev/null"
+
+ #ifdef HOST_ACCESS
+! #define _PATH_FTPHOSTS "!!PREFIX!!/etc/ftphosts"
+! #else
+ #endif
+
diff --git a/ftp/wu-ftpd/pkg-comment b/ftp/wu-ftpd/pkg-comment
new file mode 100644
index 000000000000..e03e15990049
--- /dev/null
+++ b/ftp/wu-ftpd/pkg-comment
@@ -0,0 +1 @@
+wu-ftpd is a replacement ftp server for Un*x systems.
diff --git a/ftp/wu-ftpd/pkg-descr b/ftp/wu-ftpd/pkg-descr
new file mode 100644
index 000000000000..0c40b7b88367
--- /dev/null
+++ b/ftp/wu-ftpd/pkg-descr
@@ -0,0 +1,15 @@
+WASHINGTON UNIVERSITY FTP SERVER, RELEASE 2.4
+wu-ftpd is a replacement ftp server for Un*x systems. Besides
+supporting the ftp protocol defined in RFC 959, it adds the following
+features:
+ o logging of transfers
+ o logging of commands
+ o on the fly compression and archiving
+ o classification of users on type and location
+ o per class limits
+ o per directory upload permissions
+ o restricted guest accounts
+ o system wide and per directory messages.
+ o directory alias
+ o cdpath
+ o filename filter
diff --git a/ftp/wu-ftpd/pkg-plist b/ftp/wu-ftpd/pkg-plist
new file mode 100644
index 000000000000..aee7b530ffa3
--- /dev/null
+++ b/ftp/wu-ftpd/pkg-plist
@@ -0,0 +1,13 @@
+@cwd /usr/local
+etc/ftpd
+man/man1/ftpcount.1
+man/man1/ftpwho.1
+man/man5/ftpaccess.5
+man/man5/ftphosts.5
+man/man5/ftpconversions.5
+man/man5/xferlog.5
+man/man8/ftpd.8
+man/man8/ftpshut.8
+bin/ftpshut
+bin/ftpcount
+bin/ftpwho
diff --git a/ftp/wu-ftpd/scripts/configure b/ftp/wu-ftpd/scripts/configure
new file mode 100644
index 000000000000..c5dca7248c10
--- /dev/null
+++ b/ftp/wu-ftpd/scripts/configure
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+mv ${WRKSRC}/src/pathnames.h ${WRKSRC}/src/pathnames.h.bak
+sed <${WRKSRC}/src/pathnames.h.bak >${WRKSRC}/src/pathnames.h s+!!PREFIX!!+$PREFIX+g
+
+cp ${FILESDIR}/Makefile.fb2 ${WRKSRC}/src/makefiles/Makefile.fb2
+cp ${FILESDIR}/config.fb2 ${WRKSRC}/src/config/config.fb2
+cp ${FILESDIR}/support-Makefile.fb2 ${WRKSRC}/support/makefiles/Makefile.fb2
+cp ${FILESDIR}/skey-stuff.c ${WRKSRC}/src/skey-stuff.c