git: a576a40bf19f - main - www/sws: Revive the port

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 18:58:17 UTC
The branch main has been updated by garga:

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

commit a576a40bf19fd89d18dbbb180eb3629dc8bc6b9c
Author:     Renato Botelho <garga@FreeBSD.org>
AuthorDate: 2023-11-29 18:55:20 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2023-11-29 18:58:13 +0000

    www/sws: Revive the port
    
    It was removed from the tree because sources were not fetchable.
    Author (and also maintainer) restored source files and asked port to be
    re-added to the tree
    PR:             254688
    Requested by:   Brett Wynkoop <wynkoop@wynn.com> (maintainer)
---
 MOVED                        |  1 -
 www/Makefile                 |  1 +
 www/sws/Makefile             | 14 ++++++++++++++
 www/sws/distinfo             |  3 +++
 www/sws/files/patch-Makefile |  9 +++++++++
 www/sws/pkg-descr            | 10 ++++++++++
 www/sws/pkg-plist            |  4 ++++
 7 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 0177e774cd74..5fa666a37dd8 100644
--- a/MOVED
+++ b/MOVED
@@ -4409,7 +4409,6 @@ www/redmine-sidebar_hide||2020-05-05|Has expired: Broken for more than 6 months
 www/rssowl||2020-05-05|Has expired: Broken for more than 6 months
 www/skytemplate||2020-05-05|Has expired: Broken for more than 6 months
 www/surfraw||2020-05-05|Has expired: Broken for more than 6 months
-www/sws||2020-05-05|Has expired: Broken for more than 6 months
 www/tickr||2020-05-05|Has expired: Broken for more than 6 months
 www/tinytinyhttpd||2020-05-05|Has expired: Broken for more than 6 months
 www/udmsearch||2020-05-05|Has expired: Broken for more than 6 months
diff --git a/www/Makefile b/www/Makefile
index 2c9029fbfad4..1a0c69dc9857 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2346,6 +2346,7 @@
     SUBDIR += suphp
     SUBDIR += surf
     SUBDIR += swiggle
+    SUBDIR += sws
     SUBDIR += tcexam
     SUBDIR += tclhttpd
     SUBDIR += tclwebtest
diff --git a/www/sws/Makefile b/www/sws/Makefile
new file mode 100644
index 000000000000..740e9af68558
--- /dev/null
+++ b/www/sws/Makefile
@@ -0,0 +1,14 @@
+PORTNAME=	sws
+PORTVERSION=	1.0
+CATEGORIES=	www
+MASTER_SITES=	http://prd4.wynn.com:8080/src/
+
+MAINTAINER=	wynkoop@wynn.com
+COMMENT=	Simple, safe, secure, web server written in /bin/sh
+WWW=		http://prd4.wynn.com:8080/
+
+LICENSE=	BSD2CLAUSE
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/sws/distinfo b/www/sws/distinfo
new file mode 100644
index 000000000000..743761e11b6f
--- /dev/null
+++ b/www/sws/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701284279
+SHA256 (sws-1.0.tar.gz) = 73f6decf47c32d65752efc24acec62fb50556bb005a9f378738c26f61a4081c3
+SIZE (sws-1.0.tar.gz) = 4886
diff --git a/www/sws/files/patch-Makefile b/www/sws/files/patch-Makefile
new file mode 100644
index 000000000000..fe1a7de880ef
--- /dev/null
+++ b/www/sws/files/patch-Makefile
@@ -0,0 +1,9 @@
+--- Makefile.orig	2015-02-15 23:56:31 UTC
++++ Makefile
+@@ -16,6 +16,3 @@ install:
+ 	cp sws.8.txt  ${DST}/man/man8/sws.8
+ 	chmod 755 ${DST}/bin/sws
+ 	chmod 644 ${DST}/man/man8/sws.8
+-	chown root:wheel  ${DST}/bin/sws ${DST}/man/man8/sws.8
+-	chown www:www  ${DST}/sws/docs 
+-	chown www:www  ${DST}/etc/sws.cfg
diff --git a/www/sws/pkg-descr b/www/sws/pkg-descr
new file mode 100644
index 000000000000..60ebd87ccb00
--- /dev/null
+++ b/www/sws/pkg-descr
@@ -0,0 +1,10 @@
+[simple | small | shell] web server
+
+sws was born out of a project requirement for a small universal Web server
+that could run on any POSIX platform to serve static content. Since it is
+written in /bin/sh it should run on any BSD/GNU-Linux/Unix system. It has
+been tested on FreeBSD, Solaris, and Debian GNU/Linux. Installation consists
+of putting the program somewhere, making it executable, creating the
+document directory, and creating an entry in inetd.conf. sws requires
+/bin/sh, dirname, cat, and date to function. These should be found on any
+modern POSIX system.
diff --git a/www/sws/pkg-plist b/www/sws/pkg-plist
new file mode 100644
index 000000000000..8beaa3bddcf8
--- /dev/null
+++ b/www/sws/pkg-plist
@@ -0,0 +1,4 @@
+bin/sws
+%%ETCDIR%%.cfg
+man/man8/sws.8.gz
+@dir sws/docs