1 |
commit: 4d44504813bb967b88a83a61b31b42ecfd421758 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 8 14:13:27 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 8 16:51:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d445048 |
7 |
|
8 |
dev-db/firebird: 3.0.4.33054.0 version bump |
9 |
|
10 |
Bug: https://bugs.gentoo.org/686150 |
11 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
dev-db/firebird/Manifest | 1 + |
15 |
dev-db/firebird/firebird-3.0.4.33054.0.ebuild | 230 ++++++++++++++++++++++++++ |
16 |
2 files changed, 231 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest |
19 |
index d2a44ea8aed..ad827f3ecc0 100644 |
20 |
--- a/dev-db/firebird/Manifest |
21 |
+++ b/dev-db/firebird/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST Firebird-3.0.2.32703-0.tar.bz2 9536416 BLAKE2B 58afbdb430adb5f9aafe33d5459fb4fe8607e9440b6b114291777e43d447a7a5b5696c9f5903a10b63217a15836ce6386569e636369e37bf83195ec0b96e4fc6 SHA512 5950d1689c77fbcda22f1bd8015321d887dec3c7ef39665428a8bda9122838e767b168442ce7d8fb3b9b80cbd1206725b0f54bd215c5c9eb1d322b546cb042e6 |
24 |
+DIST Firebird-3.0.4.33054-0.tar.bz2 9778106 BLAKE2B 4b9116cbc351e0c2e10d15e6ea8e9754a383da77d8e016337604143eb2677ff2519da34b1a5c2e9b7b071fa9774eddbb535e9f926058ee626573b0411f6c042d SHA512 a346ebd53aeccf0b33eac5d35c3c3356624c1fbd0ad897173b3f68d940143062b28460a2822df807e8e8a1ea8792ebf98ed33e5b3ae273d86e6e36295a7fc8ad |
25 |
DIST ib_b60_doc.zip 10530848 BLAKE2B b4008b3e8b0416014d024cbbc9ac2e648ad671c71b91b7aeb0eedf0f8479aef80e22aff7105c5e7417e88bcf57f2cdacbc2d5f51a2ef7fb870f9d361c5f0ed6d SHA512 59eccf1d6b1f0410eddbc5967fd77a3d00e09749640b3f81e2f8b624f5a45461dffad4af5ec61488e941fb3d3af266fe86c0b56e6b7e023239537cb6557a145a |
26 |
|
27 |
diff --git a/dev-db/firebird/firebird-3.0.4.33054.0.ebuild b/dev-db/firebird/firebird-3.0.4.33054.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c7b0169cad0 |
30 |
--- /dev/null |
31 |
+++ b/dev-db/firebird/firebird-3.0.4.33054.0.ebuild |
32 |
@@ -0,0 +1,230 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+MY_P=${PN/f/F}-$(ver_rs 4 '-') |
39 |
+inherit autotools flag-o-matic user |
40 |
+ |
41 |
+DESCRIPTION="Relational database offering many ANSI SQL:2003 and some SQL:2008 features" |
42 |
+HOMEPAGE="https://www.firebirdsql.org/" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/FirebirdSQL/firebird/releases/download/R$(ver_rs 1-3 '_' $(ver_cut 1-3))/${MY_P}.tar.bz2 |
45 |
+ doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )" |
46 |
+ |
47 |
+LICENSE="IDPL Interbase-1.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="doc examples +server xinetd" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ >=dev-util/btyacc-3.0-r2 |
54 |
+ doc? ( app-arch/unzip ) |
55 |
+" |
56 |
+# FIXME: cloop? |
57 |
+DEPEND=" |
58 |
+ dev-libs/icu:= |
59 |
+ dev-libs/libedit |
60 |
+ dev-libs/libtommath |
61 |
+" |
62 |
+RDEPEND="${DEPEND} |
63 |
+ xinetd? ( virtual/inetd ) |
64 |
+ !sys-cluster/ganglia |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_P}" |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/${PN}-3.0.2.32703.0-unbundle.patch |
71 |
+ "${FILESDIR}"/${PN}-3.0.2.32703.0-cloop-compiler.patch |
72 |
+) |
73 |
+ |
74 |
+pkg_pretend() { |
75 |
+ if [[ -e /var/run/${PN}/${PN}.pid ]] ; then |
76 |
+ ewarn |
77 |
+ ewarn "The presence of server connections may prevent isql or gsec" |
78 |
+ ewarn "from establishing an embedded connection. Accordingly," |
79 |
+ ewarn "creating employee.fdb or security3.fdb could fail." |
80 |
+ ewarn "It is more secure to stop the firebird daemon before running emerge." |
81 |
+ ewarn |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ enewgroup firebird 450 |
87 |
+ enewuser firebird 450 /bin/sh /usr/$(get_libdir)/firebird firebird |
88 |
+} |
89 |
+ |
90 |
+check_sed() { |
91 |
+ MSG="sed of $3, required $2 line(s) modified $1" |
92 |
+ einfo "${MSG}" |
93 |
+ [[ $1 -ge $2 ]] || die "${MSG}" |
94 |
+} |
95 |
+ |
96 |
+src_unpack() { |
97 |
+ unpack "${MY_P}.tar.bz2" |
98 |
+ if use doc; then |
99 |
+ # Unpack docs |
100 |
+ mkdir "manuals" || die |
101 |
+ cd "manuals" || die |
102 |
+ unpack ib_b60_doc.zip |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+src_prepare() { |
107 |
+ default |
108 |
+ |
109 |
+ # Rename references to isql to fbsql |
110 |
+ # sed vs patch for portability and addtional location changes |
111 |
+ check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \ |
112 |
+ src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line |
113 |
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \ |
114 |
+ src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines |
115 |
+ check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \ |
116 |
+ -e 's:isql :fbsql :w /dev/stdout' \ |
117 |
+ -e 's:ISQL :FBSQL :w /dev/stdout' \ |
118 |
+ src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines |
119 |
+ |
120 |
+ find . -name \*.sh -exec chmod +x {} + || die |
121 |
+ rm -r extern/{btyacc,editline,icu} || die |
122 |
+ |
123 |
+ eautoreconf |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ filter-flags -fprefetch-loop-arrays |
128 |
+ filter-mfpmath sse |
129 |
+ |
130 |
+ # otherwise this doesnt build with gcc-6 |
131 |
+ # http://tracker.firebirdsql.org/browse/CORE-5099 |
132 |
+ append-cflags -fno-sized-deallocation -fno-delete-null-pointer-checks |
133 |
+ append-cxxflags -fno-sized-deallocation -fno-delete-null-pointer-checks -std=c++11 |
134 |
+ |
135 |
+ local myeconfargs=( |
136 |
+ --prefix=/usr/$(get_libdir)/firebird |
137 |
+ --with-editline |
138 |
+ --with-system-editline |
139 |
+ --with-fbbin=/usr/bin |
140 |
+ --with-fbsbin=/usr/sbin |
141 |
+ --with-fbconf=/etc/${PN} |
142 |
+ --with-fblib=/usr/$(get_libdir) |
143 |
+ --with-fbinclude=/usr/include |
144 |
+ --with-fbdoc=/usr/share/doc/${PF} |
145 |
+ --with-fbudf=/usr/$(get_libdir)/${PN}/UDF |
146 |
+ --with-fbsample=/usr/share/doc/${PF}/examples |
147 |
+ --with-fbsample-db=/usr/share/doc/${PF}/examples/db |
148 |
+ --with-fbhelp=/usr/$(get_libdir)/${PN}/help |
149 |
+ --with-fbintl=/usr/$(get_libdir)/${PN}/intl |
150 |
+ --with-fbmisc=/usr/share/${PN} |
151 |
+ --with-fbsecure-db=/etc/${PN} |
152 |
+ --with-fbmsg=/usr/$(get_libdir)/${PN} |
153 |
+ --with-fblog=/var/log/${PN}/ |
154 |
+ --with-fbglock=/var/run/${PN} |
155 |
+ --with-fbplugins=/usr/$(get_libdir)/${PN}/plugins |
156 |
+ --with-gnu-ld |
157 |
+ ) |
158 |
+ econf "${myeconfargs[@]}" |
159 |
+} |
160 |
+ |
161 |
+# from linux underground, merging into this here |
162 |
+src_install() { |
163 |
+ if use doc; then |
164 |
+ dodoc -r doc |
165 |
+ find "${WORKDIR}"/manuals -type f -iname "*.pdf" -exec dodoc '{}' + || die |
166 |
+ fi |
167 |
+ |
168 |
+ cd "${S}/gen/Release/${PN}" || die |
169 |
+ |
170 |
+ doheader include/* |
171 |
+ dolib.so lib/*.so* |
172 |
+ |
173 |
+ # links for backwards compatibility |
174 |
+ insinto /usr/$(get_libdir) |
175 |
+ dosym libfbclient.so /usr/$(get_libdir)/libgds.so |
176 |
+ dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0 |
177 |
+ dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1 |
178 |
+ |
179 |
+ insinto /usr/share/${PN}/msg |
180 |
+ doins *.msg |
181 |
+ |
182 |
+ use server || return |
183 |
+ |
184 |
+ einfo "Renaming isql -> fbsql" |
185 |
+ mv bin/isql bin/fbsql || die "failed to rename isql -> fbsql" |
186 |
+ |
187 |
+ dobin bin/{fb_config,fbsql,fbsvcmgr,fbtracemgr,gbak,gfix,gpre,gsec,gsplit,gstat,nbackup,qli} |
188 |
+ dosbin bin/{firebird,fbguard,fb_lock_print} |
189 |
+ |
190 |
+ insinto /usr/share/${PN}/help |
191 |
+ # why??? |
192 |
+ insopts -m0660 -o firebird -g firebird |
193 |
+ doins help/help.fdb |
194 |
+ |
195 |
+ exeinto /usr/$(get_libdir)/${PN}/intl |
196 |
+ doexe intl/libfbintl.so |
197 |
+ dosym libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl.so |
198 |
+ |
199 |
+ insinto /usr/$(get_libdir)/${PN}/intl |
200 |
+ insopts -m0644 -o root -g root |
201 |
+ doins intl/fbintl.conf |
202 |
+ |
203 |
+ # plugins |
204 |
+ exeinto /usr/$(get_libdir)/${PN}/plugins |
205 |
+ doexe plugins/*.so |
206 |
+ exeinto /usr/$(get_libdir)/${PN}/plugins/udr |
207 |
+ doexe plugins/udr/*.so |
208 |
+ |
209 |
+ exeinto /usr/$(get_libdir)/${PN}/UDF |
210 |
+ doexe UDF/*.so |
211 |
+ |
212 |
+ # logging (do we really need the perms?) |
213 |
+ diropts -m 755 -o firebird -g firebird |
214 |
+ dodir /var/log/${PN} |
215 |
+ keepdir /var/log/${PN} |
216 |
+ |
217 |
+ # logrotate |
218 |
+ insinto /etc/logrotate.d |
219 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
220 |
+ |
221 |
+ # configuration files |
222 |
+ insinto /etc/${PN}/plugins |
223 |
+ doins plugins/udr_engine.conf |
224 |
+ insinto /etc/${PN} |
225 |
+ doins {databases,fbtrace,firebird,plugins}.conf |
226 |
+ |
227 |
+ # install secutity3.fdb |
228 |
+ insopts -m0660 -o firebird -g firebird |
229 |
+ doins security3.fdb |
230 |
+ |
231 |
+ if use xinetd; then |
232 |
+ insinto /etc/xinetd.d |
233 |
+ newins "${FILESDIR}/${PN}.xinetd.3.0" ${PN} |
234 |
+ else |
235 |
+ newinitd "${FILESDIR}/${PN}.init.d.3.0" ${PN} |
236 |
+ fi |
237 |
+ |
238 |
+ if use examples; then |
239 |
+ cd examples || die |
240 |
+ insinto /usr/share/${PN}/examples |
241 |
+ insopts -m0644 -o root -g root |
242 |
+ doins -r api |
243 |
+ doins -r dbcrypt |
244 |
+ doins -r include |
245 |
+ doins -r interfaces |
246 |
+ doins -r package |
247 |
+ doins -r stat |
248 |
+ doins -r udf |
249 |
+ doins -r udr |
250 |
+ doins CMakeLists.txt |
251 |
+ doins functions.c |
252 |
+ doins README |
253 |
+ insinto /usr/share/${PN}/examples/empbuild |
254 |
+ insopts -m0660 -o firebird -g firebird |
255 |
+ doins empbuild/employee.fdb |
256 |
+ fi |
257 |
+ |
258 |
+ elog "Starting with version 3, server mode is set in firebird.conf" |
259 |
+ elog "The default setting is superserver." |
260 |
+ elog |
261 |
+ elog "If you're using UDFs, please remember to move them to /usr/$(get_libdir)/firebird/UDF" |
262 |
+} |