1 |
rich0 11/10/02 11:17:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cfg-update-1.8.4.ebuild |
5 |
Log: |
6 |
Patches merged upstream, beediff support added, default editor changed. |
7 |
|
8 |
(Portage version: 2.1.10.11/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.27 app-portage/cfg-update/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?rev=1.27&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?rev=1.27&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?r1=1.26&r2=1.27 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v |
20 |
retrieving revision 1.26 |
21 |
retrieving revision 1.27 |
22 |
diff -u -r1.26 -r1.27 |
23 |
--- ChangeLog 2 Oct 2011 10:52:50 -0000 1.26 |
24 |
+++ ChangeLog 2 Oct 2011 11:17:06 -0000 1.27 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-portage/cfg-update |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v 1.26 2011/10/02 10:52:50 rich0 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v 1.27 2011/10/02 11:17:06 rich0 Exp $ |
30 |
+ |
31 |
+*cfg-update-1.8.4 (02 Oct 2011) |
32 |
+ |
33 |
+ 02 Oct 2011; Richard Freeman <rich0@g.o> +cfg-update-1.8.4.ebuild: |
34 |
+ Patches merged upstream, beediff support added, default editor changed. |
35 |
|
36 |
02 Oct 2011; Richard Freeman <rich0@g.o> metadata.xml: |
37 |
Taking ownership of package. |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-portage/cfg-update/cfg-update-1.8.4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/cfg-update-1.8.4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/cfg-update-1.8.4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cfg-update-1.8.4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-portage/cfg-update/cfg-update-1.8.4.ebuild,v 1.1 2011/10/02 11:17:06 rich0 Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils |
54 |
|
55 |
DESCRIPTION="Easy to use GUI & CLI alternative for etc-update with safe automatic updating functionality" |
56 |
HOMEPAGE="https://github.com/rich0/cfg-update" |
57 |
SRC_URI="https://github.com/rich0/cfg-update/tarball/${PV} -> ${P}.tgz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" |
62 |
IUSE="X" |
63 |
|
64 |
RDEPEND="X? ( >=x11-misc/sux-1.0 |
65 |
x11-apps/xhost )" |
66 |
|
67 |
S="${WORKDIR}/rich0-cfg-update-dced21c" |
68 |
|
69 |
src_unpack() { |
70 |
unpack ${A} |
71 |
cd "${S}" |
72 |
} |
73 |
|
74 |
pkg_prerm() { |
75 |
if [[ ${ROOT} == / ]] |
76 |
then |
77 |
ebegin "Disabling portage hook" |
78 |
cfg-update --ebuild --disable-portage-hook |
79 |
eend $? |
80 |
ebegin "Disabling paludis hook" |
81 |
cfg-update --ebuild --disable-paludis-hook |
82 |
eend $? |
83 |
fi |
84 |
} |
85 |
|
86 |
pkg_postrm() { |
87 |
ewarn |
88 |
ewarn "If you want to permanently remove cfg-update from your system" |
89 |
ewarn "you should manually remove the alias for emerge from /root/.bashrc" |
90 |
ewarn "followed by running: unalias emerge" |
91 |
ewarn "and remove the index file /var/lib/cfg-update/checksum.index" |
92 |
ewarn |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
exeinto /usr/bin |
97 |
doexe cfg-update emerge_with_indexing_for_cfg-update emerge_with_indexing_for_cfg-update_phphelper cfg-update_phphelper emerge_with_indexing_for_cfg-update_bashhelper |
98 |
insinto /usr/lib/cfg-update |
99 |
doins cfg-update cfg-update_indexing .bashrc test.tgz |
100 |
dodoc ChangeLog |
101 |
doman *.8 |
102 |
insinto /etc |
103 |
doins cfg-update.conf |
104 |
doins cfg-update.hosts |
105 |
keepdir /var/lib/cfg-update |
106 |
} |
107 |
|
108 |
pkg_postinst() { |
109 |
if [[ ! -e "${ROOT}"/var/lib/cfg-update/checksum.index \ |
110 |
&& -e "${ROOT}"/var/lib/cfg-update/checksum.index ]] |
111 |
then |
112 |
ebegin "Moving checksum.index from /usr/lib/cfg-update to /var/lib/cfg-update" |
113 |
mv "${ROOT}"/usr/lib/cfg-update/checksum.index \ |
114 |
"${ROOT}"/var/lib/cfg-update/checksum.index |
115 |
eend $? |
116 |
fi |
117 |
|
118 |
if [[ -e "${ROOT}"/usr/bin/paludis ]] |
119 |
then |
120 |
ewarn |
121 |
ewarn "If you have used Paludis version <0.20.0 on your system, chances are" |
122 |
ewarn "that you have some corrupted CONTENTS files on your system..." |
123 |
ewarn |
124 |
ewarn "Please run: cfg-update --check-packages" |
125 |
ewarn |
126 |
ewarn "The above command will check all packages installed with Paludis and" |
127 |
ewarn "will output a list of packages that need to be re-installed with" |
128 |
ewarn "Paludis 0.20.0 or higher. If you do not re-install these packages" |
129 |
ewarn "you risk losing your custom settings when updating configuration" |
130 |
ewarn "files, that belong to these packages, with cfg-update!" |
131 |
ewarn |
132 |
fi |
133 |
|
134 |
if [[ ${ROOT} == / ]] |
135 |
then |
136 |
ebegin "Moving backups to /var/lib/cfg-update/backups" |
137 |
/usr/bin/cfg-update --ebuild --move-backups |
138 |
eend $? |
139 |
fi |
140 |
|
141 |
einfo |
142 |
einfo "If this is a first time install, please check the configuration" |
143 |
einfo "in /etc/cfg-update.conf before using cfg-update:" |
144 |
einfo |
145 |
einfo "If your system does not have an X-server installed you need to" |
146 |
einfo "change the MERGE_TOOL to sdiff, imediff2 or vimdiff." |
147 |
einfo "If you have X installed, set MERGE_TOOL to your favorite GUI tool:" |
148 |
einfo "xxdiff, beediff, kdiff3, meld (default), gtkdiff, gvimdiff, tkdiff" |
149 |
einfo |
150 |
einfo "TIP: to maximize the chances of future automatic updates, run:" |
151 |
einfo "cfg-update --optimize-backups" |
152 |
einfo |
153 |
} |