Gentoo Archives: gentoo-portage-dev

From: Daniel Cordero <gentoo.portage@××××.io>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] Install example repo.postsync.d script into sharedir
Date: Thu, 04 Nov 2021 09:50:16
Message-Id: YYOsyjlU2wLXmDz7@pulsar.localdomain
1 The sysconfdir is for host specific configuration files, and this
2 example script makes no host specific change (it is not enabled by
3 default).
4
5 Install the script under portage's sharedir, from where administrators
6 can copy it into sysconfdir, if needed.
7
8 Signed-off-by: Daniel Cordero <gentoo.portage@××××.io>
9 ---
10 setup.py | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/setup.py b/setup.py
14 index 549fff650..fe0265c64 100755
15 --- a/setup.py
16 +++ b/setup.py
17 @@ -833,12 +833,12 @@ setup(
18 ["$portage_setsdir", ["cnf/sets/portage.conf"]],
19 ["$docdir", ["NEWS", "RELEASE-NOTES"]],
20 ["$portage_base/bin", ["bin/deprecated-path"]],
21 - ["$sysconfdir/portage/repo.postsync.d", ["cnf/repo.postsync.d/example"]],
22 + ["$portage_confdir/repo.postsync.d", ["cnf/repo.postsync.d/example"]],
23 ],
24 [
25 ("etc", "cnf", ("etc-update.conf", "dispatch-conf.conf")),
26 ("etc/logrotate.d", "cnf/logrotate.d", ("elog-save-summary",)),
27 - ("etc/portage/repo.postsync.d", "cnf/repo.postsync.d", ("example",)),
28 + ("share/portage/config/repo.postsync.d", "cnf/repo.postsync.d", ("example",)),
29 (
30 "share/portage/config",
31 "cnf",
32 --
33 2.32.0

Replies