[PATCH] Install example repo.postsync.d script into sharedir

Daniel Cordero <[email protected]> Thu, 4 Nov 2021 09:50:02 +0000
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
The sysconfdir is for host specific configuration files, and this
example script makes no host specific change (it is not enabled by
default).

Install the script under portage's sharedir, from where administrators
can copy it into sysconfdir, if needed.

Signed-off-by: Daniel Cordero <[email protected]>
---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 549fff650..fe0265c64 100755
--- a/setup.py
+++ b/setup.py
@@ -833,12 +833,12 @@ setup(
             ["$portage_setsdir", ["cnf/sets/portage.conf"]],
             ["$docdir", ["NEWS", "RELEASE-NOTES"]],
             ["$portage_base/bin", ["bin/deprecated-path"]],
-            ["$sysconfdir/portage/repo.postsync.d", ["cnf/repo.postsync.d/example"]],
+            ["$portage_confdir/repo.postsync.d", ["cnf/repo.postsync.d/example"]],
         ],
         [
             ("etc", "cnf", ("etc-update.conf", "dispatch-conf.conf")),
             ("etc/logrotate.d", "cnf/logrotate.d", ("elog-save-summary",)),
-            ("etc/portage/repo.postsync.d", "cnf/repo.postsync.d", ("example",)),
+            ("share/portage/config/repo.postsync.d", "cnf/repo.postsync.d", ("example",)),
             (
                 "share/portage/config",
                 "cnf",
-- 
2.32.0