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: ChangeLog cfg-update-1.8.9.ebuild
Date: Tue, 30 Sep 2014 20:57:21
Message-Id: 20140930205716.4D65569C8@oystercatcher.gentoo.org
1 rich0 14/09/30 20:57:16
2
3 Modified: ChangeLog
4 Added: cfg-update-1.8.9.ebuild
5 Log:
6 Shellshock fix - 524092 - thanks to Christer Ekholm for patch.
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x08C170DE55EC123A)
9
10 Revision Changes Path
11 1.38 app-portage/cfg-update/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 26 Apr 2014 07:31:45 -0000 1.37
24 +++ ChangeLog 30 Sep 2014 20:57:16 -0000 1.38
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-portage/cfg-update
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v 1.37 2014/04/26 07:31:45 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-portage/cfg-update/ChangeLog,v 1.38 2014/09/30 20:57:16 rich0 Exp $
30 +
31 +*cfg-update-1.8.9 (30 Sep 2014)
32 +
33 + 30 Sep 2014; Richard Freeman <rich0@g.o> +cfg-update-1.8.9.ebuild:
34 + Shellshock fix - 524092 - thanks to Christer Ekholm for patch.
35
36 26 Apr 2014; Pacho Ramos <pacho@g.o> -cfg-update-1.8.2-r1.ebuild:
37 drop old
38
39
40
41 1.1 app-portage/cfg-update/cfg-update-1.8.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/cfg-update-1.8.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/cfg-update/cfg-update-1.8.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cfg-update-1.8.9.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.9.ebuild,v 1.1 2014/09/30 20:57:16 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 ~x86"
62 IUSE="X"
63
64 RDEPEND="X? ( >=x11-misc/sux-1.0
65 x11-apps/xhost )
66 dev-perl/TermReadKey"
67
68 S="${WORKDIR}/rich0-cfg-update-2f10786"
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 }