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