1 |
patrick 13/01/31 05:57:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firebird-2.5.2.26539.0.ebuild |
5 |
Log: |
6 |
Bump for #449038 |
7 |
|
8 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.112 dev-db/firebird/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.112&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.112&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/firebird/ChangeLog?r1=1.111&r2=1.112 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v |
20 |
retrieving revision 1.111 |
21 |
retrieving revision 1.112 |
22 |
diff -u -r1.111 -r1.112 |
23 |
--- ChangeLog 24 Jan 2013 04:52:12 -0000 1.111 |
24 |
+++ ChangeLog 31 Jan 2013 05:57:24 -0000 1.112 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-db/firebird |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.111 2013/01/24 04:52:12 pinkbyte Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.112 2013/01/31 05:57:24 patrick Exp $ |
30 |
+ |
31 |
+*firebird-2.5.2.26539.0 (31 Jan 2013) |
32 |
+ |
33 |
+ 31 Jan 2013; Patrick Lauer <patrick@g.o> |
34 |
+ +firebird-2.5.2.26539.0.ebuild: |
35 |
+ Bump for #449038 |
36 |
|
37 |
*firebird-2.5.1.26351.0-r1 (24 Jan 2013) |
38 |
*firebird-2.1.3.18185.0-r1 (24 Jan 2013) |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/firebird/firebird-2.5.2.26539.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/firebird/firebird-2.5.2.26539.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/firebird/firebird-2.5.2.26539.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: firebird-2.5.2.26539.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.5.2.26539.0.ebuild,v 1.1 2013/01/31 05:57:24 patrick Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit flag-o-matic eutils autotools multilib user versionator |
56 |
|
57 |
MY_P=${PN/f/F}-$(replace_version_separator 4 -) |
58 |
#MY_P=${PN/f/F}-${PV/_rc/-ReleaseCandidate} |
59 |
|
60 |
DESCRIPTION="A relational database offering many ANSI SQL:2003 and some SQL:2008 features" |
61 |
HOMEPAGE="http://www.firebirdsql.org/" |
62 |
SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2 |
63 |
doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )" |
64 |
|
65 |
LICENSE="IDPL Interbase-1.0" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 -ia64 ~x86" |
68 |
IUSE="doc client superserver xinetd examples debug" |
69 |
RESTRICT="userpriv" |
70 |
|
71 |
RDEPEND="dev-libs/libedit |
72 |
dev-libs/icu" |
73 |
DEPEND="${RDEPEND} |
74 |
>=dev-util/btyacc-3.0-r2 |
75 |
doc? ( app-arch/unzip )" |
76 |
RDEPEND="${RDEPEND} |
77 |
xinetd? ( virtual/inetd ) |
78 |
!sys-cluster/ganglia" |
79 |
|
80 |
S="${WORKDIR}/${MY_P}" |
81 |
|
82 |
pkg_pretend() { |
83 |
if use client && use superserver ; then |
84 |
die "Use flags client and superserver cannot be used together" |
85 |
fi |
86 |
if use client && use xinetd ; then |
87 |
die "Use flags client and xinetd cannot be used together" |
88 |
fi |
89 |
if use superserver && use xinetd ; then |
90 |
die "Use flags superserver and xinetd cannot be used together" |
91 |
fi |
92 |
} |
93 |
|
94 |
pkg_setup() { |
95 |
enewgroup firebird 450 |
96 |
enewuser firebird 450 /bin/bash /usr/$(get_libdir)/firebird firebird |
97 |
} |
98 |
|
99 |
function check_sed() { |
100 |
MSG="sed of $3, required $2 lines modified $1" |
101 |
einfo "${MSG}" |
102 |
[[ $1 -ge $2 ]] || die "${MSG}" |
103 |
} |
104 |
|
105 |
src_unpack() { |
106 |
if use doc; then |
107 |
# Unpack docs |
108 |
mkdir "${WORKDIR}/manuals" |
109 |
cd "${WORKDIR}/manuals" |
110 |
unpack ib_b60_doc.zip |
111 |
cd "${WORKDIR}" |
112 |
fi |
113 |
unpack "${MY_P}.tar.bz2" |
114 |
cd "${S}" |
115 |
} |
116 |
|
117 |
src_prepare() { |
118 |
# This patch might be portable, and not need to be duplicated per version |
119 |
# also might no longer be necessary to patch deps or libs, just flags |
120 |
epatch "${FILESDIR}/${PN}-2.5.1.26351.0-deps-flags.patch" |
121 |
|
122 |
use client && epatch "${FILESDIR}/${PN}-2.5.1.26351.0-client.patch" |
123 |
if ! use superserver ; then |
124 |
epatch "${FILESDIR}/${PN}-2.5.1.26351.0-superclassic.patch" |
125 |
fi |
126 |
|
127 |
# Rename references to isql to fbsql |
128 |
# sed vs patch for portability and addtional location changes |
129 |
check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \ |
130 |
src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line |
131 |
check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \ |
132 |
src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines |
133 |
check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \ |
134 |
-e 's:isql :fbsql :w /dev/stdout' \ |
135 |
-e 's:ISQL :FBSQL :w /dev/stdout' \ |
136 |
src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines |
137 |
|
138 |
find "${S}" -name \*.sh -print0 | xargs -0 chmod +x |
139 |
rm -rf "${S}"/extern/{btyacc,editline,icu} |
140 |
|
141 |
eautoreconf |
142 |
} |
143 |
|
144 |
src_configure() { |
145 |
filter-flags -fprefetch-loop-arrays |
146 |
filter-mfpmath sse |
147 |
|
148 |
econf --prefix=/usr/$(get_libdir)/firebird \ |
149 |
$(use_enable superserver superserver) \ |
150 |
$(use_enable debug) \ |
151 |
--with-editline \ |
152 |
--with-system-editline \ |
153 |
--with-system-icu \ |
154 |
--with-fbbin=/usr/bin \ |
155 |
--with-fbsbin=/usr/sbin \ |
156 |
--with-fbconf=/etc/${PN} \ |
157 |
--with-fblib=/usr/$(get_libdir) \ |
158 |
--with-fbinclude=/usr/include \ |
159 |
--with-fbdoc=/usr/share/doc/${P} \ |
160 |
--with-fbudf=/usr/$(get_libdir)/${PN}/UDF \ |
161 |
--with-fbsample=/usr/share/doc/${P}/examples \ |
162 |
--with-fbsample-db=/usr/share/doc/${P}/examples/db \ |
163 |
--with-fbhelp=/usr/$(get_libdir)/${PN}/help \ |
164 |
--with-fbintl=/usr/$(get_libdir)/${PN}/intl \ |
165 |
--with-fbmisc=/usr/share/${PN} \ |
166 |
--with-fbsecure-db=/etc/${PN} \ |
167 |
--with-fbmsg=/usr/$(get_libdir)/${PN} \ |
168 |
--with-fblog=/var/log/${PN}/ \ |
169 |
--with-fbglock=/var/run/${PN} \ |
170 |
--with-fbplugins=/usr/$(get_libdir)/${PN}/plugins \ |
171 |
--with-gnu-ld \ |
172 |
${myconf} |
173 |
} |
174 |
|
175 |
src_compile() { |
176 |
MAKEOPTS="${MAKEOPTS/-j*/-j1} ${MAKEOPTS/-j/CPU=}" |
177 |
emake |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
cd "${S}/gen/${PN}" |
182 |
|
183 |
if use doc; then |
184 |
dodoc docs/*.pdf |
185 |
dodoc "${WORKDIR}"/manuals/* |
186 |
fi |
187 |
|
188 |
insinto /usr/include |
189 |
doins include/* |
190 |
|
191 |
rm lib/libfbstatic.a |
192 |
|
193 |
insinto /usr/$(get_libdir) |
194 |
dolib.so lib/*.so* |
195 |
|
196 |
# links for backwards compatibility |
197 |
dosym libfbclient.so /usr/$(get_libdir)/libgds.so |
198 |
dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0 |
199 |
dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1 |
200 |
|
201 |
insinto /usr/$(get_libdir)/${PN} |
202 |
doins *.msg |
203 |
|
204 |
use client && return |
205 |
|
206 |
einfo "Renaming isql -> fbsql" |
207 |
mv bin/isql bin/fbsql |
208 |
|
209 |
local bins="fbsql fbsvcmgr fbtracemgr gbak gdef gfix gpre gsec gstat nbackup qli" |
210 |
for bin in ${bins[@]}; do |
211 |
dobin bin/${bin} |
212 |
done |
213 |
|
214 |
dosbin bin/fb_lock_print |
215 |
# SuperServer |
216 |
if use superserver ; then |
217 |
dosbin bin/{fbguard,fbserver} |
218 |
# ClassicServer |
219 |
elif use xinetd ; then |
220 |
dosbin bin/fb_inet_server |
221 |
# SuperClassic |
222 |
else |
223 |
dosbin bin/{fbguard,fb_smp_server} |
224 |
|
225 |
#Temp should not be necessary, need to patch/fix |
226 |
dosym "${D}"/usr/$(get_libdir)/libib_util.so /usr/$(get_libdir)/${PN}/lib/libib_util.so |
227 |
fi |
228 |
|
229 |
exeinto /usr/bin/${PN} |
230 |
exeopts -m0755 |
231 |
doexe bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh |
232 |
|
233 |
insinto /usr/$(get_libdir)/${PN}/help |
234 |
doins help/help.fdb |
235 |
|
236 |
exeinto /usr/$(get_libdir)/firebird/intl |
237 |
dolib.so intl/libfbintl.so |
238 |
dosym "${D}"/usr/$(get_libdir)/libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl |
239 |
dosym "${D}"/etc/firebird/fbintl.conf /usr/$(get_libdir)/${PN}/intl/fbintl.conf |
240 |
|
241 |
exeinto /usr/$(get_libdir)/${PN}/plugins |
242 |
dolib.so plugins/libfbtrace.so |
243 |
dosym "${D}"/usr/$(get_libdir)/libfbtrace.so /usr/$(get_libdir)/${PN}/plugins/libfbtrace.so |
244 |
|
245 |
exeinto /usr/$(get_libdir)/${PN}/UDF |
246 |
doexe UDF/*.so |
247 |
|
248 |
insinto /usr/share/${PN}/upgrade |
249 |
doins "${S}"/src/misc/upgrade/v2/* |
250 |
|
251 |
insinto /etc/${PN} |
252 |
insopts -m0644 -o firebird -g firebird |
253 |
doins ../install/misc/*.conf |
254 |
insopts -m0660 -o firebird -g firebird |
255 |
doins security2.fdb |
256 |
|
257 |
if use xinetd ; then |
258 |
insinto /etc/xinetd.d |
259 |
newins "${FILESDIR}/${PN}.xinetd" ${PN} |
260 |
else |
261 |
newinitd "${FILESDIR}/${PN}.init.d.2.5" ${PN} |
262 |
newconfd "${FILESDIR}/${PN}.conf.d.2.5" ${PN} |
263 |
fperms 640 /etc/conf.d/${PN} |
264 |
fi |
265 |
|
266 |
insinto /etc/logrotate.d |
267 |
newins "${FILESDIR}/${PN}.logrotate" ${PN} |
268 |
|
269 |
diropts -m 755 -o firebird -g firebird |
270 |
dodir /var/log/${PN} |
271 |
dodir /var/run/${PN} |
272 |
keepdir /var/log/${PN} |
273 |
keepdir /var/run/${PN} |
274 |
|
275 |
use examples && docinto examples |
276 |
} |
277 |
|
278 |
pkg_postinst() { |
279 |
use client && return |
280 |
|
281 |
# Hack to fix ownership/perms |
282 |
chown -fR firebird:firebird "${ROOT}/etc/${PN}" "${ROOT}/usr/$(get_libdir)/${PN}" |
283 |
chmod 750 "${ROOT}/etc/${PN}" |
284 |
|
285 |
elog |
286 |
elog "Firebird is no longer installed in /opt. Binaries are in" |
287 |
elog "/usr/bin. The core, udfs, etc are in /usr/lib/firebird. Logs" |
288 |
elog "are in /var/log/firebird, and lock files in /var/run/firebird" |
289 |
elog "The command line tool isql has been renamed to fbsql." |
290 |
elog "Please report any problems or issues to bugs.gentoo.org." |
291 |
elog |
292 |
} |
293 |
|
294 |
pkg_config() { |
295 |
use client && return |
296 |
|
297 |
# if found /etc/security.gdb from previous install, backup, and restore as |
298 |
# /etc/security2.fdb |
299 |
if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then |
300 |
# if we have scurity2.fdb already, back it 1st |
301 |
if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then |
302 |
cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old" |
303 |
fi |
304 |
gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk" |
305 |
gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb" |
306 |
mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old" |
307 |
rm "${ROOT}/etc/firebird/security.gbk" |
308 |
|
309 |
# make sure they are readable only to firebird |
310 |
chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}" |
311 |
chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}" |
312 |
|
313 |
einfo |
314 |
einfo "Converted old security.gdb to security2.fdb, security.gdb has been " |
315 |
einfo "renamed to security.gdb.old. if you had previous security2.fdb, " |
316 |
einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)." |
317 |
einfo |
318 |
fi |
319 |
|
320 |
# we need to enable local access to the server |
321 |
if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then |
322 |
touch "${ROOT}/etc/hosts.equiv" |
323 |
chown root:0 "${ROOT}/etc/hosts.equiv" |
324 |
chmod u=rw,go=r "${ROOT}/etc/hosts.equiv" |
325 |
fi |
326 |
|
327 |
# add 'localhost.localdomain' to the hosts.equiv file... |
328 |
if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
329 |
echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv" |
330 |
einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv" |
331 |
fi |
332 |
|
333 |
# add 'localhost' to the hosts.equiv file... |
334 |
if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
335 |
echo "localhost" >> "${ROOT}/etc/hosts.equiv" |
336 |
einfo "Added localhost to ${ROOT}/etc/hosts.equiv" |
337 |
fi |
338 |
|
339 |
HS_NAME=`hostname` |
340 |
if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
341 |
echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv" |
342 |
einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv" |
343 |
fi |
344 |
|
345 |
einfo "If you're using UDFs, please remember to move them" |
346 |
einfo "to /usr/lib/firebird/UDF" |
347 |
} |