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.0.3.12981.0.ebuild firebird-2.0.2.12964.0.ebuild
Date: Thu, 13 Sep 2007 22:19:57
Message-Id: E1IVwvP-0004Ml-Gz@stork.gentoo.org
1 wltjr 07/09/13 22:12:39
2
3 Modified: ChangeLog
4 Added: firebird-2.0.3.12981.0.ebuild
5 Removed: firebird-2.0.2.12964.0.ebuild
6 Log:
7 Bumped to latest pre-release. Removed past 2.0.2.x due to that version being withdrawn by upstream.
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.70 dev-db/firebird/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.70&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.70&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?r1=1.69&r2=1.70
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v
20 retrieving revision 1.69
21 retrieving revision 1.70
22 diff -u -r1.69 -r1.70
23 --- ChangeLog 9 Sep 2007 13:30:48 -0000 1.69
24 +++ ChangeLog 13 Sep 2007 22:12:39 -0000 1.70
25 @@ -1,6 +1,17 @@
26 # ChangeLog for dev-db/firebird
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.69 2007/09/09 13:30:48 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.70 2007/09/13 22:12:39 wltjr Exp $
30 +
31 +*firebird-2.0.3.12981.0 (13 Sep 2007)
32 +
33 + 13 Sep 2007; William L. Thomson Jr. <wltjr@g.o>
34 + -files/firebird-2.0.2.12964.0-external-libs.patch,
35 + -files/firebird-2.0.2.12964.0-make-deps.patch,
36 + +files/firebird-2.0.3.12981.0-external-libs.patch,
37 + +files/firebird-2.0.3.12981.0-make-deps.patch,
38 + -firebird-2.0.2.12964.0.ebuild, +firebird-2.0.3.12981.0.ebuild:
39 + Bumped to latest pre-release. Removed past 2.0.2.x due to that version being
40 + withdrawn by upstream.
41
42 09 Sep 2007; Markus Meier <maekke@g.o>
43 firebird-2.0.2.12964.0.ebuild:
44
45
46
47 1.1 dev-db/firebird/firebird-2.0.3.12981.0.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: firebird-2.0.3.12981.0.ebuild
53 ===================================================================
54 # Copyright 1999-2007 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0.ebuild,v 1.1 2007/09/13 22:12:39 wltjr Exp $
57
58 inherit flag-o-matic eutils autotools versionator
59
60 MY_P=Firebird-$(replace_version_separator 4 -)
61
62 DESCRIPTION="A relational database offering many ANSI SQL-99 features"
63 HOMEPAGE="http://firebird.sourceforge.net/"
64 #SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
65 SRC_URI="http://www.firebirdsql.org/download/prerelease/source/${MY_P}.tar.bz2
66 doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
67
68 LICENSE="Interbase-1.0"
69 SLOT="0"
70 KEYWORDS="~amd64 -ia64 ~x86"
71 IUSE="doc xinetd examples debug"
72 RESTRICT="userpriv"
73
74 RDEPEND="dev-libs/libedit
75 dev-libs/icu"
76 DEPEND="${RDEPEND}
77 doc? ( app-arch/unzip )"
78 RDEPEND="${RDEPEND}
79 xinetd? ( virtual/inetd )"
80
81 S="${WORKDIR}/${MY_P}"
82
83 pkg_setup() {
84 enewgroup firebird 450
85 enewuser firebird 450 /bin/bash /opt/firebird firebird
86 }
87
88 src_unpack() {
89 if use doc; then
90 # Unpack docs
91 mkdir "${WORKDIR}/manuals"
92 cd "${WORKDIR}/manuals"
93 unpack ib_b60_doc.zip
94 cd "${WORKDIR}"
95 fi
96
97 unpack "${MY_P}.tar.bz2"
98
99 cd "${S}"
100
101 epatch "${FILESDIR}/${P}-external-libs.patch"
102 epatch "${FILESDIR}/${P}-make-deps.patch"
103 find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
104 rm -rf "${S}"/extern/{editline,icu}
105
106 eautoreconf
107 }
108
109 src_compile() {
110 filter-flags -fprefetch-loop-arrays
111 filter-mfpmath sse
112
113 econf \
114 --prefix=/opt/firebird --with-editline \
115 $(use_enable !xinetd superserver) \
116 $(use_enable debug) \
117 ${myconf} || die "econf failed"
118 emake -j1 || die "error during make"
119 }
120
121 src_install() {
122 cd "${S}/gen/firebird"
123
124 if use examples; then
125 docinto examples
126 dodoc examples/*
127 fi
128
129 into /opt/firebird
130 dobin bin/*
131 dolib.so lib/*.so*
132 dolib.a lib/*.a*
133
134 insinto /opt/firebird
135 doins *.msg
136
137 rm -rf "${D}"/opt/firebird/bin/*.sh
138 dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
139
140 insinto /opt/firebird/include
141 doins include/*
142
143 insinto /opt/firebird/help
144 doins help/help.fdb
145
146 insinto /opt/firebird/upgrade
147 doins "${S}"/src/misc/upgrade/v2/*
148
149 insinto /etc/firebird
150 insopts -m0644 -o firebird -g firebird
151 doins misc/*
152 doins ../install/misc/aliases.conf
153 insopts -m0660 -o firebird -g firebird
154 doins security2.fdb
155
156 exeinto /opt/firebird/UDF
157 doexe UDF/*.so
158 exeinto /opt/firebird/intl
159 doexe intl/*.so
160 newexe intl/libfbintl.so fbintl
161
162 diropts -m 755 -o firebird -g firebird
163 dodir /var/log/firebird
164 dodir /var/run/firebird
165 keepdir /var/log/firebird
166 keepdir /var/run/firebird
167
168 touch "${D}"/var/log/firebird/firebird.log
169 chown firebird:firebird "${D}"/var/log/firebird/firebird.log
170
171 # create links for split config & log file
172 dosym /etc/firebird/aliases.conf /opt/firebird/aliases.conf
173 dosym /etc/firebird/security2.fdb /opt/firebird/security2.fdb
174 dosym /etc/firebird/firebird.conf /opt/firebird/firebird.conf
175 dosym /etc/firebird/fbintl.conf /opt/firebird/intl/fbintl.conf
176 dosym /var/log/firebird/firebird.log /opt/firebird/firebird.log
177
178 local my_lib=$(get_libdir)
179
180 # firebird has a problem with lib64 dir name, bug?
181 if [ ${my_lib} == "lib64" ] ; then
182 dosym ./lib64 /opt/firebird/lib
183 fi
184
185 # create links for backwards compatibility dosym puts link in / :(
186 cd "${D}/opt/firebird/${my_lib}/"
187 ln -s libfbclient.so libgds.so
188 ln -s libfbclient.so libgds.so.0
189 ln -s libfbclient.so libfbclient.so.1
190
191 # create system links for ld
192 dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so
193 dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so.0
194 dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libfbclient.so
195 dosym ../../opt/firebird/${my_lib}/libfbclient.so.1 /usr/${my_lib}/libfbclient.so.1
196 dosym ../../opt/firebird/${my_lib}/libfbclient.so.2 /usr/${my_lib}/libfbclient.so.2
197
198 if use xinetd ; then
199 insinto /etc/xinetd.d
200 newins "${S}/gen/install/misc/${PN}.xinetd" "${PN}" || die "newins xinetd file failed"
201 else
202 newinitd "${FILESDIR}/${PN}.init.d" ${PN}
203 newconfd "${FILESDIR}/firebird.conf.d" ${PN}
204 fperms 640 /etc/conf.d/firebird
205 fi
206 doenvd "${FILESDIR}/70${PN}"
207
208 # Install docs
209 use doc && dodoc "${WORKDIR}"/manuals/*
210 }
211
212 pkg_postinst() {
213 # Hack to fix ownership/perms
214 chown -fR firebird:firebird /etc/firebird /opt/firebird
215 chmod 750 /etc/firebird
216
217 elog
218 elog "1. If haven't done so already, please run:"
219 elog
220 elog " \"emerge --config =${PF}\""
221 elog
222 elog " to create lockfiles, set permissions and more"
223 elog
224 elog "2. Firebird now runs with it's own user. Please remember to"
225 elog " set permissions to firebird:firebird on databases you "
226 elog " already have (if any)."
227 elog
228
229 if ! use xinetd
230 then
231 elog "3. You've built the stand alone deamon version,"
232 elog " SuperServer. If you were using pre 1.5.0 ebuilds"
233 elog " you're probably have one installed via xinetd. please"
234 elog " remember to disable it (usually in /etc/xinetd.d/firebird),"
235 elog " since the current one has it's own init script under"
236 elog " /etc/init.d"
237 fi
238 }
239
240 pkg_config() {
241 cd /opt/firebird
242
243 # Create Lock files
244 for i in isc_init1 isc_lock1 isc_event1
245 do
246 FileName=$i.`hostname`
247 touch $FileName
248 chown firebird:firebird $FileName
249 chmod ug=rw,o= $FileName
250 done
251
252 # if found /etc/security.gdb from previous install, backup, and restore as
253 # /etc/security2.fdb
254 if [ -f /etc/firebird/security.gdb ]
255 then
256 # if we have scurity2.fdb already, back it 1st
257 if [ -f /etc/firebird/security2.fdb ] ; then
258 cp /etc/firebird/security2.fdb /etc/firebird/security2.fdb.old
259 fi
260 gbak -B /etc/firebird/security.gdb /etc/firebird/security.gbk
261 gbak -R /etc/firebird/security.gbk /etc/firebird/security2.fdb
262 mv /etc/firebird/security.gdb /etc/firebird/security.gdb.old
263 rm /etc/firebird/security.gbk
264
265 # make sure they are readable only to firebird
266 chown firebird:firebird /etc/firebird/{security.*,security2.*}
267 chmod 660 /etc/firebird/{security.*,security2.*}
268
269 einfo
270 einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
271 einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
272 einfo "it's backed to security2.fdb.old (all under /etc/firebird)."
273 einfo
274 fi
275
276 # we need to enable local access to the server
277 if [ ! -f /etc/hosts.equiv ] ; then
278 touch /etc/hosts.equiv
279 chown root:0 /etc/hosts.equiv
280 chmod u=rw,go=r /etc/hosts.equiv
281 fi
282
283 # add 'localhost.localdomain' to the hosts.equiv file...
284 if grep -q 'localhost.localdomain$' /etc/hosts.equiv 2>/dev/null; then
285 echo "localhost.localdomain" >> /etc/hosts.equiv
286 einfo "Added localhost.localdomain to /etc/hosts.equiv"
287 fi
288
289 # add 'localhost' to the hosts.equiv file...
290 if grep -q 'localhost$' /etc/hosts.equiv 2>/dev/null; then
291 echo "localhost" >> /etc/hosts.equiv
292 einfo "Added localhost to /etc/hosts.equiv"
293 fi
294
295 HS_NAME=`hostname`
296 if grep -q ${HS_NAME} /etc/hosts.equiv 2>/dev/null; then
297 echo "${HS_NAME}" >> /etc/hosts.equiv
298 einfo "Added ${HS_NAME} to /etc/hosts.equiv"
299 fi
300
301 einfo "If you're using UDFs, please remember to move them"
302 einfo "to /opt/firebird/UDF"
303 }
304
305
306
307 --
308 gentoo-commits@g.o mailing list