head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.22 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.20 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.18 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.16 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.14 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.12 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.10 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.8 pkgsrc-2024Q2-base:1.1 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-aa,v 1.5 2011/11/01 21:08:55 scottr Exp $ Let pkgsrc machinery take care of config files --- viewvc-install.orig 2023-01-04 14:48:34.000000000 +0000 +++ viewvc-install @@@@ -56,12 +56,6 @@@@ FILE_INFO_LIST = [ ("bin/cvsdbadmin", "bin/cvsdbadmin", 0755, 1, 0, 0), ("bin/svndbadmin", "bin/svndbadmin", 0755, 1, 0, 0), ("bin/make-database", "bin/make-database", 0755, 1, 0, 0), - ("conf/viewvc.conf.dist", "viewvc.conf.dist", 0644, 0, 0, 0), - ("conf/viewvc.conf.dist", "viewvc.conf", 0644, 0, 1, 0), - ("conf/cvsgraph.conf.dist", "cvsgraph.conf.dist", 0644, 0, 0, 0), - ("conf/cvsgraph.conf.dist", "cvsgraph.conf", 0644, 0, 1, 0), - ("conf/mimetypes.conf.dist", "mimetypes.conf.dist", 0644, 0, 0, 0), - ("conf/mimetypes.conf.dist", "mimetypes.conf", 0644, 0, 1, 0), ] if sys.platform == "win32": FILE_INFO_LIST.extend([ @@@@ -128,7 +122,7 @@@@ def replace_paths(contents): shbang = '#!' + sys.executable contents = re.sub('^#![^\n]*', _escape(shbang), contents) contents = replace_var(contents, 'LIBRARY_DIR', 'lib') - contents = replace_var(contents, 'CONF_PATHNAME', 'viewvc.conf') + contents = replace_var(contents, 'CONF_PATHNAME', '@@PKG_SYSCONFDIR@@/viewvc.conf') return contents @