Hi,

currently you can't view the example file for wwwoffle as user.

Here is a patch that does two things:
- allows everyone to read the example wwwoffle.conf
- grants root rw access for consistency with other configuration files/examples.

Before the patch:
-r--r-----  1 root  bin   ... /usr/local/share/examples/wwwoffle/wwwoffle.conf
-r--r-----  1 root  wheel ... /etc/wwwoffle/wwwoffle.conf

After the patch:
-rw-r--r--  1 root  bin   ... /usr/local/share/examples/wwwoffle/wwwoffle.conf
-rw-r-----  1 root  wheel ... /etc/wwwoffle/wwwoffle.conf

OK?

Index: www/wwwoffle/Makefile
===================================================================
RCS file: /cvs/ports/www/wwwoffle/Makefile,v
diff -u -p -u -p -r1.27 Makefile
--- www/wwwoffle/Makefile       27 Sep 2023 19:13:07 -0000      1.27
+++ www/wwwoffle/Makefile       18 Nov 2023 07:58:04 -0000
@@ -2,7 +2,7 @@ COMMENT=                WWW OFFLine Explorer
 
 DISTNAME=              wwwoffle-2.9j
 CATEGORIES=            www
-REVISION=              0
+REVISION=              1
 
 HOMEPAGE=              http://www.gedanken.org.uk/software/wwwoffle/
 
Index: www/wwwoffle/pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/wwwoffle/pkg/PLIST,v
diff -u -p -u -p -r1.11 PLIST
--- www/wwwoffle/pkg/PLIST      8 Nov 2022 11:17:22 -0000       1.11
+++ www/wwwoffle/pkg/PLIST      18 Nov 2023 07:58:04 -0000
@@ -72,9 +72,9 @@ share/doc/wwwoffle/pl/README.lang
 share/doc/wwwoffle/ru/
 share/examples/wwwoffle/
 @sample ${SYSCONFDIR}/wwwoffle/
-@mode 440
-@owner root
 share/examples/wwwoffle/wwwoffle.conf
+@mode 640
+@owner root
 @sample ${SYSCONFDIR}/wwwoffle/wwwoffle.conf
 @mode
 @owner

Reply via email to