Gentoo Archives: gentoo-commits

From: "William Thomson (wltjr)" <wltjr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/firebird: ChangeLog firebird-2.1.0.16780_beta2-r1.ebuild firebird-2.0.3.12981.0-r3.ebuild firebird-2.1.0.16780_beta2.ebuild
Date: Tue, 06 Nov 2007 05:19:20
Message-Id: E1IpGNg-00024p-8B@stork.gentoo.org
1 wltjr 07/11/06 04:49:40
2
3 Modified: ChangeLog
4 Added: firebird-2.1.0.16780_beta2-r1.ebuild
5 firebird-2.0.3.12981.0-r3.ebuild
6 Removed: firebird-2.1.0.16780_beta2.ebuild
7 Log:
8 Added patch for custom flags vs default hard coded, thanks to cla there :). Removed past 2.1 beta version.
9 (Portage version: 2.1.3.17)
10
11 Revision Changes Path
12 1.78 dev-db/firebird/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.78&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.78&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?r1=1.77&r2=1.78
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v
21 retrieving revision 1.77
22 retrieving revision 1.78
23 diff -u -r1.77 -r1.78
24 --- ChangeLog 6 Nov 2007 02:15:33 -0000 1.77
25 +++ ChangeLog 6 Nov 2007 04:49:39 -0000 1.78
26 @@ -1,6 +1,18 @@
27 # ChangeLog for dev-db/firebird
28 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.77 2007/11/06 02:15:33 cla Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.78 2007/11/06 04:49:39 wltjr Exp $
31 +
32 +*firebird-2.1.0.16780_beta2-r1 (06 Nov 2007)
33 +*firebird-2.0.3.12981.0-r3 (06 Nov 2007)
34 +
35 + 06 Nov 2007; William L. Thomson Jr. <wltjr@g.o>
36 + +files/firebird-2.0.3.12981.0-flags.patch,
37 + +files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch,
38 + -files/firebird-2.1.0.16780_beta2-deps-libs-paths.patch,
39 + +firebird-2.0.3.12981.0-r3.ebuild, -firebird-2.1.0.16780_beta2.ebuild,
40 + +firebird-2.1.0.16780_beta2-r1.ebuild:
41 + Added patch for custom flags vs default hard coded, thanks to cla there :).
42 + Removed past 2.1 beta version.
43
44 06 Nov 2007; Dawid Węgliński <cla@g.o>
45 firebird-2.0.3.12981.0-r2.ebuild:
46
47
48
49 1.1 dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild?rev=1.1&content-type=text/plain
53
54 Index: firebird-2.1.0.16780_beta2-r1.ebuild
55 ===================================================================
56 # Copyright 1999-2007 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild,v 1.1 2007/11/06 04:49:39 wltjr Exp $
59
60 inherit flag-o-matic eutils autotools versionator
61
62 #MY_P=Firebird-$(replace_version_separator 4 -)
63 MY_P=Firebird-${PV/_b/-B}
64
65 DESCRIPTION="A relational database offering many ANSI SQL-99 features"
66 HOMEPAGE="http://firebird.sourceforge.net/"
67 SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
68 doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
69
70 LICENSE="Interbase-1.0"
71 SLOT="0"
72 KEYWORDS="~amd64 -ia64 ~x86"
73 IUSE="doc xinetd examples debug"
74 RESTRICT="userpriv"
75
76 RDEPEND="dev-libs/libedit
77 dev-libs/icu"
78 DEPEND="${RDEPEND}
79 doc? ( app-arch/unzip )"
80 RDEPEND="${RDEPEND}
81 xinetd? ( virtual/inetd )"
82
83 S="${WORKDIR}/${MY_P}"
84
85 pkg_setup() {
86 enewgroup firebird 450
87 enewuser firebird 450 /bin/bash /usr/share/firebird firebird
88 }
89
90 src_unpack() {
91 if use doc; then
92 # Unpack docs
93 mkdir "${WORKDIR}/manuals"
94 cd "${WORKDIR}/manuals"
95 unpack ib_b60_doc.zip
96 cd "${WORKDIR}"
97 fi
98
99 unpack "${MY_P}.tar.bz2"
100
101 mkdir -p "${WORKDIR}/../etc" \
102 "${WORKDIR}/usr" \
103 "${WORKDIR}/var/log/firebird" \
104 "${WORKDIR}/var/run/firebird"
105 cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
106 cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird
107
108 cd "${S}"
109
110 epatch "${FILESDIR}/${P}-deps-flags-libs-paths.patch"
111
112 find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
113 rm -rf "${S}"/extern/{editline,icu}
114
115 eautoreconf
116 }
117
118 src_compile() {
119 filter-flags -fprefetch-loop-arrays
120 filter-mfpmath sse
121
122 econf --prefix=/usr/share/firebird --with-editline \
123 $(use_enable !xinetd superserver) \
124 $(use_enable debug) \
125 ${myconf} || die "econf failed"
126 emake -j1 || die "error during make"
127 }
128
129 src_install() {
130 cd "${S}/gen/firebird"
131
132 # Seems to be ignored?
133 # insinto /usr/share/firebird/bin
134 # dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
135 rm bin/*.sh || die "Could not remove *sh files"
136
137 insinto /usr/bin
138 dobin bin/*
139
140 insinto /usr/include
141 doins include/*
142
143 insinto /usr/lib
144 dolib.so lib/*.so*
145 dolib.a lib/*.a*
146
147 insinto /usr/share/firebird
148 doins *.msg
149
150 insinto /usr/share/firebird/help
151 doins help/help.fdb
152
153 insinto /usr/share/firebird/upgrade
154 doins "${S}"/src/misc/upgrade/v2/*
155
156 insinto /etc/firebird
157 insopts -m0644 -o firebird -g firebird
158 doins misc/*
159 doins ../install/misc/aliases.conf
160 insopts -m0660 -o firebird -g firebird
161 doins security2.fdb
162
163 exeinto /usr/share/firebird/UDF
164 doexe UDF/*.so
165
166 exeinto /usr/share/firebird/intl
167 doexe intl/*.so
168 # newexe intl/libfbintl.so fbintl
169
170 insinto /usr/share/firebird/intl
171 doins ../install/misc/fbintl.conf
172
173 diropts -m 755 -o firebird -g firebird
174 dodir /var/log/firebird
175 dodir /var/run/firebird
176 keepdir /var/log/firebird
177 keepdir /var/run/firebird
178
179 # create links for backwards compatibility
180 cd "${D}/usr/lib"
181 ln -s libfbclient.so libgds.so
182 ln -s libfbclient.so libgds.so.0
183 ln -s libfbclient.so libfbclient.so.1
184
185 if use xinetd ; then
186 insinto /etc/xinetd.d
187 newins "${S}/gen/install/misc/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed"
188 else
189 newinitd "${FILESDIR}/${PN}.init.d.2" ${PN}
190 newconfd "${FILESDIR}/firebird.conf.d.2" ${PN}
191 fperms 640 /etc/conf.d/firebird
192 fi
193 doenvd "${FILESDIR}/70${PN}"
194
195 # Install docs
196 use doc && dodoc "${WORKDIR}"/manuals/*
197
198 if use examples; then
199 docinto examples
200 dodoc examples/*
201 fi
202 }
203
204 pkg_postinst() {
205 # Hack to fix ownership/perms
206 chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/share/firebird"
207 chmod 750 "${ROOT}/etc/firebird"
208
209 elog
210 elog "Firebird is no longer installed in /opt. Binaries are in"
211 elog "/usr/bin. The core, udfs, etc are in /usr/share/firebird. Logs"
212 elog "are in /var/log/firebird, and lock files in /var/run/firebird"
213 elog "Please report any problems or issues to bugs.gentoo.org."
214 elog
215 }
216
217 pkg_config() {
218 # if found /etc/security.gdb from previous install, backup, and restore as
219 # /etc/security2.fdb
220 if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then
221 # if we have scurity2.fdb already, back it 1st
222 if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then
223 cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old"
224 fi
225 gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk"
226 gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb"
227 mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old"
228 rm "${ROOT}/etc/firebird/security.gbk"
229
230 # make sure they are readable only to firebird
231 chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}"
232 chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}"
233
234 einfo
235 einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
236 einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
237 einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)."
238 einfo
239 fi
240
241 # we need to enable local access to the server
242 if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then
243 touch "${ROOT}/etc/hosts.equiv"
244 chown root:0 "${ROOT}/etc/hosts.equiv"
245 chmod u=rw,go=r "${ROOT}/etc/hosts.equiv"
246 fi
247
248 # add 'localhost.localdomain' to the hosts.equiv file...
249 if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
250 echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv"
251 einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv"
252 fi
253
254 # add 'localhost' to the hosts.equiv file...
255 if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
256 echo "localhost" >> "${ROOT}/etc/hosts.equiv"
257 einfo "Added localhost to ${ROOT}/etc/hosts.equiv"
258 fi
259
260 HS_NAME=`hostname`
261 if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
262 echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv"
263 einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv"
264 fi
265
266 einfo "If you're using UDFs, please remember to move them"
267 einfo "to /usr/share/firebird/UDF"
268 }
269
270
271
272 1.1 dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild
273
274 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild?rev=1.1&view=markup
275 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild?rev=1.1&content-type=text/plain
276
277 Index: firebird-2.0.3.12981.0-r3.ebuild
278 ===================================================================
279 # Copyright 1999-2007 Gentoo Foundation
280 # Distributed under the terms of the GNU General Public License v2
281 # $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild,v 1.1 2007/11/06 04:49:39 wltjr Exp $
282
283 inherit flag-o-matic eutils autotools versionator
284
285 MY_P=Firebird-$(replace_version_separator 4 -)
286
287 DESCRIPTION="A relational database offering many ANSI SQL-99 features"
288 HOMEPAGE="http://firebird.sourceforge.net/"
289 SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
290 doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
291
292 LICENSE="Interbase-1.0"
293 SLOT="0"
294 KEYWORDS="~amd64 -ia64 ~x86"
295 IUSE="doc xinetd examples debug"
296 RESTRICT="userpriv"
297
298 RDEPEND="dev-libs/libedit
299 dev-libs/icu"
300 DEPEND="${RDEPEND}
301 doc? ( app-arch/unzip )"
302 RDEPEND="${RDEPEND}
303 xinetd? ( virtual/inetd )"
304
305 S="${WORKDIR}/${MY_P}"
306
307 pkg_setup() {
308 enewgroup firebird 450
309 enewuser firebird 450 /bin/bash /usr/share/firebird firebird
310 }
311
312 src_unpack() {
313 if use doc; then
314 # Unpack docs
315 mkdir "${WORKDIR}/manuals"
316 cd "${WORKDIR}/manuals"
317 unpack ib_b60_doc.zip
318 cd "${WORKDIR}"
319 fi
320
321 unpack "${MY_P}.tar.bz2"
322
323 mkdir -p "${WORKDIR}/../etc" \
324 "${WORKDIR}/usr" \
325 "${WORKDIR}/var/log/firebird" \
326 "${WORKDIR}/var/run/firebird"
327 cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
328 cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird
329
330 cd "${S}"
331
332 epatch "${FILESDIR}/${P}-flags.patch"
333 epatch "${FILESDIR}/${P}-external-libs.patch"
334 epatch "${FILESDIR}/${P}-make-deps.patch"
335 epatch "${FILESDIR}/${P}-paths.patch"
336
337 find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
338 rm -rf "${S}"/extern/{editline,icu}
339
340 eautoreconf
341 }
342
343 src_compile() {
344 filter-flags -fprefetch-loop-arrays
345 filter-mfpmath sse
346
347 econf --prefix=/usr/share/firebird --with-editline \
348 $(use_enable !xinetd superserver) \
349 $(use_enable debug) \
350 ${myconf} || die "econf failed"
351 emake -j1 || die "error during make"
352 }
353
354 src_install() {
355 cd "${S}/gen/firebird"
356
357 # Seems to be ignored?
358 # insinto /usr/share/firebird/bin
359 # dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
360 rm bin/*.sh || die "Could not remove *sh files"
361
362 insinto /usr/bin
363 dobin bin/*
364
365 insinto /usr/include
366 doins include/*
367
368 insinto /usr/lib
369 dolib.so lib/*.so*
370 dolib.a lib/*.a*
371
372 insinto /usr/share/firebird
373 doins *.msg
374
375 insinto /usr/share/firebird/help
376 doins help/help.fdb
377
378 insinto /usr/share/firebird/upgrade
379 doins "${S}"/src/misc/upgrade/v2/*
380
381 insinto /etc/firebird
382 insopts -m0644 -o firebird -g firebird
383 doins misc/*
384 doins ../install/misc/aliases.conf
385 insopts -m0660 -o firebird -g firebird
386 doins security2.fdb
387
388 exeinto /usr/share/firebird/UDF
389 doexe UDF/*.so
390
391 exeinto /usr/share/firebird/intl
392 doexe intl/*.so
393 # newexe intl/libfbintl.so fbintl
394
395 insinto /usr/share/firebird/intl
396 doins ../install/misc/fbintl.conf
397
398 diropts -m 755 -o firebird -g firebird
399 dodir /var/log/firebird
400 dodir /var/run/firebird
401 keepdir /var/log/firebird
402 keepdir /var/run/firebird
403
404 # create links for backwards compatibility
405 cd "${D}/usr/lib"
406 ln -s libfbclient.so libgds.so
407 ln -s libfbclient.so libgds.so.0
408 ln -s libfbclient.so libfbclient.so.1
409
410 if use xinetd ; then
411 insinto /etc/xinetd.d
412 newins "${S}/gen/install/misc/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed"
413 else
414 newinitd "${FILESDIR}/${PN}.init.d.2" ${PN}
415 newconfd "${FILESDIR}/firebird.conf.d.2" ${PN}
416 fperms 640 /etc/conf.d/firebird
417 fi
418 doenvd "${FILESDIR}/70${PN}"
419
420 # Install docs
421 use doc && dodoc "${WORKDIR}"/manuals/*
422
423 if use examples; then
424 docinto examples
425 dodoc examples/*
426 fi
427 }
428
429 pkg_postinst() {
430 # Hack to fix ownership/perms
431 chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/share/firebird"
432 chmod 750 "${ROOT}/etc/firebird"
433
434 elog
435 elog "Firebird is no longer installed in /opt. Binaries are in"
436 elog "/usr/bin. The core, udfs, etc are in /usr/share/firebird. Logs"
437 elog "are in /var/log/firebird, and lock files in /var/run/firebird"
438 elog "Please report any problems or issues to bugs.gentoo.org."
439 elog
440 }
441
442 pkg_config() {
443 # if found /etc/security.gdb from previous install, backup, and restore as
444 # /etc/security2.fdb
445 if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then
446 # if we have scurity2.fdb already, back it 1st
447 if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then
448 cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old"
449 fi
450 gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk"
451 gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb"
452 mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old"
453 rm "${ROOT}/etc/firebird/security.gbk"
454
455 # make sure they are readable only to firebird
456 chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}"
457 chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}"
458
459 einfo
460 einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
461 einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
462 einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)."
463 einfo
464 fi
465
466 # we need to enable local access to the server
467 if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then
468 touch "${ROOT}/etc/hosts.equiv"
469 chown root:0 "${ROOT}/etc/hosts.equiv"
470 chmod u=rw,go=r "${ROOT}/etc/hosts.equiv"
471 fi
472
473 # add 'localhost.localdomain' to the hosts.equiv file...
474 if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
475 echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv"
476 einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv"
477 fi
478
479 # add 'localhost' to the hosts.equiv file...
480 if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
481 echo "localhost" >> "${ROOT}/etc/hosts.equiv"
482 einfo "Added localhost to ${ROOT}/etc/hosts.equiv"
483 fi
484
485 HS_NAME=`hostname`
486 if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
487 echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv"
488 einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv"
489 fi
490
491 einfo "If you're using UDFs, please remember to move them"
492 einfo "to /usr/share/firebird/UDF"
493 }
494
495
496
497 --
498 gentoo-commits@g.o mailing list