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.17755_rc2.ebuild firebird-2.1.0.17735_rc1.ebuild
Date: Tue, 25 Mar 2008 19:54:58
Message-Id: E1JeFEV-00058u-P3@stork.gentoo.org
1 wltjr 08/03/25 19:54:55
2
3 Modified: ChangeLog
4 Added: firebird-2.1.0.17755_rc2.ebuild
5 Removed: firebird-2.1.0.17735_rc1.ebuild
6 Log:
7 Bumped to latest rc, removed previous rc. No progress on bug # 19766 :(, still hangs on create_db on some amd64 machines.
8 (Portage version: 2.1.4.1)
9
10 Revision Changes Path
11 1.90 dev-db/firebird/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.90&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.90&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?r1=1.89&r2=1.90
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v
20 retrieving revision 1.89
21 retrieving revision 1.90
22 diff -u -r1.89 -r1.90
23 --- ChangeLog 25 Feb 2008 15:49:26 -0000 1.89
24 +++ ChangeLog 25 Mar 2008 19:54:55 -0000 1.90
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-db/firebird
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.89 2008/02/25 15:49:26 beandog Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.90 2008/03/25 19:54:55 wltjr Exp $
30 +
31 +*firebird-2.1.0.17755_rc2 (25 Mar 2008)
32 +
33 + 25 Mar 2008; William L. Thomson Jr. <wltjr@g.o>
34 + -files/firebird-2.1.0.17735_rc1-deps-flags-libs.patch,
35 + +files/firebird-2.1.0.17755_rc2-deps-flags-libs.patch,
36 + -firebird-2.1.0.17735_rc1.ebuild, +firebird-2.1.0.17755_rc2.ebuild:
37 + Bumped to latest rc, removed previous rc. No progress on bug # 19766 :(,
38 + still hangs on create_db on some amd64 machines.
39
40 25 Feb 2008; Steve Dibb <beandog@g.o>
41 firebird-2.0.3.12981.0-r5.ebuild:
42
43
44
45 1.1 dev-db/firebird/firebird-2.1.0.17755_rc2.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.17755_rc2.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.17755_rc2.ebuild?rev=1.1&content-type=text/plain
49
50 Index: firebird-2.1.0.17755_rc2.ebuild
51 ===================================================================
52 # Copyright 1999-2008 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.0.17755_rc2.ebuild,v 1.1 2008/03/25 19:54:55 wltjr Exp $
55
56 inherit flag-o-matic eutils autotools versionator
57
58 #MY_P=Firebird-$(replace_version_separator 4 -)
59 MY_P=Firebird-${PV/_rc/-ReleaseCandidate}
60
61 DESCRIPTION="A relational database offering many ANSI SQL-99 features"
62 HOMEPAGE="http://firebird.sourceforge.net/"
63 SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
64 doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
65
66 LICENSE="IDPL Interbase-1.0"
67 SLOT="0"
68 KEYWORDS="~amd64 -ia64 ~x86"
69 IUSE="doc xinetd examples debug"
70 RESTRICT="userpriv"
71
72 RDEPEND="dev-libs/libedit
73 dev-libs/icu"
74 DEPEND="${RDEPEND}
75 doc? ( app-arch/unzip )"
76 RDEPEND="${RDEPEND}
77 xinetd? ( virtual/inetd )"
78
79 S="${WORKDIR}/${MY_P}"
80
81 pkg_setup() {
82 enewgroup firebird 450
83 enewuser firebird 450 /bin/bash /usr/lib/firebird firebird
84 }
85
86 function check_sed() {
87 MSG="sed of $3, required $2 lines modified $1"
88 einfo "${MSG}"
89 [[ $1 -ge $2 ]] || die "${MSG}"
90 }
91
92 src_unpack() {
93 if use doc; then
94 # Unpack docs
95 mkdir "${WORKDIR}/manuals"
96 cd "${WORKDIR}/manuals"
97 unpack ib_b60_doc.zip
98 cd "${WORKDIR}"
99 fi
100
101 unpack "${MY_P}.tar.bz2"
102
103 # compile time relative path hacks, ew :(
104 mkdir -p "${WORKDIR}/../etc" \
105 "${WORKDIR}/usr" \
106 "${WORKDIR}/var/log/firebird" \
107 "${WORKDIR}/var/run/firebird"
108 cd "${WORKDIR}/usr"; ln -s "${S}/gen/firebird/bin"
109 cd "${WORKDIR}/../etc"; ln -s "${S}/gen/firebird" firebird
110
111 cd "${S}"
112
113 epatch "${FILESDIR}/${P}-deps-flags-libs.patch"
114
115 einfo "Split up Firebird via relative path hacks"
116 # sed vs patch for portability and addtional location changes
117 # based on FIREBIRD=/usr/lib/firebird
118 check_sed "$(sed -i -e 's:"aliases.conf":"../../../etc/firebird/aliases.conf":w /dev/stdout' \
119 src/jrd/db_alias.cpp | wc -l )" "1" "src/jrd/db_alias.cpp" # 1 line
120 check_sed "$(sed -i -e 's:"isc_event1:"../../../var/run/firebird/isc_event1:w /dev/stdout' \
121 -e 's:"isc_lock1:"../../../var/run/firebird/isc_lock1:w /dev/stdout' \
122 -e 's:"isc_init1:"../../../var/run/firebird/isc_init1:w /dev/stdout' \
123 -e 's:"isc_guard1:"../../../var/run/firebird/isc_guard1:w /dev/stdout' \
124 -e 's:"isc_monitor1:"../../../var/run/firebird/isc_monitor1:w /dev/stdout' \
125 -e 's:"firebird.log":"../../../var/log/firebird/firebird.log":w /dev/stdout' \
126 -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
127 src/jrd/file_params.h | wc -l)" "12" "src/jrd/file_params.h" # 12 lines
128 check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
129 src/jrd/jrd_pwd.h | wc -l)" "1" "src/jrd/jrd_pwd.h" # 1 line
130 check_sed "$(sed -i -e 's:"firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
131 src/jrd/os/config_root.h | wc -l)" "1" "src/jrd/os/config_root.h" # 1 line
132 check_sed "$(sed -i -e 's:"bin/fb_cache_print":"../../../usr/bin/fb_cache_print":w /dev/stdout' \
133 -e 's:"bin/fb_lock_print":"../../../usr/bin/fb_lock_print":w /dev/stdout' \
134 -e 's:"bin/fb_cache_manager":"../../../usr/bin/fb_cache_manager":w /dev/stdout' \
135 -e 's:"bin/gstat":"../../../usr/bin/gstat":w /dev/stdout' \
136 -e 's:"bin/gbak":"../../../usr/bin/gbak":w /dev/stdout' \
137 -e 's:"bin/gdef":"../../../usr/bin/gdef":w /dev/stdout' \
138 -e 's:"bin/gsec":"../../../usr/bin/gsec":w /dev/stdout' \
139 -e 's:"bin/gjrn":"../../../usr/bin/gjrn":w /dev/stdout' \
140 -e 's:"bin/gfix":"../../../usr/bin/gfix":w /dev/stdout' \
141 src/jrd/svc.cpp | wc -l)" "26" "src/jrd/svc.cpp" # 26 lines
142 check_sed "$(sed -i -e 's:"bin/fb_lock_mgr":"../../../usr/bin/fb_lock_mgr":w /dev/stdout' \
143 src/lock/lock.cpp | wc -l)" "1" "src/lock/lock.cpp" # 1 line
144 check_sed "$(sed -i -e 's:m_Root_Path + "firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
145 src/utilities/fbcpl/fbdialog.cpp | wc -l)" "1" "src/utilities/fbcpl/fbdialog.cpp" # 1 line
146 check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
147 src/utilities/gsec/security.epp | wc -l)" "1" "src/utilities/gsec/security.epp" # 1 line
148 check_sed "$(sed -i -e 's:"bin/fbserver":"../../../usr/bin/fbserver":w /dev/stdout' \
149 src/utilities/guard/guard.cpp | wc -l)" "1" "src/utilities/guard/guard.cpp" # 1 line
150 check_sed "$(sed -i -e 's:"bin/fbguard":"../../../usr/bin/fbguard":w /dev/stdout' \
151 src/utilities/ibmgr/ibmgr.h | wc -l)" "1" "src/utilities/ibmgr/ibmgr.h" # 1 line
152 check_sed "$(sed -i -e 's:$FIREBIRD/firebird.log:/var/log/firebird/firebird.log:w /dev/stdout' \
153 src/utilities/ibmgr/srvrmgr.cpp | wc -l)" "1" "src/utilities/ibmgr/srvrmgr.cpp" # 1 line
154
155 # Rename references to isql to fbsql
156 check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \
157 src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line
158 check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
159 src/msgs/history.sql | wc -l)" "4" "src/msgs/history.sql" # 4 lines
160 check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
161 src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines
162 check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
163 -e 's:ISQL :FBSQL :w /dev/stdout' \
164 src/msgs/messages.sql | wc -l)" "4" "src/msgs/messages.sql" # 4 lines
165 check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \
166 -e 's:isql :fbsql :w /dev/stdout' \
167 -e 's:ISQL :FBSQL :w /dev/stdout' \
168 src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines
169
170 find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
171 rm -rf "${S}"/extern/{editline,icu}
172
173 eautoreconf
174 }
175
176 src_compile() {
177 filter-flags -fprefetch-loop-arrays
178 filter-mfpmath sse
179
180 econf --prefix=/usr/lib/firebird --with-editline \
181 $(use_enable !xinetd superserver) \
182 $(use_enable debug) \
183 ${myconf} || die "econf failed"
184 emake -j1 || die "error during make"
185 }
186
187 src_install() {
188 cd "${S}/gen/firebird"
189
190 # Seems to be ignored?
191 insinto /usr/share/firebird/bin
192 dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
193 rm bin/*.sh || die "Could not remove *sh files"
194
195 einfo "Renaming isql -> fbsql"
196 mv bin/isql bin/fbsql
197
198 insinto /usr/bin
199 dobin bin/*
200
201 insinto /usr/include
202 doins include/*
203
204 insinto /usr/lib
205 dolib.so lib/*.so*
206 dolib.a lib/*.a*
207
208 insinto /usr/lib/firebird
209 doins *.msg
210
211 insinto /usr/lib/firebird/help
212 doins help/help.fdb
213
214 insinto /usr/share/firebird/upgrade
215 doins "${S}"/src/misc/upgrade/v2/*
216
217 insinto /etc/firebird
218 insopts -m0644 -o firebird -g firebird
219 doins misc/*
220 doins ../install/misc/aliases.conf
221 insopts -m0660 -o firebird -g firebird
222 doins security2.fdb
223
224 exeinto /usr/lib/firebird/UDF
225 doexe UDF/*.so
226
227 exeinto /usr/lib/firebird/intl
228 newexe intl/libfbintl.so fbintl.so
229
230 insinto /usr/lib/firebird/intl
231 doins ../install/misc/fbintl.conf
232
233 diropts -m 755 -o firebird -g firebird
234 dodir /var/log/firebird
235 dodir /var/run/firebird
236 keepdir /var/log/firebird
237 keepdir /var/run/firebird
238
239 # create links for backwards compatibility
240 cd "${D}/usr/lib"
241 ln -s libfbclient.so libgds.so
242 ln -s libfbclient.so libgds.so.0
243 ln -s libfbclient.so libfbclient.so.1
244
245 if use xinetd ; then
246 insinto /etc/xinetd.d
247 newins "${FILESDIR}/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed"
248 else
249 newinitd "${FILESDIR}/${PN}.init.d.2" ${PN}
250 newconfd "${FILESDIR}/firebird.conf.d" ${PN}
251 fperms 640 /etc/conf.d/firebird
252 fi
253 doenvd "${FILESDIR}/70${PN}"
254
255 # Install docs
256 use doc && dodoc "${WORKDIR}"/manuals/*
257
258 if use examples; then
259 docinto examples
260 dodoc examples/*
261 fi
262 }
263
264 pkg_postinst() {
265 # Hack to fix ownership/perms
266 chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/lib/firebird"
267 chmod 750 "${ROOT}/etc/firebird"
268
269 elog
270 elog "Firebird is no longer installed in /opt. Binaries are in"
271 elog "/usr/bin. The core, udfs, etc are in /usr/lib/firebird. Logs"
272 elog "are in /var/log/firebird, and lock files in /var/run/firebird"
273 elog "The command line tool isql has been renamed to fbsql."
274 elog "Please report any problems or issues to bugs.gentoo.org."
275 elog
276 }
277
278 pkg_config() {
279 # if found /etc/security.gdb from previous install, backup, and restore as
280 # /etc/security2.fdb
281 if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then
282 # if we have scurity2.fdb already, back it 1st
283 if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then
284 cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old"
285 fi
286 gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk"
287 gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb"
288 mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old"
289 rm "${ROOT}/etc/firebird/security.gbk"
290
291 # make sure they are readable only to firebird
292 chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}"
293 chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}"
294
295 einfo
296 einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
297 einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
298 einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)."
299 einfo
300 fi
301
302 # we need to enable local access to the server
303 if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then
304 touch "${ROOT}/etc/hosts.equiv"
305 chown root:0 "${ROOT}/etc/hosts.equiv"
306 chmod u=rw,go=r "${ROOT}/etc/hosts.equiv"
307 fi
308
309 # add 'localhost.localdomain' to the hosts.equiv file...
310 if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
311 echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv"
312 einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv"
313 fi
314
315 # add 'localhost' to the hosts.equiv file...
316 if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
317 echo "localhost" >> "${ROOT}/etc/hosts.equiv"
318 einfo "Added localhost to ${ROOT}/etc/hosts.equiv"
319 fi
320
321 HS_NAME=`hostname`
322 if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
323 echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv"
324 einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv"
325 fi
326
327 einfo "If you're using UDFs, please remember to move them"
328 einfo "to /usr/lib/firebird/UDF"
329 }
330
331
332
333 --
334 gentoo-commits@l.g.o mailing list