mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Add oftpd 0.3.3, a threaded, anonymous only FTP server designed for
security. PR: 26243 Submitted by: Anders Nordby <anders@fix.no>
This commit is contained in:
parent
4f461548db
commit
aa2ee09180
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40975
@ -30,6 +30,7 @@
|
||||
SUBDIR += ncftp
|
||||
SUBDIR += ncftp2
|
||||
SUBDIR += ncftp3
|
||||
SUBDIR += oftpd
|
||||
SUBDIR += omi
|
||||
SUBDIR += pavuk
|
||||
SUBDIR += proftpd
|
||||
|
39
ftp/oftpd/Makefile
Normal file
39
ftp/oftpd/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# Ports collection makefile for: oftpd
|
||||
# Date created: 31 March 2001
|
||||
# Whom: Anders Nordby <anders@fix.no>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= oftpd
|
||||
PORTVERSION= 0.3.3
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://www.time-travellers.org/oftpd/ \
|
||||
http://www.freenix.no/~anders/
|
||||
|
||||
MAINTAINER= anders@fix.no
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
DOCFILES= README AUTHORS ChangeLog NEWS TODO BUGS
|
||||
|
||||
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/libexec/oftpd
|
||||
.if !defined(NOPORTDOCS)
|
||||
${INSTALL} -d -m 555 ${PREFIX}/share/doc/oftpd
|
||||
.for i in ${DOCFILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/oftpd
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${ECHO} "================================================================================"
|
||||
@${ECHO} "oftpd only runs standalone, not from inetd."
|
||||
@${ECHO} "Try ${PREFIX}/libexec/oftpd -h to see command line options."
|
||||
@${ECHO} "Create a README file in the root anonymous FTP dir to have it displayed to"
|
||||
@${ECHO} "users upon login."
|
||||
@${ECHO} "================================================================================"
|
||||
|
||||
.include <bsd.port.mk>
|
1
ftp/oftpd/distinfo
Normal file
1
ftp/oftpd/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (oftpd-0.3.3.tar.gz) = 5aedb3495fa262400e71b454a4bd9470
|
10
ftp/oftpd/files/patch-af_portability.c
Normal file
10
ftp/oftpd/files/patch-af_portability.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/af_portability.h.old Sat Mar 31 12:00:46 2001
|
||||
+++ src/af_portability.h Sat Mar 31 12:01:00 2001
|
||||
@@ -2,6 +2,7 @@
|
||||
#define AF_PORTABILITY_H
|
||||
|
||||
#include <netinet/in.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
/* _x_ must be a pointer to a sockaddr structure */
|
56
ftp/oftpd/files/patch-configure
Normal file
56
ftp/oftpd/files/patch-configure
Normal file
@ -0,0 +1,56 @@
|
||||
--- configure.old Sat Mar 31 12:13:17 2001
|
||||
+++ configure Sat Mar 31 12:14:16 2001
|
||||
@@ -1121,14 +1121,14 @@
|
||||
fi
|
||||
|
||||
|
||||
-echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
|
||||
-echo "configure:1126: checking for main in -lpthread" >&5
|
||||
+echo $ac_n "checking for main with -pthread""... $ac_c" 1>&6
|
||||
+echo "configure:1126: checking for main with -pthread" >&5
|
||||
ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
-LIBS="-lpthread $LIBS"
|
||||
+LIBS="-pthread $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1134 "configure"
|
||||
#include "confdefs.h"
|
||||
@@ -1158,7 +1158,7 @@
|
||||
#define $ac_tr_lib 1
|
||||
EOF
|
||||
|
||||
- LIBS="-lpthread $LIBS"
|
||||
+ LIBS="-pthread $LIBS"
|
||||
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
@@ -2311,14 +2311,14 @@
|
||||
fi
|
||||
done
|
||||
|
||||
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
||||
-echo "configure:2316: checking for pthread_create in -lpthread" >&5
|
||||
+echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
|
||||
+echo "configure:2316: checking for pthread_create with -pthread" >&5
|
||||
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
-LIBS="-lpthread $LIBS"
|
||||
+LIBS="$LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2324 "configure"
|
||||
#include "confdefs.h"
|
||||
@@ -2352,7 +2352,7 @@
|
||||
#define $ac_tr_lib 1
|
||||
EOF
|
||||
|
||||
- LIBS="-lpthread $LIBS"
|
||||
+ LIBS="$LIBS"
|
||||
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
14
ftp/oftpd/files/patch-file_list.c
Normal file
14
ftp/oftpd/files/patch-file_list.c
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/file_list.c.old Sat Mar 31 11:27:00 2001
|
||||
+++ src/file_list.c Sat Mar 31 11:37:38 2001
|
||||
@@ -186,7 +186,11 @@
|
||||
/* do a glob() */
|
||||
memset(&glob_buf, 0, sizeof(glob_buf));
|
||||
glob_ret = glob(pattern, GLOB_ERR, NULL, &glob_buf);
|
||||
+#ifndef GLOB_NOMATCH /* FreeBSD rocks your world */
|
||||
+ if (glob_ret == GLOB_NOCHECK) {
|
||||
+#else
|
||||
if (glob_ret == GLOB_NOMATCH) {
|
||||
+#endif
|
||||
fdprintf(out, "total 0\r\n");
|
||||
return 1;
|
||||
} else if (glob_ret == GLOB_NOSPACE) {
|
10
ftp/oftpd/files/patch-ftp_command.c
Normal file
10
ftp/oftpd/files/patch-ftp_command.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/ftp_command.c.old Sat Mar 31 11:43:43 2001
|
||||
+++ src/ftp_command.c Sat Mar 31 11:44:01 2001
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
10
ftp/oftpd/files/patch-ftp_listener.c
Normal file
10
ftp/oftpd/files/patch-ftp_listener.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/ftp_listener.c.old Sat Mar 31 12:01:10 2001
|
||||
+++ src/ftp_listener.c Sat Mar 31 12:01:24 2001
|
||||
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
17
ftp/oftpd/files/patch-ftp_session.c
Normal file
17
ftp/oftpd/files/patch-ftp_session.c
Normal file
@ -0,0 +1,17 @@
|
||||
--- src/ftp_session.c.orig Thu Mar 29 00:41:18 2001
|
||||
+++ src/ftp_session.c Sat Mar 31 12:07:49 2001
|
||||
@@ -3,13 +3,13 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
+#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
-#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <errno.h>
|
1
ftp/oftpd/pkg-comment
Normal file
1
ftp/oftpd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A threaded, anonymous only FTP server designed for security
|
9
ftp/oftpd/pkg-descr
Normal file
9
ftp/oftpd/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
oftpd is designed to be as secure as an anonymous FTP server can possibly be.
|
||||
It runs as non-root for most of the time, and uses the Unix chroot() command to
|
||||
hide most of the systems directories from external users - they cannot change
|
||||
into them even if the server is totally compromised! It contains its own
|
||||
directory change code, so that it can run efficiently as a threaded server, and
|
||||
its own directory listing code (most FTP servers execute the system "ls"
|
||||
command to list files).
|
||||
|
||||
WWW: http://www.time-travellers.org/oftpd/
|
8
ftp/oftpd/pkg-plist
Normal file
8
ftp/oftpd/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
libexec/oftpd
|
||||
share/doc/oftpd/README
|
||||
share/doc/oftpd/AUTHORS
|
||||
share/doc/oftpd/ChangeLog
|
||||
share/doc/oftpd/NEWS
|
||||
share/doc/oftpd/TODO
|
||||
share/doc/oftpd/BUGS
|
||||
@dirrm share/doc/oftpd
|
Loading…
x
Reference in New Issue
Block a user