summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2007-11-12 18:09:42 +0000
committerWilliam Thomson <wltjr@gentoo.org>2007-11-12 18:09:42 +0000
commit357f9e3fe78e1b058ad199df55bca94554a84003 (patch)
treef3e425a48d0b263a1e61da2c2cf135bb5faf2a28 /dev-db
parentSparc stable, Bug #193991 (diff)
downloadgentoo-2-357f9e3fe78e1b058ad199df55bca94554a84003.tar.gz
gentoo-2-357f9e3fe78e1b058ad199df55bca94554a84003.tar.bz2
gentoo-2-357f9e3fe78e1b058ad199df55bca94554a84003.zip
Removed past non-split version that installed all under /opt/firebird
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/firebird/ChangeLog7
-rw-r--r--dev-db/firebird/files/digest-firebird-2.0.3.12981.06
-rw-r--r--dev-db/firebird/files/firebird.conf.d4
-rw-r--r--dev-db/firebird/files/firebird.init.d33
-rw-r--r--dev-db/firebird/files/firebird.xinetd11
-rw-r--r--dev-db/firebird/firebird-2.0.3.12981.0.ebuild250
6 files changed, 6 insertions, 305 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog
index 23c236b5dcc4..048e36e881e1 100644
--- a/dev-db/firebird/ChangeLog
+++ b/dev-db/firebird/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/firebird
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.81 2007/11/09 15:21:43 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.82 2007/11/12 18:09:41 wltjr Exp $
+
+ 12 Nov 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ -files/firebird.conf.d, -files/firebird.init.d, -files/firebird.xinetd,
+ -firebird-2.0.3.12981.0.ebuild:
+ Removed past non-split version that installed all under /opt/firebird
09 Nov 2007; William L. Thomson Jr. <wltjr@gentoo.org>
firebird-2.0.3.12981.0-r2.ebuild, firebird-2.0.3.12981.0-r3.ebuild,
diff --git a/dev-db/firebird/files/digest-firebird-2.0.3.12981.0 b/dev-db/firebird/files/digest-firebird-2.0.3.12981.0
deleted file mode 100644
index 9d8d28d4fe6b..000000000000
--- a/dev-db/firebird/files/digest-firebird-2.0.3.12981.0
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 9a28587a596a149eb01f006be1cb2ddb Firebird-2.0.3.12981-0.tar.bz2 12623689
-RMD160 6a1139b30a77070e6e74bdaebc5d9bdd52e32509 Firebird-2.0.3.12981-0.tar.bz2 12623689
-SHA256 7abda7a3a35abeb4d2ff38b99e6238d713184e6c70a786777b7adcbad6b1261e Firebird-2.0.3.12981-0.tar.bz2 12623689
-MD5 e48478a6034eb449ad502495e83a0764 ib_b60_doc.zip 10530848
-RMD160 c64b4b6bc9125929928517ba072558a58ddf577d ib_b60_doc.zip 10530848
-SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d ib_b60_doc.zip 10530848
diff --git a/dev-db/firebird/files/firebird.conf.d b/dev-db/firebird/files/firebird.conf.d
deleted file mode 100644
index 757177915409..000000000000
--- a/dev-db/firebird/files/firebird.conf.d
+++ /dev/null
@@ -1,4 +0,0 @@
-ISC_USER=SYSDBA
-ISC_PASSWORD=masterke
-FIREBIRD=/opt/firebird
-FBRunUser=firebird
diff --git a/dev-db/firebird/files/firebird.init.d b/dev-db/firebird/files/firebird.init.d
deleted file mode 100644
index 5b5c49222f52..000000000000
--- a/dev-db/firebird/files/firebird.init.d
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/files/firebird.init.d,v 1.2 2004/07/14 21:38:45 agriffis Exp $
-
-
-# NOTE: make sure you have localhost in your hosts.equiv file see next 2
-# lines for example of hosts.equiv contents
-#localhost.localdomain
-#localhost
-
-
-export FIREBIRD
-export ISC_USER
-export ISC_PASSWORD
-export FBRunUser
-MANAGER=$FIREBIRD/bin/fbmgr.bin
-
-depend() {
- need net
-}
-
-start(){
- ebegin "Starting Firebird server"
- su $FBRunUser -c "${MANAGER} -start -forever"
- eend $?
-}
-
-stop(){
- ebegin "Stopping Firebird server"
- $MANAGER -shut
- eend $?
-}
diff --git a/dev-db/firebird/files/firebird.xinetd b/dev-db/firebird/files/firebird.xinetd
deleted file mode 100644
index 8ffc12273e21..000000000000
--- a/dev-db/firebird/files/firebird.xinetd
+++ /dev/null
@@ -1,11 +0,0 @@
-service gds_db
-{
- flags = REUSE
- socket_type = stream
- wait = no
- user = firebird
- log_on_success += USERID
- log_on_failure += USERID
- server = /opt/firebird/bin/fb_inet_server
- disable = yes
-}
diff --git a/dev-db/firebird/firebird-2.0.3.12981.0.ebuild b/dev-db/firebird/firebird-2.0.3.12981.0.ebuild
deleted file mode 100644
index aed8153f3130..000000000000
--- a/dev-db/firebird/firebird-2.0.3.12981.0.ebuild
+++ /dev/null
@@ -1,250 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0.ebuild,v 1.3 2007/09/16 14:17:21 angelos Exp $
-
-inherit flag-o-matic eutils autotools versionator
-
-MY_P=Firebird-$(replace_version_separator 4 -)
-
-DESCRIPTION="A relational database offering many ANSI SQL-99 features"
-HOMEPAGE="http://firebird.sourceforge.net/"
-#SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
-SRC_URI="http://www.firebirdsql.org/download/prerelease/source/${MY_P}.tar.bz2
- doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
-
-LICENSE="Interbase-1.0"
-SLOT="0"
-KEYWORDS="amd64 -ia64 x86"
-IUSE="doc xinetd examples debug"
-RESTRICT="userpriv"
-
-RDEPEND="dev-libs/libedit
- dev-libs/icu"
-DEPEND="${RDEPEND}
- doc? ( app-arch/unzip )"
-RDEPEND="${RDEPEND}
- xinetd? ( virtual/inetd )"
-
-S="${WORKDIR}/${MY_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}"
-
- epatch "${FILESDIR}/${P}-external-libs.patch"
- epatch "${FILESDIR}/${P}-make-deps.patch"
- find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
- rm -rf "${S}"/extern/{editline,icu}
-
- eautoreconf
-}
-
-src_compile() {
- filter-flags -fprefetch-loop-arrays
- filter-mfpmath sse
-
- econf \
- --prefix=/opt/firebird --with-editline \
- $(use_enable !xinetd superserver) \
- $(use_enable debug) \
- ${myconf} || die "econf failed"
- emake -j1 || die "error during make"
-}
-
-src_install() {
- cd "${S}/gen/firebird"
-
- if use examples; then
- docinto examples
- dodoc examples/*
- fi
-
- into /opt/firebird
- dobin bin/*
- dolib.so lib/*.so*
- dolib.a lib/*.a*
-
- insinto /opt/firebird
- doins *.msg
-
- rm -rf "${D}"/opt/firebird/bin/*.sh
- dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
-
- insinto /opt/firebird/include
- doins include/*
-
- insinto /opt/firebird/help
- doins help/help.fdb
-
- insinto /opt/firebird/upgrade
- doins "${S}"/src/misc/upgrade/v2/*
-
- insinto /etc/firebird
- insopts -m0644 -o firebird -g firebird
- doins misc/*
- doins ../install/misc/aliases.conf
- insopts -m0660 -o firebird -g firebird
- doins security2.fdb
-
- exeinto /opt/firebird/UDF
- doexe UDF/*.so
- exeinto /opt/firebird/intl
- doexe intl/*.so
- newexe intl/libfbintl.so fbintl
-
- diropts -m 755 -o firebird -g firebird
- dodir /var/log/firebird
- dodir /var/run/firebird
- keepdir /var/log/firebird
- keepdir /var/run/firebird
-
- touch "${D}"/var/log/firebird/firebird.log
- chown firebird:firebird "${D}"/var/log/firebird/firebird.log
-
- # create links for split config & log file
- dosym /etc/firebird/aliases.conf /opt/firebird/aliases.conf
- dosym /etc/firebird/security2.fdb /opt/firebird/security2.fdb
- dosym /etc/firebird/firebird.conf /opt/firebird/firebird.conf
- dosym /etc/firebird/fbintl.conf /opt/firebird/intl/fbintl.conf
- dosym /var/log/firebird/firebird.log /opt/firebird/firebird.log
-
- local my_lib=$(get_libdir)
-
- # firebird has a problem with lib64 dir name, bug?
- if [ ${my_lib} == "lib64" ] ; then
- dosym ./lib64 /opt/firebird/lib
- fi
-
- # create links for backwards compatibility dosym puts link in / :(
- cd "${D}/opt/firebird/${my_lib}/"
- ln -s libfbclient.so libgds.so
- ln -s libfbclient.so libgds.so.0
- ln -s libfbclient.so libfbclient.so.1
-
- # create system links for ld
- dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so
- dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so.0
- dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libfbclient.so
- dosym ../../opt/firebird/${my_lib}/libfbclient.so.1 /usr/${my_lib}/libfbclient.so.1
- dosym ../../opt/firebird/${my_lib}/libfbclient.so.2 /usr/${my_lib}/libfbclient.so.2
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${S}/gen/install/misc/${PN}.xinetd" "${PN}" || die "newins xinetd file failed"
- else
- newinitd "${FILESDIR}/${PN}.init.d" ${PN}
- newconfd "${FILESDIR}/firebird.conf.d" ${PN}
- fperms 640 /etc/conf.d/firebird
- fi
- doenvd "${FILESDIR}/70${PN}"
-
- # Install docs
- use doc && dodoc "${WORKDIR}"/manuals/*
-}
-
-pkg_postinst() {
- # Hack to fix ownership/perms
- chown -fR firebird:firebird /etc/firebird /opt/firebird
- chmod 750 /etc/firebird
-
- 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
-
- # if found /etc/security.gdb from previous install, backup, and restore as
- # /etc/security2.fdb
- if [ -f /etc/firebird/security.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/security.gdb /etc/firebird/security.gbk
- gbak -R /etc/firebird/security.gbk /etc/firebird/security2.fdb
- mv /etc/firebird/security.gdb /etc/firebird/security.gdb.old
- rm /etc/firebird/security.gbk
-
- # make sure they are readable only to firebird
- chown firebird:firebird /etc/firebird/{security.*,security2.*}
- chmod 660 /etc/firebird/{security.*,security2.*}
-
- einfo
- einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
- einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
- einfo "it's backed to security2.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"
-}