Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/stargazer: stargazer-2.408.ebuild ChangeLog
Date: Sun, 24 Feb 2013 19:23:17
Message-Id: 20130224192313.909F92171D@flycatcher.gentoo.org
1 tomwij 13/02/24 19:23:13
2
3 Modified: stargazer-2.408.ebuild ChangeLog
4 Log:
5 Corrected USE flag conditionals in pkg_postinst (accidental double negations), introduced more die calls to make ebuild more reliable. Thanks to SpiderX for proof-reading the corrections I made.
6
7 (Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.2 net-misc/stargazer/stargazer-2.408.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild?r1=1.1&r2=1.2
15
16 Index: stargazer-2.408.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- stargazer-2.408.ebuild 23 Feb 2013 20:13:31 -0000 1.1
23 +++ stargazer-2.408.ebuild 24 Feb 2013 19:23:13 -0000 1.2
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2013 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild,v 1.1 2013/02/23 20:13:31 tomwij Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stargazer/stargazer-2.408.ebuild,v 1.2 2013/02/24 19:23:13 tomwij Exp $
29
30 EAPI="5"
31
32 @@ -70,8 +70,8 @@
33 src_prepare() {
34 # Patches already in upstream's trunk
35 # Rename convertor to sgconv to avoid possible file name collisions
36 - mv "${S}"/projects/convertor/ "${S}"/projects/sgconv/
37 - mv "${S}"/projects/sgconv/convertor.conf "${S}"/projects/sgconv/sgconv.conf
38 + mv "${S}"/projects/convertor/ "${S}"/projects/sgconv/ || die "Couldn't move convertor folder"
39 + mv "${S}"/projects/sgconv/convertor.conf "${S}"/projects/sgconv/sgconv.conf || die "Couldn't move convertor config"
40 epatch "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch
41
42 # Fix dependency on fbclient for module_store_firebird
43 @@ -103,10 +103,10 @@
44
45 for project in ${PROJECTS} ; do
46 # Rename build script to configure for further econf launch in every projects
47 - mv "${S}"/projects/${project}/build "${S}"/projects/${project}/configure
48 + mv "${S}"/projects/${project}/build "${S}"/projects/${project}/configure || die "Couldn't move build folder for ${project}"
49
50 # Change check for debug build
51 - sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' "${S}"/projects/${project}/configure
52 + sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' "${S}"/projects/${project}/configure || die "sed for debug check failed"
53 done
54
55 # Correct working directory, user and group for sgconv.conf, store_files.conf
56 @@ -124,17 +124,32 @@
57
58 # Define which module to compile
59 for module in ${!MODULES[@]} ; do
60 - use $module || sed -i "s/${MODULES[$module]%:*}//" "${S}"/projects/stargazer/configure
61 + if ! use $module ; then
62 + sed -i "s/${MODULES[$module]%:*}//" "${S}"/projects/stargazer/configure || die "sed for module configure failed"
63 + fi
64 done
65
66 # Correct Gentoo init script provided by upstream (TODO: Remove in further releases, already fixed in upstream's trunk)
67 - use stargazer && sed -i 's/opts/extra_commands/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo
68 + if use stargazer ; then
69 + sed -i 's/opts/extra_commands/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for stargazer failed"
70 + fi
71
72 # Correct Gentoo init script dependencies
73 - use module_store_files && sed -i '11d' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo
74 - use module_store_firebird && sed -i '11d;s/need net/need net firebird/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo
75 - use module_store_mysql && sed -i '11d;s/need net/need net mysql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo
76 - use module_store_postgres && sed -i '11d;s/need net/need net postgresql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo
77 + if use module_store_files ; then
78 + sed -i '11d' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_files failed"
79 + fi
80 +
81 + if use module_store_firebird ; then
82 + sed -i '11d;s/need net/need net firebird/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_firebird failed"
83 + fi
84 +
85 + if use module_store_mysql ; then
86 + sed -i '11d;s/need net/need net mysql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_mysql failed"
87 + fi
88 +
89 + if use module_store_postgres ; then
90 + sed -i '11d;s/need net/need net postgresql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_postgres failed"
91 + fi
92
93 # Check for IPQ subsystem availability
94 ( use module_capture_ipq && kernel_is ge 3 5 ) && die "IPQ subsystem is gone since Linux kernel 3.5. You can't compile module_capture_ipq with your current kernel."
95 @@ -163,7 +178,7 @@
96
97 # Build necessary libraries first
98 touch "${S}"/Makefile.conf
99 - cd "${S}"/stglibs
100 + cd "${S}"/stglibs || die "cd to stglibs failed"
101 emake STG_LIBS="ia.lib srvconf.lib"
102
103 for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
104 @@ -174,8 +189,7 @@
105 done
106
107 if use doc ; then
108 - cd "${S}"/doc/xmlrpc
109 -
110 + cd "${S}"/doc/xmlrpc || die "cd to doc/xmlrpc failed"
111 emake
112 fi
113 }
114 @@ -216,7 +230,7 @@
115 fi
116
117 if use sgconv ; then
118 - cd "${S}"/projects/sgconv
119 + cd "${S}"/projects/sgconv || die "cd to sgconv project failed"
120
121 emake DESTDIR="${D}" PREFIX="${D}" install
122
123 @@ -229,13 +243,13 @@
124 fi
125
126 if use radius ; then
127 - cd "${S}"/projects/rlm_stg
128 + cd "${S}"/projects/rlm_stg || die "cd to rlm_stg project failed"
129
130 emake DESTDIR="${D}" PREFIX="${D}" install
131 fi
132
133 if use rscriptd ; then
134 - cd "${S}"/projects/rscriptd
135 + cd "${S}"/projects/rscriptd || die "cd to rscriptd project failed"
136
137 emake DESTDIR="${D}" PREFIX="${D}" install
138
139 @@ -250,7 +264,7 @@
140 fi
141
142 if use sgauth ; then
143 - cd "${S}"/projects/sgauth
144 + cd "${S}"/projects/sgauth || die "cd to sgauth project failed"
145
146 emake DESTDIR="${D}" PREFIX="${D}" install
147
148 @@ -262,7 +276,7 @@
149 fi
150
151 if use sgconf ; then
152 - cd "${S}"/projects/sgconf
153 + cd "${S}"/projects/sgconf || die "cd to sgconf project failed"
154
155 emake DESTDIR="${D}" PREFIX="${D}" install
156
157 @@ -271,7 +285,7 @@
158 fi
159
160 if use sgconf_xml ; then
161 - cd "${S}"/projects/sgconf_xml
162 + cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml project failed"
163
164 emake DESTDIR="${D}" PREFIX="${D}" install
165
166 @@ -280,7 +294,7 @@
167 fi
168
169 if use stargazer ; then
170 - cd "${S}"/projects/stargazer
171 + cd "${S}"/projects/stargazer || die "cd to stargazer project failed"
172
173 emake DESTDIR="${D}" PREFIX="${D}" install
174
175 @@ -362,7 +376,7 @@
176 ( use sgconv || use rscriptd || use sgauth || use stargazer ) && fowners -R stg:stg /etc/stargazer
177
178 # Put the files in the right folder to support multilib
179 - mv "${ED}"/usr/lib "${ED}"/usr/$(get_libdir)
180 + mv "${ED}"/usr/lib "${ED}"/usr/$(get_libdir) || die "Failed to move library directory for multilib support"
181 }
182
183 pkg_setup() {
184 @@ -406,7 +420,7 @@
185
186 einfo " It also may be used in section Accounting and Post-Auth."
187
188 - use !module_auth_freeradius || einfo "\n For use RADIUS data processing you should also enable USE-flag module_auth_freeradius."
189 + use module_auth_freeradius || einfo "\n For use RADIUS data processing you should also enable USE-flag module_auth_freeradius."
190 fi
191
192 if use rscriptd ; then
193 @@ -426,13 +440,13 @@
194 if use sgconf ; then
195 einfo "\nSgconf:"
196 einfo "-------"
197 - use !module_config_sgconfig || einfo " For further use of sgconf utility you should also enable USE-flag module_config_sgconfig."
198 + use module_config_sgconfig || einfo " For further use of sgconf utility you should also enable USE-flag module_config_sgconfig."
199 fi
200
201 if use sgconf_xml ; then
202 einfo "\nSgconf_xml:"
203 einfo "-----------"
204 - use !module_config_rpcconfig || einfo " For further use of sgconf_xml utility you should also enable USE-flag module_config_rpcconfig."
205 + use module_config_rpcconfig || einfo " For further use of sgconf_xml utility you should also enable USE-flag module_config_rpcconfig."
206 fi
207
208 if use stargazer ; then
209
210
211
212 1.2 net-misc/stargazer/ChangeLog
213
214 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/ChangeLog?rev=1.2&view=markup
215 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/ChangeLog?rev=1.2&content-type=text/plain
216 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stargazer/ChangeLog?r1=1.1&r2=1.2
217
218 Index: ChangeLog
219 ===================================================================
220 RCS file: /var/cvsroot/gentoo-x86/net-misc/stargazer/ChangeLog,v
221 retrieving revision 1.1
222 retrieving revision 1.2
223 diff -u -r1.1 -r1.2
224 --- ChangeLog 23 Feb 2013 20:13:31 -0000 1.1
225 +++ ChangeLog 24 Feb 2013 19:23:13 -0000 1.2
226 @@ -1,6 +1,11 @@
227 # ChangeLog for net-misc/stargazer
228 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
229 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stargazer/ChangeLog,v 1.1 2013/02/23 20:13:31 tomwij Exp $
230 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stargazer/ChangeLog,v 1.2 2013/02/24 19:23:13 tomwij Exp $
231 +
232 + 24 Feb 2013; Tom Wijsman <TomWij@g.o> stargazer-2.408.ebuild:
233 + Corrected USE flag conditionals in pkg_postinst (accidental double negations),
234 + introduced more die calls to make ebuild more reliable. Thanks to SpiderX for
235 + proof-reading the corrections I made.
236
237 *stargazer-2.408 (23 Feb 2013)