1 |
wltjr 07/10/19 18:09:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firebird-2.1.0.16780_beta2.ebuild |
5 |
Removed: firebird-1.5.4-r3.ebuild |
6 |
Log: |
7 |
Bumped to latest beta, remade and unified patches to patch. Removed old version. |
8 |
(Portage version: 2.1.3.13) |
9 |
|
10 |
Revision Changes Path |
11 |
1.76 dev-db/firebird/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.76&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?rev=1.76&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/ChangeLog?r1=1.75&r2=1.76 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v |
20 |
retrieving revision 1.75 |
21 |
retrieving revision 1.76 |
22 |
diff -u -r1.75 -r1.76 |
23 |
--- ChangeLog 1 Oct 2007 15:08:58 -0000 1.75 |
24 |
+++ ChangeLog 19 Oct 2007 18:09:27 -0000 1.76 |
25 |
@@ -1,6 +1,14 @@ |
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.75 2007/10/01 15:08:58 wltjr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.76 2007/10/19 18:09:27 wltjr Exp $ |
30 |
+ |
31 |
+*firebird-2.1.0.16780_beta2 (19 Oct 2007) |
32 |
+ |
33 |
+ 19 Oct 2007; William L. Thomson Jr. <wltjr@g.o> |
34 |
+ +files/firebird-2.1.0.16780_beta2-deps-libs-paths.patch, |
35 |
+ -firebird-1.5.4-r3.ebuild, +firebird-2.1.0.16780_beta2.ebuild: |
36 |
+ Bumped to latest beta, remade and unified patches to patch. Removed old |
37 |
+ version. |
38 |
|
39 |
01 Oct 2007; William L. Thomson Jr. <wltjr@g.o> |
40 |
-firebird-2.0.3.12981.0-r1.ebuild, firebird-2.0.3.12981.0-r2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-db/firebird/firebird-2.1.0.16780_beta2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: firebird-2.1.0.16780_beta2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2007 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2.ebuild,v 1.1 2007/10/19 18:09:27 wltjr Exp $ |
54 |
|
55 |
inherit flag-o-matic eutils autotools versionator |
56 |
|
57 |
#MY_P=Firebird-$(replace_version_separator 4 -) |
58 |
MY_P=Firebird-${PV/_b/-B} |
59 |
|
60 |
DESCRIPTION="A relational database offering many ANSI SQL-99 features" |
61 |
HOMEPAGE="http://firebird.sourceforge.net/" |
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="Interbase-1.0" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 -ia64 ~x86" |
68 |
IUSE="doc xinetd examples debug" |
69 |
RESTRICT="userpriv" |
70 |
|
71 |
RDEPEND="dev-libs/libedit |
72 |
dev-libs/icu" |
73 |
DEPEND="${RDEPEND} |
74 |
doc? ( app-arch/unzip )" |
75 |
RDEPEND="${RDEPEND} |
76 |
xinetd? ( virtual/inetd )" |
77 |
|
78 |
S="${WORKDIR}/${MY_P}" |
79 |
|
80 |
pkg_setup() { |
81 |
enewgroup firebird 450 |
82 |
enewuser firebird 450 /bin/bash /usr/share/firebird firebird |
83 |
} |
84 |
|
85 |
src_unpack() { |
86 |
if use doc; then |
87 |
# Unpack docs |
88 |
mkdir "${WORKDIR}/manuals" |
89 |
cd "${WORKDIR}/manuals" |
90 |
unpack ib_b60_doc.zip |
91 |
cd "${WORKDIR}" |
92 |
fi |
93 |
|
94 |
unpack "${MY_P}.tar.bz2" |
95 |
|
96 |
mkdir -p "${WORKDIR}/../etc" \ |
97 |
"${WORKDIR}/usr" \ |
98 |
"${WORKDIR}/var/log/firebird" \ |
99 |
"${WORKDIR}/var/run/firebird" |
100 |
cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin" |
101 |
cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird |
102 |
|
103 |
cd "${S}" |
104 |
|
105 |
epatch "${FILESDIR}/${P}-deps-libs-paths.patch" |
106 |
|
107 |
find "${S}" -name \*.sh -print0 | xargs -0 chmod +x |
108 |
rm -rf "${S}"/extern/{editline,icu} |
109 |
|
110 |
eautoreconf |
111 |
} |
112 |
|
113 |
src_compile() { |
114 |
filter-flags -fprefetch-loop-arrays |
115 |
filter-mfpmath sse |
116 |
|
117 |
econf --prefix=/usr/share/firebird --with-editline \ |
118 |
$(use_enable !xinetd superserver) \ |
119 |
$(use_enable debug) \ |
120 |
${myconf} || die "econf failed" |
121 |
emake -j1 || die "error during make" |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
cd "${S}/gen/firebird" |
126 |
|
127 |
# Seems to be ignored? |
128 |
# insinto /usr/share/firebird/bin |
129 |
# dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh |
130 |
rm bin/*.sh || die "Could not remove *sh files" |
131 |
|
132 |
insinto /usr/bin |
133 |
dobin bin/* |
134 |
|
135 |
insinto /usr/include |
136 |
doins include/* |
137 |
|
138 |
insinto /usr/lib |
139 |
dolib.so lib/*.so* |
140 |
dolib.a lib/*.a* |
141 |
|
142 |
insinto /usr/share/firebird |
143 |
doins *.msg |
144 |
|
145 |
insinto /usr/share/firebird/help |
146 |
doins help/help.fdb |
147 |
|
148 |
insinto /usr/share/firebird/upgrade |
149 |
doins "${S}"/src/misc/upgrade/v2/* |
150 |
|
151 |
insinto /etc/firebird |
152 |
insopts -m0644 -o firebird -g firebird |
153 |
doins misc/* |
154 |
doins ../install/misc/aliases.conf |
155 |
insopts -m0660 -o firebird -g firebird |
156 |
doins security2.fdb |
157 |
|
158 |
exeinto /usr/share/firebird/UDF |
159 |
doexe UDF/*.so |
160 |
|
161 |
exeinto /usr/share/firebird/intl |
162 |
doexe intl/*.so |
163 |
# newexe intl/libfbintl.so fbintl |
164 |
|
165 |
insinto /usr/share/firebird/intl |
166 |
doins ../install/misc/fbintl.conf |
167 |
|
168 |
diropts -m 755 -o firebird -g firebird |
169 |
dodir /var/log/firebird |
170 |
dodir /var/run/firebird |
171 |
keepdir /var/log/firebird |
172 |
keepdir /var/run/firebird |
173 |
|
174 |
# create links for backwards compatibility |
175 |
cd "${D}/usr/lib" |
176 |
ln -s libfbclient.so libgds.so |
177 |
ln -s libfbclient.so libgds.so.0 |
178 |
ln -s libfbclient.so libfbclient.so.1 |
179 |
|
180 |
if use xinetd ; then |
181 |
insinto /etc/xinetd.d |
182 |
newins "${S}/gen/install/misc/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed" |
183 |
else |
184 |
newinitd "${FILESDIR}/${PN}.init.d.2" ${PN} |
185 |
newconfd "${FILESDIR}/firebird.conf.d.2" ${PN} |
186 |
fperms 640 /etc/conf.d/firebird |
187 |
fi |
188 |
doenvd "${FILESDIR}/70${PN}" |
189 |
|
190 |
# Install docs |
191 |
use doc && dodoc "${WORKDIR}"/manuals/* |
192 |
|
193 |
if use examples; then |
194 |
docinto examples |
195 |
dodoc examples/* |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
# Hack to fix ownership/perms |
201 |
chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/share/firebird" |
202 |
chmod 750 "${ROOT}/etc/firebird" |
203 |
|
204 |
elog |
205 |
elog "Firebird is no longer installed in /opt. Binaries are in" |
206 |
elog "/usr/bin. The core, udfs, etc are in /usr/share/firebird. Logs" |
207 |
elog "are in /var/log/firebird, and lock files in /var/run/firebird" |
208 |
elog "Please report any problems or issues to bugs.gentoo.org." |
209 |
elog |
210 |
} |
211 |
|
212 |
pkg_config() { |
213 |
# if found /etc/security.gdb from previous install, backup, and restore as |
214 |
# /etc/security2.fdb |
215 |
if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then |
216 |
# if we have scurity2.fdb already, back it 1st |
217 |
if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then |
218 |
cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old" |
219 |
fi |
220 |
gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk" |
221 |
gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb" |
222 |
mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old" |
223 |
rm "${ROOT}/etc/firebird/security.gbk" |
224 |
|
225 |
# make sure they are readable only to firebird |
226 |
chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}" |
227 |
chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}" |
228 |
|
229 |
einfo |
230 |
einfo "Converted old security.gdb to security2.fdb, security.gdb has been " |
231 |
einfo "renamed to security.gdb.old. if you had previous security2.fdb, " |
232 |
einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)." |
233 |
einfo |
234 |
fi |
235 |
|
236 |
# we need to enable local access to the server |
237 |
if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then |
238 |
touch "${ROOT}/etc/hosts.equiv" |
239 |
chown root:0 "${ROOT}/etc/hosts.equiv" |
240 |
chmod u=rw,go=r "${ROOT}/etc/hosts.equiv" |
241 |
fi |
242 |
|
243 |
# add 'localhost.localdomain' to the hosts.equiv file... |
244 |
if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
245 |
echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv" |
246 |
einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv" |
247 |
fi |
248 |
|
249 |
# add 'localhost' to the hosts.equiv file... |
250 |
if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
251 |
echo "localhost" >> "${ROOT}/etc/hosts.equiv" |
252 |
einfo "Added localhost to ${ROOT}/etc/hosts.equiv" |
253 |
fi |
254 |
|
255 |
HS_NAME=`hostname` |
256 |
if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then |
257 |
echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv" |
258 |
einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv" |
259 |
fi |
260 |
|
261 |
einfo "If you're using UDFs, please remember to move them" |
262 |
einfo "to /usr/share/firebird/UDF" |
263 |
} |
264 |
|
265 |
|
266 |
|
267 |
-- |
268 |
gentoo-commits@g.o mailing list |