read-only anonymous FTP and HTTP server

This commit is contained in:
camield 2000-02-28 09:32:22 +00:00
parent 50db7cbd5a
commit 86eafb41db
6 changed files with 75 additions and 0 deletions

29
net/publicfile/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/02/28 09:32:22 camield Exp $
DISTNAME= publicfile-0.52
CATEGORIES= net
MAINTAINER= cd@sentia.nl
HOMEPAGE= http://cr.yp.to/publicfile.html
MASTER_SITES= http://cr.yp.to/publicfile/ \
ftp://ftp.id.wustl.edu/pub/qmail/ \
ftp://ftp.jp.qmail.org/qmail/
LICENSE_TYPE= NONE
PERMIT_PACKAGE_CDROM= 'be conservative'
PERMIT_PACKAGE_FTP= 'be conservative'
PERMIT_DISTFILES_CDROM= 'be conservative'
PERMIT_DISTFILES_FTP= 'be conservative'
NO_CONFIGURE= yes
ALL_TARGET= default
INSTALL_TARGET= setup check
RUN_DEPENDS= supervise:${PORTSDIR}/sysutils/daemontools \
tcpserver:${PORTSDIR}/net/ucspi-tcp
pre-build:
@echo ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@echo ${PREFIX}/publicfile > ${WRKSRC}/conf-home
.include <bsd.port.mk>

3
net/publicfile/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (publicfile-0.52.tar.gz) = e493d69627b4fb2c7c764c0ff34330d7
RMD160 (publicfile-0.52.tar.gz) = 02d2bff245e9d474f26ac29a96775c8eeed0799c
SHA1 (publicfile-0.52.tar.gz) = 067e5a0c57bf8ac04c578cac47bd80c2d88eddeb

View File

@ -0,0 +1 @@
read-only anonymous FTP and HTTP server

36
net/publicfile/pkg/DESCR Normal file
View File

@ -0,0 +1,36 @@
publicfile supplies files to the public through HTTP and FTP.
Security features:
- Before accepting any commands, publicfile chroot()s to the public file
area and sheds root privileges.
- publicfile doesn't let users log in. Intruders can't use publicfile to
check your usernames and passwords.
- publicfile refuses to supply files that are unreadable to owner, unreadable
to group, or unreadable to world.
- publicfile never attempts to modify the public file area. It refuses all
HTTP and FTP modification commands.
- publicfile never runs any other programs. It does not support HTTP CGI or
FTP SITE EXEC.
- publicfile avoids bug-prone libraries such as stdio.
- The publicfile FTP server uses local ports above 1024 for PORT connections.
- The publicfile FTP server prohibits remote ports below 1024 for PORT.
- The publicfile FTP server prohibits PORT relaying.
- The publicfile FTP server includes automatic PASV IP protection.
HTTP features:
- publicfile supports virtual hosts through the Host field.
- publicfile supports virtual hosts through absolute URLs.
- publicfile supports HTTP/1.1 persistent connections.
- publicfile supports HTTP/1.1 chunked responses.
- publicfile supports user-controlled content types.
- publicfile supports exact-prefix If-Modified-Since.
FTP features:
- publicfile has built-in LIST and NLST commands. You don't have to bother
setting up bin/ls, shared libraries, et al. inside the public file area.
- publicfile provides EPLF LIST responses, including options "i", "s", and "m".
- publicfile supports restarted transfers.
- publicfile supports pipelining.

View File

@ -0,0 +1 @@
Help on configuration: http://cr.yp.to/publicfile/install.html

5
net/publicfile/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
publicfile/bin/configure
publicfile/bin/ftpd
publicfile/bin/httpd
@dirrm publicfile/bin
@dirrm publicfile