head 1.1; access; symbols pkgsrc-2024Q1:1.1.0.6 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.4 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2023.08.18.22.20.49; author hauke; state Exp; branches; next ; commitid bfnjkzZ3HKa4OjBE; desc @@ 1.1 log @Rework the www/viewvc package some: Put the preferences under PKG_SYSCONFDIR Pre-set pkgsrc-dependend viewvc.conf entries Lose the MESSAGE, it was pointless Install the docs @ text @$NetBSD: patch-ab,v 1.5 2023/08/17 21:26:49 hauke Exp $ Make paths adaptable for pkgsrc installation. --- conf/viewvc.conf.dist.orig 2023-01-04 14:48:34.000000000 +0000 +++ conf/viewvc.conf.dist @@@@ -218,7 +218,8 @@@@ ## /etc/mime.types, ## /usr/local/apache2/conf/mime.types ## -#mime_types_files = mimetypes.conf +#mime_types_files = @@PKG_SYSCONFDIR@@/mimetypes.conf, +# @@PKG_SYSCONFBASE@@/httpd/mime.types ## address: The address of the local repository maintainer. (This ## option is provided only as a convenience for ViewVC installations @@@@ -312,7 +313,7 @@@@ ## Example: ## rcs_dir = /usr/bin/ ## -#rcs_dir = +rcs_dir = @@RCSPATH@@/ ## cvsnt: Location of cvsnt program. ViewVC can use CVSNT (www.cvsnt.org) ## instead of the RCS utilities to retrieve information from CVS @@@@ -334,7 +335,7 @@@@ ## Example: ## diff = /usr/bin/diff ## -#diff = +diff = @@DIFF@@ ## cvsgraph: Location of the CvsGraph program, a graphical CVS version ## graph generator (see options.use_cvsgraph). @@@@ -342,7 +343,7 @@@@ ## Example: ## cvsgraph = /usr/local/bin/cvsgraph ## -#cvsgraph = +cvsgraph = @@PREFIX@@/bin/cvsgraph ##--------------------------------------------------------------------------- @@@@ -662,7 +663,7 @@@@ ## template_dir = templates/default ## template_dir = /opt/custom-viewvc-templates/templates # -#template_dir = templates/default +template_dir = @@PREFIX@@/@@VIEWVCDIR@@/templates/default ## docroot: Web path to a directory that contains ViewVC static files ## (stylesheets, images, etc.) If set, static files will get @@@@ -753,13 +754,13 @@@@ ## use_cvsgraph: Use CvsGraph to offer visual graphs of CVS revision history. ## -#use_cvsgraph = 0 +use_cvsgraph = @@CVSGRAPH_OPT@@ ## cvsgraph_conf: Location of the customized cvsgraph configuration file. ## May be specified as an absolute path or as a path relative to this ## configuration file. ## -#cvsgraph_conf = cvsgraph.conf +cvsgraph_conf = @@PKG_SYSCONFDIR@@/cvsgraph.conf ## allowed_cvsgraph_useropts: A list of settings used for cvsgraph's ## user-modifiable behavior which can be changed in the graph display. @