Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103511 Details for
Bug 117869
ebuild for dev-db/firebird-2.*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
firebird-2.0.0.12748.ebuild
firebird-2.0.0.12748.ebuild (text/plain), 5.99 KB, created by
Diego Elio Pettenò (RETIRED)
on 2006-12-06 19:54:19 UTC
(
hide
)
Description:
firebird-2.0.0.12748.ebuild
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2006-12-06 19:54:19 UTC
Size:
5.99 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >WANT_AUTOCONF="latest" >WANT_AUTOMAKE="latest" > >inherit flag-o-matic eutils autotools > >MY_P="${P/firebird/Firebird}" > >DESCRIPTION="A relational database offering many ANSI SQL-99 features" >HOMEPAGE="http://firebird.sourceforge.net/" >SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2 > doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )" > >LICENSE="Interbase-1.0" >SLOT="0" >KEYWORDS="~amd64" >IUSE="doc xinetd" >RESTRICT="userpriv" > >DEPEND="doc? ( app-arch/unzip )" >RDEPEND="xinetd? ( virtual/inetd )" > > >S="${WORKDIR}/${P}" > >pkg_setup() { > enewgroup firebird 450 > enewuser firebird 450 /bin/bash /opt/firebird firebird >} > >src_unpack() { > if use doc; then > # Unpack docs > mkdir "${WORKDIR}/manuals" > cd "${WORKDIR}/manuals" > unpack ib_b60_doc.zip > cd "${WORKDIR}" > fi > > unpack "${MY_P}.tar.bz2" > > cd "${S}" > eautoreconf >} > >src_compile() { > filter-flags -fprefetch-loop-arrays > filter-mfpmath sse > > local myconf="--prefix=/opt/firebird --with-editline" > use xinetd || myconf="${myconf} --enable-superserver" > > econf ${myconf} || die "econf failed" > emake || die "error during make" >} > >src_install() { > cd "${S}/gen" > > emake -j1 -f Makefile.install tarfile || die "Can't create buildroot tar file" > > tar -zxpf -C "${D}" "${S}"/gen/Firebird?S-*/buildroot.tar.gz > > dodoc "${D}"/opt/firebird/{README,WhatsNew,doc/*} > docinto examples > dodoc "${D}"/opt/firebird/examples/* > docinto sql.extensions > dodoc "${D}"/opt/firebird/doc/sql.extensions/* > > rm -rv "${D}"/opt/${PN}/{README,WhatsNew,doc,misc} > rm -rv "${D}"/opt/${PN}/examples > > if use xinetd ; then > insinto /etc/xinetd.d > newins "${S}/gen/install/misc/${PN}.xinetd" "${PN}" || die "newins xinetd file failed" > else > newinitd "${S}/gen/install/misc/${PN}.init.d.gentoo" "${PN}" > newconfd "${S}/gen/install/misc/${PN}.conf" "${PN}" > fi > doenvd "${FILESDIR}/70${PN}" "70${PN}" > > # make sure everything is owned by firebird > fowners -R firebird:firebird /opt/firebird > > # make sure permissions are set > fperms o= /opt/firebird > > # fix directories > find "${D}/opt/firebird" -type d -print0 | xargs -0 chmod o=rx > > # set permissions for /bin > find "${D}/opt/firebird/bin" -print0 | xargs -0 chmod ugo=rx * > chmod ugo=rx * > > # use xinetd && chmod ug=rxs,o= ${D}/opt/firebird/bin/{fb_lock_mgr,gds_drop,fb_inet_server} > fperms u=rw,go=r /opt/firebird/{aliases.conf,firebird.conf} > fperms ug=rw,o= /opt/firebird/{security2.fdb,help/help.fdb} > > chmod a=r "${D}"/opt/firebird/{include,lib,UDF,intl}/* > chmod ug=rx,o= "${D}"/opt/firebird/{intl/fbintl,UDF/fbudf.so,UDF/ib_udf.so} > > # move and link config files to /etc/firebird so they'll be protected > dodir /etc/firebird > mv "${D}"/opt/firebird/{security2.fdb,aliases.conf,firebird.conf} "${D}"/etc/firebird > dosym /etc/firebird/security2.fdb /opt/firebird/security2.fdb > dosym /etc/firebird/aliases.conf /opt/firebird/aliases.conf > dosym /etc/firebird/firebird.conf /opt/firebird/firebird.conf > > # Install docs > use doc && dodoc ${WORKDIR}/manuals/* >} > >pkg_postinst() { > elog > elog "1. If haven't done so already, please run:" > elog > elog " \"emerge --config =${PF}\"" > elog > elog " to create lockfiles, set permissions and more" > elog > elog "2. Firebird now runs with it's own user. Please remember to" > elog " set permissions to firebird:firebird on databases you " > elog " already have (if any)." > elog > > if ! use xinetd > then > elog "3. You've built the stand alone deamon version," > elog " SuperServer. If you were using pre 1.5.0 ebuilds" > elog " you're probably have one installed via xinetd. please" > elog " remember to disable it (usually in /etc/xinetd.d/firebird)," > elog " since the current one has it's own init script under" > elog " /etc/init.d" > fi >} > >pkg_config() { > cd /opt/firebird > > # Create Lock files > for i in isc_init1 isc_lock1 isc_event1 > do > FileName=$i.`hostname` > touch $FileName > chown firebird:firebird $FileName > chmod ug=rw,o= $FileName > done > > # Create log > if [ ! -h firebird.log ] > then > if [ -f firebird.log ] > then > mv firebird.log /var/log > else > touch /var/log/firebird.log > chown firebird:firebird /var/log/firebird.log > chmod ug=rw,o= /var/log/firebird.log > fi > > # symlink the log to /var/log > ln -s /var/log/firebird.log firebird.log > fi > > # if found /etc/isc4.gdb from previous install, backup, and restore as > # /etc/security.fdb > if [ -f /etc/firebird/isc4.gdb ] > then > # if we have scurity2.fdb already, back it 1st > if [ -f /etc/firebird/security2.fdb ] > then > cp /etc/firebird/security2.fdb /etc/firebird/security2.fdb.old > fi > gbak -B /etc/firebird/isc4.gdb /etc/firebird/isc4.gbk > gbak -R /etc/firebird/isc4.gbk /etc/firebird/security2.fdb > mv /etc/firebird/isc4.gdb /etc/firebird/isc4.gdb.old > rm /etc/firebird/isc4.gbk > > # make sure they are readable only to firebird > chown firebird:firebird /etc/firebird/{isc4.*,security2.*} > chmod 660 /etc/firebird/{isc4.*,security2.*} > > einfo > einfo "Converted old isc4.gdb to security.fdb, isc4.gdb has been " > einfo "renamed to isc4.gdb.old. if you had previous security.fdb, " > einfo "it's backed to security.fdb.old (all under /etc/firebird)." > einfo > fi > > # we need to enable local access to the server > if [ ! -f /etc/hosts.equiv ] > then > touch /etc/hosts.equiv > chown root:0 /etc/hosts.equiv > chmod u=rw,go=r /etc/hosts.equiv > fi > > # add 'localhost.localdomain' to the hosts.equiv file... > if grep -q 'localhost.localdomain$' /etc/hosts.equiv 2>/dev/null; then > echo "localhost.localdomain" >> /etc/hosts.equiv > einfo "Added localhost.localdomain to /etc/hosts.equiv" > fi > > # add 'localhost' to the hosts.equiv file... > if grep -q 'localhost$' /etc/hosts.equiv 2>/dev/null; then > echo "localhost" >> /etc/hosts.equiv > einfo "Added localhost to /etc/hosts.equiv" > fi > > HS_NAME=`hostname` > if grep -q ${HS_NAME} /etc/hosts.equiv 2>/dev/null; then > echo "${HS_NAME}" >> /etc/hosts.equiv > einfo "Added ${HS_NAME} to /etc/hosts.equiv" > fi > > einfo "If you're using UDFs, please remember to move them" > einfo "to /opt/firebird/UDF" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 117869
:
86600
|
86601
|
103511
|
103530
|
103531
|
103532
|
103533
|
109674
|
118964