1 |
commit: 58ade081f7b2d8b1c957be7c6e3d87c0e83360d4 |
2 |
Author: Richard Freeman <rich0 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 2 18:35:52 2021 +0000 |
4 |
Commit: Richard Freeman <rich0 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 2 18:42:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58ade081 |
7 |
|
8 |
app-portage/cfg-update: EAPI bump and set ALLARCHES |
9 |
|
10 |
Closes: https://bugs.gentoo.org/819753 |
11 |
|
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Signed-off-by: Richard Freeman <rich0 <AT> gentoo.org> |
14 |
|
15 |
app-portage/cfg-update/cfg-update-1.8.9-r1.ebuild | 102 ++++++++++++++++++++++ |
16 |
app-portage/cfg-update/metadata.xml | 1 + |
17 |
2 files changed, 103 insertions(+) |
18 |
|
19 |
diff --git a/app-portage/cfg-update/cfg-update-1.8.9-r1.ebuild b/app-portage/cfg-update/cfg-update-1.8.9-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..0fae01aee1f |
22 |
--- /dev/null |
23 |
+++ b/app-portage/cfg-update/cfg-update-1.8.9-r1.ebuild |
24 |
@@ -0,0 +1,102 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=8 |
29 |
+ |
30 |
+DESCRIPTION="Easy to use GUI & CLI alternative for etc-update" |
31 |
+HOMEPAGE="https://github.com/rich0/cfg-update" |
32 |
+SRC_URI="https://github.com/rich0/cfg-update/archive/${PV}.tar.gz -> ${P}.tgz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
37 |
+IUSE="X" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ dev-perl/TermReadKey |
41 |
+ X? ( |
42 |
+ >=x11-misc/sux-1.0 |
43 |
+ x11-apps/xhost |
44 |
+ )" |
45 |
+ |
46 |
+S="${WORKDIR}/rich0-cfg-update-2f10786" |
47 |
+ |
48 |
+pkg_prerm() { |
49 |
+ if [[ ${ROOT} == / ]] |
50 |
+ then |
51 |
+ ebegin "Disabling portage hook" |
52 |
+ cfg-update --ebuild --disable-portage-hook |
53 |
+ eend $? |
54 |
+ ebegin "Disabling paludis hook" |
55 |
+ cfg-update --ebuild --disable-paludis-hook |
56 |
+ eend $? |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+pkg_postrm() { |
61 |
+ echo |
62 |
+ ewarn "If you want to permanently remove cfg-update from your system" |
63 |
+ ewarn "you should remove the index file /var/lib/cfg-update/checksum.index" |
64 |
+ echo |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ dobin \ |
69 |
+ cfg-update emerge_with_indexing_for_cfg-update \ |
70 |
+ emerge_with_indexing_for_cfg-update_phphelper \ |
71 |
+ cfg-update_phphelper emerge_with_indexing_for_cfg-update_bashhelper |
72 |
+ insinto /usr/lib/cfg-update |
73 |
+ doins cfg-update cfg-update_indexing test.tgz |
74 |
+ dodoc ChangeLog |
75 |
+ doman *.8 |
76 |
+ insinto /etc |
77 |
+ doins cfg-update.conf cfg-update.hosts |
78 |
+ keepdir /var/lib/cfg-update |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ if [[ ! -e "${ROOT}"/var/lib/cfg-update/checksum.index \ |
83 |
+ && -e "${ROOT}"/var/lib/cfg-update/checksum.index ]] |
84 |
+ then |
85 |
+ ebegin "Moving checksum.index from /usr/lib/cfg-update to /var/lib/cfg-update" |
86 |
+ mv "${ROOT}"/usr/lib/cfg-update/checksum.index \ |
87 |
+ "${ROOT}"/var/lib/cfg-update/checksum.index |
88 |
+ eend $? |
89 |
+ fi |
90 |
+ |
91 |
+ if [[ -e "${ROOT}"/usr/bin/paludis ]] |
92 |
+ then |
93 |
+ echo |
94 |
+ ewarn "If you have used Paludis version <0.20.0 on your system, chances are" |
95 |
+ ewarn "that you have some corrupted CONTENTS files on your system..." |
96 |
+ echo |
97 |
+ ewarn "Please run: cfg-update --check-packages" |
98 |
+ echo |
99 |
+ ewarn "The above command will check all packages installed with Paludis and" |
100 |
+ ewarn "will output a list of packages that need to be re-installed with" |
101 |
+ ewarn "Paludis 0.20.0 or higher. If you do not re-install these packages" |
102 |
+ ewarn "you risk losing your custom settings when updating configuration" |
103 |
+ ewarn "files, that belong to these packages, with cfg-update!" |
104 |
+ echo |
105 |
+ fi |
106 |
+ |
107 |
+ if [[ ${ROOT} == / ]] |
108 |
+ then |
109 |
+ ebegin "Moving backups to /var/lib/cfg-update/backups" |
110 |
+ /usr/bin/cfg-update --ebuild --move-backups |
111 |
+ eend $? |
112 |
+ fi |
113 |
+ |
114 |
+ echo |
115 |
+ einfo "If this is a first time install, please check the configuration" |
116 |
+ einfo "in /etc/cfg-update.conf before using cfg-update:" |
117 |
+ echo |
118 |
+ einfo "If your system does not have an X-server installed you need to" |
119 |
+ einfo "change the MERGE_TOOL to sdiff, imediff2 or vimdiff." |
120 |
+ einfo "If you have X installed, set MERGE_TOOL to your favorite GUI tool:" |
121 |
+ einfo "xxdiff, beediff, kdiff3, meld (default), gtkdiff, gvimdiff, tkdiff" |
122 |
+ echo |
123 |
+ einfo "TIP: to maximize the chances of future automatic updates, run:" |
124 |
+ einfo "cfg-update --optimize-backups" |
125 |
+ echo |
126 |
+} |
127 |
|
128 |
diff --git a/app-portage/cfg-update/metadata.xml b/app-portage/cfg-update/metadata.xml |
129 |
index 7ab5e1a53dd..7e1aa3ceff2 100644 |
130 |
--- a/app-portage/cfg-update/metadata.xml |
131 |
+++ b/app-portage/cfg-update/metadata.xml |
132 |
@@ -7,4 +7,5 @@ |
133 |
<upstream> |
134 |
<remote-id type="github">rich0/cfg-update</remote-id> |
135 |
</upstream> |
136 |
+ <stabilize-allarches/> |
137 |
</pkgmetadata> |