mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
www/dhttpd: Remove expired port
2023-09-30 www/dhttpd: Abandonware, last release in 15+ years ago. Consider using www/darkhttpd, www/obhttpd or www/miniserve
This commit is contained in:
parent
7d27281697
commit
2e0a45af30
1
MOVED
1
MOVED
@ -7914,3 +7914,4 @@ sysutils/bareos19-server|sysutils/bareos20-server|2023-09-30|Has expired: Upstre
|
||||
textproc/popup||2023-09-30|Has expired: Abandonware, last release in 2004 and dead upstream
|
||||
textproc/yamcha||2023-09-30|Has expired: Last upstream release was in 2005
|
||||
japanese/awffull||2023-09-30|Has expired: Abandonware, last release in 14+ years ago. Consider using www/awstats
|
||||
www/dhttpd||2023-09-30|Has expired: Abandonware, last release in 15+ years ago. Consider using www/darkhttpd, www/obhttpd or www/miniserve
|
||||
|
@ -136,7 +136,6 @@
|
||||
SUBDIR += deno
|
||||
SUBDIR += devd
|
||||
SUBDIR += dfileserver
|
||||
SUBDIR += dhttpd
|
||||
SUBDIR += dillo2
|
||||
SUBDIR += dojo
|
||||
SUBDIR += dokuwiki
|
||||
|
@ -1,41 +0,0 @@
|
||||
PORTNAME= dhttpd
|
||||
PORTVERSION= 1.02a
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://bsd-geek.de/FreeBSD/distfiles/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Minimal secure web server. Fast and efficient, no cgi-bin support
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
DEPRECATED= Abandonware, last release in 15+ years ago. Consider using www/darkhttpd, www/obhttpd or www/miniserve
|
||||
EXPIRATION_DATE=2023-09-30
|
||||
|
||||
USES= cpe
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-1.02-4
|
||||
BUILD_WRKSRC= ${WRKSRC}/src
|
||||
|
||||
PLIST_FILES= sbin/dhttpd man/man1/dhttpd.1.gz
|
||||
|
||||
USE_RC_SUBR= dhttpd
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "=============================================================="
|
||||
@${ECHO_MSG} "To change the default document root"
|
||||
@${ECHO_MSG} "${PREFIX}/www/data edit"
|
||||
@${ECHO_MSG} "${FILESDIR}/patch-config.hh"
|
||||
@${ECHO_MSG} "for your needs and re-compile dhhtpd."
|
||||
@${ECHO_MSG} "=============================================================="
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/src/config.hh \
|
||||
${WRKSRC}/dhttpd.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (dhttpd-1.02a.tgz) = 79b6a413b41d6bf91b0b0db5f5129368ce80a85dded703f06571b48c29f7fd91
|
||||
SIZE (dhttpd-1.02a.tgz) = 26041
|
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: dhttpd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable dhttpd:
|
||||
#
|
||||
# dhttpd_enable (bool): Set it to "YES" to enable dhttpd
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="dhttpd"
|
||||
desc="Secure and efficient personal HTTP server"
|
||||
rcvar=dhttpd_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${dhttpd_enable="NO"}
|
||||
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
|
||||
run_rc_command "$1"
|
@ -1,28 +0,0 @@
|
||||
--- src/Makefile.orig Mon Mar 3 16:35:53 1997
|
||||
+++ src/Makefile Sun Oct 20 17:42:06 2002
|
||||
@@ -1,22 +1,21 @@
|
||||
# if compiling for SunOS, you need to add -lsocket to the LIBS variable
|
||||
|
||||
SH = /bin/sh
|
||||
-CC = gcc
|
||||
+CXX ?= c++
|
||||
MAKEFILE= Makefile
|
||||
-CFLAGS = -O2 --pipe
|
||||
LIBS =
|
||||
|
||||
OBJECTS = main.o socket.o httpsock.o
|
||||
|
||||
.cc.o:
|
||||
- $(CC) $(CFLAGS) -c -o $*.o $<
|
||||
+ $(CXX) $(CXXFLAGS) -c -o $*.o $<
|
||||
|
||||
all: compile dhttpd
|
||||
|
||||
compile: $(OBJECTS)
|
||||
|
||||
dhttpd: $(OBJECTS)
|
||||
- $(CC) -o dhttpd $(OBJECTS) $(LIBS)
|
||||
+ $(CXX) -o dhttpd $(OBJECTS) $(LIBS)
|
||||
strip dhttpd
|
||||
|
||||
clean:
|
@ -1,24 +0,0 @@
|
||||
--- src/config.hh.orig Mon Jun 24 15:21:37 2002
|
||||
+++ src/config.hh Mon Jun 24 15:23:14 2002
|
||||
@@ -1,17 +1,17 @@
|
||||
/* Set this as the user id number you want dhttpd to use when *
|
||||
* starting it as root. You can get this info from /etc/passwd. */
|
||||
-#define UID 65534
|
||||
+#define UID 80
|
||||
|
||||
/* Set this to the proper group id number of UID above. */
|
||||
-#define GID 65534
|
||||
+#define GID 80
|
||||
|
||||
/* Set your default port number. If you aren't running as *
|
||||
* root, you must use a value >= 1024, such as 8080. */
|
||||
#define DEFAULTPORT 80
|
||||
|
||||
/* This is the directory where the web pages are located. */
|
||||
-#define WEBDIRPREFIX "/var/www"
|
||||
+#define WEBDIRPREFIX "%%PREFIX%%/www/data"
|
||||
|
||||
/* This defines the maximum number of child processes (i.e. *
|
||||
* maximum sockets being serviced by dhttpd). */
|
||||
-#define MAXCHILDPROC 100
|
||||
+#define MAXCHILDPROC 2048
|
@ -1,15 +0,0 @@
|
||||
--- dhttpd.1.orig Tue Mar 4 01:35:54 1997
|
||||
+++ dhttpd.1 Sat Jun 9 12:42:17 2007
|
||||
@@ -13,6 +13,12 @@
|
||||
and it was in working condition, it was realized that it was memory
|
||||
efficient, low profile, quick, and served the one need for
|
||||
an HTTP daemon: to transmit files.
|
||||
+
|
||||
+The document root is /usr/local/www/data.
|
||||
+
|
||||
+To enable dhttp, add 'dhttpd_enable="YES"' to /etc/rc.conf.
|
||||
+If you want to change the default port from 80 to another port, add
|
||||
+\'dhhtdp_flags="- p <PORT>"\' to /etc/rc.conf.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-h
|
@ -1,14 +0,0 @@
|
||||
--- src/main.cc.orig Mon Mar 3 17:10:41 1997
|
||||
+++ src/main.cc Sun Oct 20 17:41:25 2002
|
||||
@@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
-#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
@ -1,27 +0,0 @@
|
||||
--- src/socket.cc.orig Mon Jun 24 15:12:40 2002
|
||||
+++ src/socket.cc Mon Jun 24 15:13:03 2002
|
||||
@@ -17,6 +17,7 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
@@ -24,7 +25,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
-#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
@@ -149,7 +149,7 @@
|
||||
do
|
||||
{
|
||||
cSidLen = sizeof( cSid );
|
||||
- s = accept( sock, &cSid, &cSidLen );
|
||||
+ s = accept( sock, &cSid, (socklen_t *) &cSidLen );
|
||||
}
|
||||
while( s==-1 );
|
||||
|
@ -1,5 +0,0 @@
|
||||
dhttpd is a secure and efficient personal HTTP server. It does not need a
|
||||
permanent IP address and can be run from a user account on high ports. Among
|
||||
its features, dhttpd supports caching, customized error messages, low profile
|
||||
memory usage, little hard disk space, highly portable code, and easy setup.
|
||||
dhttpd is the perfect solution for the minimalist in all of us.
|
Loading…
Reference in New Issue
Block a user