1 |
commit: a5fb1a9f010c2eba9380baa55b9269add19a61b0 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 6 11:50:00 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 9 11:26:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5fb1a9f |
7 |
|
8 |
dev-db/firebird: drop awfully broken firebird-2*. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/639614 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/6467 |
12 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
13 |
|
14 |
dev-db/firebird/Manifest | 1 - |
15 |
.../firebird-2.5.1.26351.0-superclassic.patch | 12 - |
16 |
.../files/firebird-2.5.3.26780.0-deps-flags.patch | 59 ----- |
17 |
.../files/firebird-2.5.7.27050.0-gcc6.patch | 35 --- |
18 |
dev-db/firebird/files/firebird.conf.d.2.5 | 7 - |
19 |
dev-db/firebird/files/firebird.init.d.2.5 | 30 --- |
20 |
dev-db/firebird/files/firebird.xinetd | 11 - |
21 |
dev-db/firebird/firebird-2.5.7.27050.0.ebuild | 282 --------------------- |
22 |
dev-db/firebird/metadata.xml | 1 - |
23 |
9 files changed, 438 deletions(-) |
24 |
|
25 |
diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest |
26 |
index 73ac09fcacf..d2a44ea8aed 100644 |
27 |
--- a/dev-db/firebird/Manifest |
28 |
+++ b/dev-db/firebird/Manifest |
29 |
@@ -1,3 +1,2 @@ |
30 |
-DIST Firebird-2.5.7.27050-0.tar.bz2 13402538 BLAKE2B fbe7af7b5cfa738459df7fd1dba0b897b04f2f6c8244d1f951e18c908c298e91e89b2300677c45834103e5215856341f673040b80b761921e68b1dc05381938b SHA512 793d47a8c8395dfb6f8417253950034dcd61b6b8337e654510d2d133396e5d1fccf615fc614bbe3129a64a101e956cb8b54d7460b06e72b245518f1b5af99327 |
31 |
DIST Firebird-3.0.2.32703-0.tar.bz2 9536416 BLAKE2B 58afbdb430adb5f9aafe33d5459fb4fe8607e9440b6b114291777e43d447a7a5b5696c9f5903a10b63217a15836ce6386569e636369e37bf83195ec0b96e4fc6 SHA512 5950d1689c77fbcda22f1bd8015321d887dec3c7ef39665428a8bda9122838e767b168442ce7d8fb3b9b80cbd1206725b0f54bd215c5c9eb1d322b546cb042e6 |
32 |
DIST ib_b60_doc.zip 10530848 BLAKE2B b4008b3e8b0416014d024cbbc9ac2e648ad671c71b91b7aeb0eedf0f8479aef80e22aff7105c5e7417e88bcf57f2cdacbc2d5f51a2ef7fb870f9d361c5f0ed6d SHA512 59eccf1d6b1f0410eddbc5967fd77a3d00e09749640b3f81e2f8b624f5a45461dffad4af5ec61488e941fb3d3af266fe86c0b56e6b7e023239537cb6557a145a |
33 |
|
34 |
diff --git a/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch b/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch |
35 |
deleted file mode 100644 |
36 |
index 3891cc776fa..00000000000 |
37 |
--- a/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch |
38 |
+++ /dev/null |
39 |
@@ -1,12 +0,0 @@ |
40 |
-diff -Naur orig/builds/posix/Makefile.in.firebird builds/posix/Makefile.in.firebird |
41 |
---- orig/builds/posix/Makefile.in.firebird 2010-11-09 12:42:45.000000000 -0500 |
42 |
-+++ builds/posix/Makefile.in.firebird 2011-03-07 20:26:56.612573632 -0500 |
43 |
-@@ -332,7 +332,7 @@ |
44 |
- .PHONY: libfbembed inet_server fb_smp_server embed_gfix embed_gbak embed_isql |
45 |
- .PHONY: embed_gpre embed_util |
46 |
- |
47 |
--classic_targets: $(PLAT_CLASSIC_PRE_TARGET) libfbembed inet_server fb_smp_server embed_gfix embed_gbak embed_isql \ |
48 |
-+classic_targets: $(PLAT_CLASSIC_PRE_TARGET) libfbembed fbserver fb_smp_server embed_gfix embed_gbak embed_isql \ |
49 |
- embed_gpre libfbclient embed_util embed_gdef embed_qli embed_fbudf $(PLAT_CLASSIC_POST_TARGET) |
50 |
- |
51 |
- libfbembed: |
52 |
|
53 |
diff --git a/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch b/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch |
54 |
deleted file mode 100644 |
55 |
index 506a6c07a79..00000000000 |
56 |
--- a/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch |
57 |
+++ /dev/null |
58 |
@@ -1,59 +0,0 @@ |
59 |
-diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird |
60 |
---- Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird 2010-11-09 12:42:45.000000000 -0500 |
61 |
-+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird 2011-03-28 15:10:09.814370706 -0400 |
62 |
-@@ -158,7 +158,7 @@ |
63 |
- # some complications particularly for super in needing to start the server |
64 |
- # that you are currently building. MOD 28-July-2002 |
65 |
- |
66 |
--firebird_basic: btyacc_binary external_libraries firebird_boot basic_targets |
67 |
-+firebird_basic: firebird_boot basic_targets |
68 |
- |
69 |
- firebird_boot: updateBuildNum boot_phase1 boot_phase2 |
70 |
- |
71 |
-diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults |
72 |
---- Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults 2010-11-09 12:42:45.000000000 -0500 |
73 |
-+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults 2011-03-28 15:21:26.904370708 -0400 |
74 |
-@@ -138,7 +138,7 @@ |
75 |
- AR= ar @AR_OPTIONS@ crsu |
76 |
- LN= @LN_S@ |
77 |
- RANLIB= @RANLIB@ |
78 |
--BTYACC=$(ROOT)/extern/btyacc/btyacc |
79 |
-+BTYACC=/usr/bin/btyacc |
80 |
- |
81 |
- CC = @CC@ |
82 |
- CXX = @CXX@ |
83 |
-diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux |
84 |
---- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux 2010-11-09 12:42:45.000000000 -0500 |
85 |
-+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux 2011-03-25 21:38:29.031037374 -0400 |
86 |
-@@ -18,11 +18,10 @@ |
87 |
- # |
88 |
- # 2 Oct 2002, Nickolay Samofatov - Major cleanup |
89 |
- |
90 |
--COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 |
91 |
--OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer |
92 |
-+COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -MMD -fPIC -fmessage-length=0 |
93 |
- WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable |
94 |
- |
95 |
--PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) |
96 |
-+PROD_FLAGS=$(COMMON_FLAGS) |
97 |
- #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS) |
98 |
- DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS) |
99 |
- |
100 |
-diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 |
101 |
---- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 2010-11-09 12:42:45.000000000 -0500 |
102 |
-+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 2011-03-25 21:39:15.134370707 -0400 |
103 |
-@@ -18,12 +18,11 @@ |
104 |
- # |
105 |
- # 2 Oct 2002, Nickolay Samofatov - Major cleanup |
106 |
- |
107 |
--COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 |
108 |
--OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer |
109 |
-+COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 |
110 |
- WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable |
111 |
- CXXFLAGS:= $(CXXFLAGS) -fno-rtti |
112 |
- |
113 |
--PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) |
114 |
-+PROD_FLAGS=$(COMMON_FLAGS) |
115 |
- #DEV_FLAGS=-DUSE_VALGRIND $(COMMON_FLAGS) $(WARN_FLAGS) |
116 |
- DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) |
117 |
- |
118 |
|
119 |
diff --git a/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch b/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch |
120 |
deleted file mode 100644 |
121 |
index 312f3576bcc..00000000000 |
122 |
--- a/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch |
123 |
+++ /dev/null |
124 |
@@ -1,35 +0,0 @@ |
125 |
-Bug: https://bugs.gentoo.org/608294 |
126 |
-PR: https://github.com/FirebirdSQL/firebird/pull/104 |
127 |
- |
128 |
---- a/src/common/classes/alloc.h |
129 |
-+++ b/src/common/classes/alloc.h |
130 |
-@@ -498,10 +498,14 @@ using Firebird::MemoryPool; |
131 |
- |
132 |
- inline static MemoryPool* getDefaultMemoryPool() { return Firebird::MemoryPool::processMemoryPool; } |
133 |
- |
134 |
-+#if (( ! __GNUC__ ) || ( __GNUC__ < 6 )) |
135 |
-+ |
136 |
- // Global versions of operators new and delete |
137 |
- void* operator new(size_t s) THROW_BAD_ALLOC; |
138 |
- void* operator new[](size_t s) THROW_BAD_ALLOC; |
139 |
- |
140 |
-+#endif |
141 |
-+ |
142 |
- void operator delete(void* mem) throw(); |
143 |
- void operator delete[](void* mem) throw(); |
144 |
- |
145 |
---- a/src/dudley/exe.epp |
146 |
-+++ b/src/dudley/exe.epp |
147 |
-@@ -2884,9 +2884,9 @@ static USHORT get_prot_mask( const TEXT * relation, TEXT * field) |
148 |
- blr_parameter, 0, 0, 0, |
149 |
- blr_parameter, 0, 1, 0, |
150 |
- blr_parameter, 1, 0, 0, |
151 |
-- blr_end, |
152 |
-- blr_end, |
153 |
-- blr_end, |
154 |
-+ static_cast<SCHAR>(blr_end), |
155 |
-+ static_cast<SCHAR>(blr_end), |
156 |
-+ static_cast<SCHAR>(blr_end), |
157 |
- blr_eoc |
158 |
- }; |
159 |
- static FB_API_HANDLE req_handle; |
160 |
|
161 |
diff --git a/dev-db/firebird/files/firebird.conf.d.2.5 b/dev-db/firebird/files/firebird.conf.d.2.5 |
162 |
deleted file mode 100644 |
163 |
index 625963d0c13..00000000000 |
164 |
--- a/dev-db/firebird/files/firebird.conf.d.2.5 |
165 |
+++ /dev/null |
166 |
@@ -1,7 +0,0 @@ |
167 |
-FBUSER=firebird |
168 |
-FBGROUP=firebird |
169 |
-FIREBIRD=/usr/lib/firebird |
170 |
-FBGUARD=/usr/sbin/fbguard |
171 |
-PIDFILE=/var/run/firebird/firebird.pid |
172 |
-FB_OPTS="-forever -daemon -pidfile $PIDFILE" |
173 |
-LD_LIBRARY_PATH=/usr/lib/:/usr/lib/firebird/intl/:/usr/lib/firebird/plugins/:/usr/lib/firebird/UDF/ |
174 |
|
175 |
diff --git a/dev-db/firebird/files/firebird.init.d.2.5 b/dev-db/firebird/files/firebird.init.d.2.5 |
176 |
deleted file mode 100644 |
177 |
index 9c9bfb92d60..00000000000 |
178 |
--- a/dev-db/firebird/files/firebird.init.d.2.5 |
179 |
+++ /dev/null |
180 |
@@ -1,30 +0,0 @@ |
181 |
-#!/sbin/openrc-run |
182 |
-# Copyright 1999-2013 Gentoo Foundation |
183 |
-# Distributed under the terms of the GNU General Public License v2 |
184 |
- |
185 |
-depend() { |
186 |
- need net |
187 |
-} |
188 |
- |
189 |
-start_pre() { |
190 |
- checkpath -d -o $FBUSER "$(dirname $PIDFILE)" |
191 |
-} |
192 |
- |
193 |
-start(){ |
194 |
- ebegin "Starting Firebird server" |
195 |
- start-stop-daemon --start --pidfile $PIDFILE --user $FBUSER --group $FBGROUP --exec $FBGUARD -- $FB_OPTS |
196 |
- eend $? |
197 |
-} |
198 |
- |
199 |
-stop(){ |
200 |
- ebegin "Stopping Firebird server" |
201 |
- start-stop-daemon --stop --name fbguard |
202 |
- eend $? |
203 |
-} |
204 |
- |
205 |
-restart(){ |
206 |
- svc_stop |
207 |
- sleep 1 |
208 |
- svc_start |
209 |
-} |
210 |
- |
211 |
|
212 |
diff --git a/dev-db/firebird/files/firebird.xinetd b/dev-db/firebird/files/firebird.xinetd |
213 |
deleted file mode 100644 |
214 |
index 01fc102ee3a..00000000000 |
215 |
--- a/dev-db/firebird/files/firebird.xinetd |
216 |
+++ /dev/null |
217 |
@@ -1,11 +0,0 @@ |
218 |
-service gds_db |
219 |
-{ |
220 |
- flags = REUSE |
221 |
- socket_type = stream |
222 |
- wait = no |
223 |
- user = firebird |
224 |
- log_on_success += USERID |
225 |
- log_on_failure += USERID |
226 |
- server = /usr/bin/fb_inet_server |
227 |
- disable = yes |
228 |
-} |
229 |
|
230 |
diff --git a/dev-db/firebird/firebird-2.5.7.27050.0.ebuild b/dev-db/firebird/firebird-2.5.7.27050.0.ebuild |
231 |
deleted file mode 100644 |
232 |
index 68a0c71d850..00000000000 |
233 |
--- a/dev-db/firebird/firebird-2.5.7.27050.0.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,282 +0,0 @@ |
236 |
-# Copyright 1999-2017 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=6 |
240 |
- |
241 |
-inherit autotools flag-o-matic user versionator |
242 |
- |
243 |
-MY_P=${PN/f/F}-$(replace_version_separator 4 -) |
244 |
- |
245 |
-DESCRIPTION="Relational database offering many ANSI SQL:2003 and some SQL:2008 features" |
246 |
-HOMEPAGE="https://www.firebirdsql.org/" |
247 |
-SRC_URI=" |
248 |
- mirror://sourceforge/firebird/${MY_P}.tar.bz2 |
249 |
- doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )" |
250 |
- |
251 |
-LICENSE="IDPL Interbase-1.0" |
252 |
-SLOT="0" |
253 |
-KEYWORDS="~amd64 ~x86" |
254 |
- |
255 |
-IUSE="debug doc examples +superserver xinetd" |
256 |
-REQUIRED_USE="?? ( superserver xinetd )" |
257 |
- |
258 |
-CDEPEND=" |
259 |
- dev-libs/icu:= |
260 |
- dev-libs/libedit |
261 |
-" |
262 |
-DEPEND="${CDEPEND} |
263 |
- >=dev-util/btyacc-3.0-r2 |
264 |
- doc? ( app-arch/unzip ) |
265 |
-" |
266 |
-RDEPEND="${CDEPEND} |
267 |
- xinetd? ( virtual/inetd ) |
268 |
- !sys-cluster/ganglia |
269 |
-" |
270 |
- |
271 |
-RESTRICT="userpriv" |
272 |
- |
273 |
-PATCHES=( |
274 |
- "${FILESDIR}"/${PN}-2.5.3.26780.0-deps-flags.patch |
275 |
- "${FILESDIR}"/${P}-gcc6.patch |
276 |
-) |
277 |
- |
278 |
-S="${WORKDIR}/${MY_P}" |
279 |
- |
280 |
-pkg_setup() { |
281 |
- enewgroup firebird 450 |
282 |
- enewuser firebird 450 /bin/sh /usr/$(get_libdir)/firebird firebird |
283 |
-} |
284 |
- |
285 |
-check_sed() { |
286 |
- MSG="sed of $3, required $2 line(s) modified $1" |
287 |
- einfo "${MSG}" |
288 |
- [[ $1 -ge $2 ]] || die "${MSG}" |
289 |
-} |
290 |
- |
291 |
-src_unpack() { |
292 |
- unpack "${MY_P}.tar.bz2" |
293 |
- if use doc; then |
294 |
- # Unpack docs |
295 |
- mkdir "manuals" || die |
296 |
- cd "manuals" || die |
297 |
- unpack ib_b60_doc.zip |
298 |
- fi |
299 |
-} |
300 |
- |
301 |
-src_prepare() { |
302 |
- use xinetd || eapply "${FILESDIR}"/${PN}-2.5.1.26351.0-superclassic.patch |
303 |
- |
304 |
- default |
305 |
- |
306 |
- # Rename references to isql to fbsql |
307 |
- # sed vs patch for portability and addtional location changes |
308 |
- check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \ |
309 |
- src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line |
310 |
- check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \ |
311 |
- src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines |
312 |
- check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \ |
313 |
- -e 's:isql :fbsql :w /dev/stdout' \ |
314 |
- -e 's:ISQL :FBSQL :w /dev/stdout' \ |
315 |
- src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines |
316 |
- |
317 |
- find . -name \*.sh -exec chmod +x {} + || die |
318 |
- rm -r extern/{btyacc,editline,icu} || die |
319 |
- |
320 |
- mv configure.in configure.ac || die "failed to mv configure.in configure.ac" |
321 |
- |
322 |
- eautoreconf |
323 |
-} |
324 |
- |
325 |
-src_configure() { |
326 |
- filter-flags -fprefetch-loop-arrays |
327 |
- filter-mfpmath sse |
328 |
- # bug 639614 |
329 |
- append-cxxflags -flifetime-dse=1 -fno-sized-deallocation -fno-delete-null-pointer-checks |
330 |
- |
331 |
- econf \ |
332 |
- --prefix=/usr/$(get_libdir)/firebird \ |
333 |
- $(use_enable superserver) \ |
334 |
- $(use_enable debug) \ |
335 |
- --with-editline \ |
336 |
- --with-system-editline \ |
337 |
- --with-system-icu \ |
338 |
- --with-fbbin=/usr/bin \ |
339 |
- --with-fbsbin=/usr/sbin \ |
340 |
- --with-fbconf=/etc/${PN} \ |
341 |
- --with-fblib=/usr/$(get_libdir) \ |
342 |
- --with-fbinclude=/usr/include \ |
343 |
- --with-fbdoc=/usr/share/doc/${P} \ |
344 |
- --with-fbudf=/usr/$(get_libdir)/${PN}/UDF \ |
345 |
- --with-fbsample=/usr/share/doc/${P}/examples \ |
346 |
- --with-fbsample-db=/usr/share/doc/${P}/examples/db \ |
347 |
- --with-fbhelp=/usr/$(get_libdir)/${PN}/help \ |
348 |
- --with-fbintl=/usr/$(get_libdir)/${PN}/intl \ |
349 |
- --with-fbmisc=/usr/share/${PN} \ |
350 |
- --with-fbsecure-db=/etc/${PN} \ |
351 |
- --with-fbmsg=/usr/$(get_libdir)/${PN} \ |
352 |
- --with-fblog=/var/log/${PN}/ \ |
353 |
- --with-fbglock=/var/run/${PN} \ |
354 |
- --with-fbplugins=/usr/$(get_libdir)/${PN}/plugins \ |
355 |
- --with-gnu-ld \ |
356 |
- ${myconf} |
357 |
-} |
358 |
- |
359 |
-src_compile() { |
360 |
- MAKEOPTS="${MAKEOPTS/-j*/-j1} ${MAKEOPTS/-j/CPU=}" |
361 |
- emake |
362 |
-} |
363 |
- |
364 |
-src_install() { |
365 |
- cd "gen/${PN}" || die |
366 |
- |
367 |
- if use doc; then |
368 |
- dodoc "${S}"/doc/*.pdf |
369 |
- find "${WORKDIR}"/manuals -type f -iname "*.pdf" -exec dodoc '{}' + || die |
370 |
- fi |
371 |
- |
372 |
- doheader include/* |
373 |
- |
374 |
- rm lib/libfbstatic.a || die "failed to remove libfbstatic.a" |
375 |
- |
376 |
- insinto /usr/$(get_libdir) |
377 |
- dolib.so lib/*.so* |
378 |
- |
379 |
- # links for backwards compatibility |
380 |
- dosym libfbclient.so /usr/$(get_libdir)/libgds.so |
381 |
- dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0 |
382 |
- dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1 |
383 |
- |
384 |
- insinto /usr/$(get_libdir)/${PN} |
385 |
- doins *.msg |
386 |
- |
387 |
- einfo "Renaming isql -> fbsql" |
388 |
- mv bin/isql bin/fbsql || die "failed to rename isql -> fbsql" |
389 |
- |
390 |
- local bins="fbsql fbsvcmgr fbtracemgr gbak gdef gfix gpre gsec gstat nbackup qli" |
391 |
- for bin in ${bins}; do |
392 |
- dobin bin/${bin} |
393 |
- done |
394 |
- |
395 |
- dosbin bin/fb_lock_print |
396 |
- # SuperServer |
397 |
- if use superserver ; then |
398 |
- dosbin bin/{fbguard,fbserver} |
399 |
- # ClassicServer |
400 |
- elif use xinetd ; then |
401 |
- dosbin bin/fb_inet_server |
402 |
- # SuperClassic |
403 |
- else |
404 |
- dosbin bin/{fbguard,fb_smp_server} |
405 |
- |
406 |
- #Temp should not be necessary, need to patch/fix |
407 |
- dosym ../../libib_util.so /usr/$(get_libdir)/${PN}/lib/libib_util.so |
408 |
- fi |
409 |
- |
410 |
- exeinto /usr/bin/${PN} |
411 |
- exeopts -m0755 |
412 |
- doexe bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh |
413 |
- |
414 |
- insinto /usr/$(get_libdir)/${PN}/help |
415 |
- doins help/help.fdb |
416 |
- |
417 |
- exeinto /usr/$(get_libdir)/firebird/intl |
418 |
- dolib.so intl/libfbintl.so |
419 |
- dosym ../../libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl |
420 |
- dosym libfbintl.so /usr/$(get_libdir)/libfbintl.so.1 |
421 |
- dosym /etc/firebird/fbintl.conf /usr/$(get_libdir)/${PN}/intl/fbintl.conf |
422 |
- |
423 |
- exeinto /usr/$(get_libdir)/${PN}/plugins |
424 |
- dolib.so plugins/libfbtrace.so |
425 |
- dosym ../../libfbtrace.so /usr/$(get_libdir)/${PN}/plugins/libfbtrace.so |
426 |
- dosym libfbtrace.so /usr/$(get_libdir)/libfbtrace.so.0 |
427 |
- |
428 |
- exeinto /usr/$(get_libdir)/${PN}/UDF |
429 |
- doexe UDF/*.so |
430 |
- |
431 |
- insinto /usr/share/${PN}/upgrade |
432 |
- doins -r "${S}"/src/misc/upgrade/v2/* |
433 |
- |
434 |
- insinto /etc/${PN} |
435 |
- insopts -m0644 -o firebird -g firebird |
436 |
- doins ../install/misc/*.conf |
437 |
- insopts -m0660 -o firebird -g firebird |
438 |
- doins security2.fdb |
439 |
- |
440 |
- if use xinetd ; then |
441 |
- insinto /etc/xinetd.d |
442 |
- newins "${FILESDIR}/${PN}.xinetd" ${PN} |
443 |
- else |
444 |
- newinitd "${FILESDIR}/${PN}.init.d.2.5" ${PN} |
445 |
- newconfd "${FILESDIR}/${PN}.conf.d.2.5" ${PN} |
446 |
- fperms 640 /etc/conf.d/${PN} |
447 |
- fi |
448 |
- |
449 |
- insinto /etc/logrotate.d |
450 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
451 |
- fperms 0644 /etc/logrotate.d/${PN} |
452 |
- |
453 |
- diropts -m 755 -o firebird -g firebird |
454 |
- dodir /var/log/${PN} |
455 |
- keepdir /var/log/${PN} |
456 |
- |
457 |
- use examples && docinto examples |
458 |
-} |
459 |
- |
460 |
-pkg_postinst() { |
461 |
- # Hack to fix ownership/perms |
462 |
- chown -fR firebird:firebird "${ROOT}/etc/${PN}" "${ROOT}/usr/$(get_libdir)/${PN}" |
463 |
- chmod 750 "${ROOT}/etc/${PN}" |
464 |
-} |
465 |
- |
466 |
-pkg_config() { |
467 |
- # if found /etc/security.gdb from previous install, backup, and restore as |
468 |
- # /etc/security2.fdb |
469 |
- if [[ -f "${ROOT}/etc/firebird/security.gdb" ]] ; then |
470 |
- # if we have scurity2.fdb already, back it 1st |
471 |
- if [[ -f "${ROOT}/etc/firebird/security2.fdb" ]] ; then |
472 |
- cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old" || die |
473 |
- fi |
474 |
- gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk" || die |
475 |
- gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb" || die |
476 |
- mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old" || die |
477 |
- rm "${ROOT}/etc/firebird/security.gbk" || die |
478 |
- |
479 |
- # make sure they are readable only to firebird |
480 |
- chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}" || die |
481 |
- chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}" || die |
482 |
- |
483 |
- echo |
484 |
- einfo "Converted old security.gdb to security2.fdb, security.gdb has been " |
485 |
- einfo "renamed to security.gdb.old. if you had previous security2.fdb, " |
486 |
- einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)." |
487 |
- echo |
488 |
- fi |
489 |
- |
490 |
- # we need to enable local access to the server |
491 |
- if [[ ! -f "${ROOT}/etc/hosts.equiv" ]] ; then |
492 |
- touch "${ROOT}/etc/hosts.equiv" || die |
493 |
- chown root:0 "${ROOT}/etc/hosts.equiv" || die |
494 |
- chmod u=rw,go=r "${ROOT}/etc/hosts.equiv" || die |
495 |
- fi |
496 |
- |
497 |
- # add 'localhost.localdomain' to the hosts.equiv file... |
498 |
- if grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" ; then |
499 |
- echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv" || die |
500 |
- einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv" |
501 |
- fi |
502 |
- |
503 |
- # add 'localhost' to the hosts.equiv file... |
504 |
- if grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" ; then |
505 |
- echo "localhost" >> "${ROOT}/etc/hosts.equiv" || die |
506 |
- einfo "Added localhost to ${ROOT}/etc/hosts.equiv" |
507 |
- fi |
508 |
- |
509 |
- HS_NAME=`hostname` |
510 |
- if grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" ; then |
511 |
- echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv" || die |
512 |
- einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv" |
513 |
- fi |
514 |
- |
515 |
- einfo "If you're using UDFs, please remember to move them" |
516 |
- einfo "to /usr/$(get_libdir)/firebird/UDF" |
517 |
-} |
518 |
|
519 |
diff --git a/dev-db/firebird/metadata.xml b/dev-db/firebird/metadata.xml |
520 |
index a6eba6edad0..dfb6ac14cec 100644 |
521 |
--- a/dev-db/firebird/metadata.xml |
522 |
+++ b/dev-db/firebird/metadata.xml |
523 |
@@ -9,7 +9,6 @@ |
524 |
in production systems, under a variety of names, since 1981. |
525 |
</longdescription> |
526 |
<use> |
527 |
- <flag name="superserver">Install SuperServer</flag> |
528 |
<flag name="server">Install the server components of Firebird, not just the client</flag> |
529 |
<flag name="xinetd">Install ClassicServer</flag> |
530 |
</use> |