git: 2e0a45af304b - main - www/dhttpd: Remove expired port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 30 Sep 2023 02:24:36 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2e0a45af304b9b1153aa1ec55065a4d3c16dcc19

commit 2e0a45af304b9b1153aa1ec55065a4d3c16dcc19
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-30 01:20:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-30 02:22:58 +0000

    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
---
 MOVED                            |  1 +
 www/Makefile                     |  1 -
 www/dhttpd/Makefile              | 41 ----------------------------------------
 www/dhttpd/distinfo              |  2 --
 www/dhttpd/files/dhttpd.in       | 24 -----------------------
 www/dhttpd/files/patch-Makefile  | 28 ---------------------------
 www/dhttpd/files/patch-config.hh | 24 -----------------------
 www/dhttpd/files/patch-dhhtpd.1  | 15 ---------------
 www/dhttpd/files/patch-main.cc   | 14 --------------
 www/dhttpd/files/patch-socket.cc | 27 --------------------------
 www/dhttpd/pkg-descr             |  5 -----
 11 files changed, 1 insertion(+), 181 deletions(-)

diff --git a/MOVED b/MOVED
index 04eead5c1b90..87786aaec472 100644
--- a/MOVED
+++ b/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
diff --git a/www/Makefile b/www/Makefile
index b6cfc0e805e7..071a52ba74ea 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -136,7 +136,6 @@
     SUBDIR += deno
     SUBDIR += devd
     SUBDIR += dfileserver
-    SUBDIR += dhttpd
     SUBDIR += dillo2
     SUBDIR += dojo
     SUBDIR += dokuwiki
diff --git a/www/dhttpd/Makefile b/www/dhttpd/Makefile
deleted file mode 100644
index 384effa096f6..000000000000
--- a/www/dhttpd/Makefile
+++ /dev/null
@@ -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>
diff --git a/www/dhttpd/distinfo b/www/dhttpd/distinfo
deleted file mode 100644
index 43f52147e204..000000000000
--- a/www/dhttpd/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (dhttpd-1.02a.tgz) = 79b6a413b41d6bf91b0b0db5f5129368ce80a85dded703f06571b48c29f7fd91
-SIZE (dhttpd-1.02a.tgz) = 26041
diff --git a/www/dhttpd/files/dhttpd.in b/www/dhttpd/files/dhttpd.in
deleted file mode 100644
index 53273d576e5a..000000000000
--- a/www/dhttpd/files/dhttpd.in
+++ /dev/null
@@ -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"
diff --git a/www/dhttpd/files/patch-Makefile b/www/dhttpd/files/patch-Makefile
deleted file mode 100644
index 634845426973..000000000000
--- a/www/dhttpd/files/patch-Makefile
+++ /dev/null
@@ -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:
diff --git a/www/dhttpd/files/patch-config.hh b/www/dhttpd/files/patch-config.hh
deleted file mode 100644
index 231b5dfd208a..000000000000
--- a/www/dhttpd/files/patch-config.hh
+++ /dev/null
@@ -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
diff --git a/www/dhttpd/files/patch-dhhtpd.1 b/www/dhttpd/files/patch-dhhtpd.1
deleted file mode 100644
index f50e5dc804fc..000000000000
--- a/www/dhttpd/files/patch-dhhtpd.1
+++ /dev/null
@@ -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
diff --git a/www/dhttpd/files/patch-main.cc b/www/dhttpd/files/patch-main.cc
deleted file mode 100644
index 77b53a87a683..000000000000
--- a/www/dhttpd/files/patch-main.cc
+++ /dev/null
@@ -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>
diff --git a/www/dhttpd/files/patch-socket.cc b/www/dhttpd/files/patch-socket.cc
deleted file mode 100644
index d0cf933ff48b..000000000000
--- a/www/dhttpd/files/patch-socket.cc
+++ /dev/null
@@ -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 );
- 
diff --git a/www/dhttpd/pkg-descr b/www/dhttpd/pkg-descr
deleted file mode 100644
index 8e73bab23865..000000000000
--- a/www/dhttpd/pkg-descr
+++ /dev/null
@@ -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.