Gentoo Archives: gentoo-commits

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