On [05/06/18] [06:19P], Thomas Frohwein wrote:
Hi,
cvsweb touts that: "You can run this README directly with sh(1)", but
/var/www/dev isn't present on systems by default.
This (admittedly trivial) diff adds dev to the mkdir command. Then passing the
README to sh(1) succeeds.
Interest in adding this?
Index: pkg/README
===================================================================
RCS file: /cvs/ports/devel/cvsweb/pkg/README,v
retrieving revision 1.14
diff -u -p -r1.14 README
--- pkg/README 1 Mar 2017 11:56:05 -0000 1.14
+++ pkg/README 5 Jun 2018 06:13:25 -0000
@@ -15,7 +15,7 @@
# First, create the basic directory structure:
cd /var/www
-mkdir -p tmp usr
+mkdir -p tmp usr dev
chown www:www tmp # needs to be writeable for the www user
cd /var/www/usr
while here, maybe worth it to add an httpd(8) example?
--
Sending from my toaster.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cvsweb/Makefile,v
retrieving revision 1.58
diff -u -p -r1.58 Makefile
--- Makefile 5 Jul 2018 03:47:34 -0000 1.58
+++ Makefile 8 Jul 2018 16:20:28 -0000
@@ -3,7 +3,7 @@
COMMENT= CGI script to browse CVS repository trees
DISTNAME= cvsweb-2.0.6
-REVISION= 24
+REVISION= 25
CATEGORIES= devel www
HOMEPAGE= http://www.freebsd.org/projects/cvsweb.html
Index: pkg/README
===================================================================
RCS file: /cvs/ports/devel/cvsweb/pkg/README,v
retrieving revision 1.15
diff -u -p -r1.15 README
--- pkg/README 5 Jul 2018 03:47:35 -0000 1.15
+++ pkg/README 8 Jul 2018 16:20:28 -0000
@@ -98,3 +98,28 @@ cp -p /usr/libdata/perl5/`arch -s`-openb
#
# $mime_types = '/var/www/conf/mime.types'; (default)
# $mime_types = '/conf/mime.types'; (chroot)
+
+# Example for cvsweb with httpd(8)
+# --------------------------------
+#
+# ---8<----------------------------------------------------------
+# server "domain.tld" {
+# listen on * port 80
+# #listen on egress tls port 443
+#
+# #tls {
+# #certificate "/etc/ssl/domain.tld_fullchain.pem"
+# #key "/etc/ssl/private/domain.tld_private.pem"
+# #}
+#
+# location "/cgi-bin/*" {
+# fastcgi
+# root "/"
+# }
+# }
+# ---8<----------------------------------------------------------
+# You also need to enable slowcgi
+#
+# # rcctl enable slowcgi
+# # rcctl start slowcgi
+#