$NetBSD: patch-viewvc-install,v 1.2 2026/10/21 16:00:17 hauke Exp $

Let pkgsrc machinery take care of config files 

--- viewvc-install.orig	2026-10-21 15:38:54.232041894 +0000
+++ viewvc-install
@@ -67,12 +67,6 @@ FILE_INFO_LIST = [
     ("bin/db/schema_0.sql", "bin/db/schema_0.sql", 0o0644, 1, 0, 0),
     ("bin/db/schema_1.sql", "bin/db/schema_1.sql", 0o0644, 1, 0, 0),
     ("bin/db/schema_2.sql", "bin/db/schema_2.sql", 0o0644, 1, 0, 0),
-    ("conf/viewvc.conf.dist", "viewvc.conf.dist", 0o0644, 0, 0, 0),
-    ("conf/viewvc.conf.dist", "viewvc.conf", 0o0644, 0, 1, 0),
-    ("conf/cvsgraph.conf.dist", "cvsgraph.conf.dist", 0o0644, 0, 0, 0),
-    ("conf/cvsgraph.conf.dist", "cvsgraph.conf", 0o0644, 0, 1, 0),
-    ("conf/mimetypes.conf.dist", "mimetypes.conf.dist", 0o0644, 0, 0, 0),
-    ("conf/mimetypes.conf.dist", "mimetypes.conf", 0o0644, 0, 1, 0),
 ]
 
 
@@ -140,7 +134,7 @@ def replace_paths(contents):
         shbang = b"#!" + sys.executable.encode("utf-8", "surrogateescape")
         contents = re.sub(b"^#![^\n]*", _escape(shbang), contents)
     contents = replace_var(contents, b"LIBRARY_DIR", b"lib")
-    contents = replace_var(contents, b"CONF_PATHNAME", b"viewvc.conf")
+    contents = replace_var(contents, b"CONF_PATHNAME", b"@PKG_SYSCONFDIR@/viewvc.conf")
     return contents
 
 
