summaryrefslogtreecommitdiff
path: root/dev-db/interbase/interbase-6.0.1.ebuild
authorMichael Krelin <hacker@klever.net>2007-02-21 14:01:32 (UTC)
committer Michael Krelin <hacker@klever.net>2007-02-21 14:01:32 (UTC)
commit367d0bf3c9eca4192a09bc5688338aa99f62d86a (patch) (side-by-side diff)
treeb7d9c4d0287223fd55a1be3b0806cd61c4ebfe61 /dev-db/interbase/interbase-6.0.1.ebuild
parent8cbfa988f6f527dfa17b5b45112441f105339330 (diff)
downloadmisc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.zip
misc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.tar.gz
misc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.tar.bz2
dev-db/interbase
Diffstat (limited to 'dev-db/interbase/interbase-6.0.1.ebuild') (more/less context) (ignore whitespace changes)
-rw-r--r--dev-db/interbase/interbase-6.0.1.ebuild115
1 files changed, 115 insertions, 0 deletions
diff --git a/dev-db/interbase/interbase-6.0.1.ebuild b/dev-db/interbase/interbase-6.0.1.ebuild
new file mode 100644
index 0000000..0677bae
--- a/dev/null
+++ b/dev-db/interbase/interbase-6.0.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Interbase database"
+HOMEPAGE="http://www.borland.com/interbase/"
+SRC_URI="ftp://ftpc.borland.com/pub/interbase/devsupport/open_source/InterBaseCS_LI-V${PV}.tar"
+LICENSE="Interbase-1.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="
+ virtual/inetd
+ sys-libs/ncurses
+ amd64? ( app-emulation/emul-linux-x86-baselibs )
+ "
+
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ enewgroup interbase 451
+ enewuser interbase 451 /bin/bash /opt/interbase interbase
+}
+
+src_unpack() {
+ cd ${WORKDIR}
+ unpack ${A}
+ tar zxf InterBaseCS_LI-V*.tgz
+}
+
+src_install() {
+ dodoc Readme.txt ReleaseNotes.pdf license.html license.txt doc/How2GetDocs.txt
+ docinto examples
+ dodoc examples/*
+
+ insinto /opt/interbase/bin
+ doins bin/*
+ for f in ${D}/opt/interbase/bin/* ; do
+ mv ${f} ${f}.bin
+ ln -s ib.preload.wrapper ${f}
+ done
+ doins ${FILESDIR}/ib.preload.wrapper
+ chown interbase:interbase ${D}/opt/interbase/bin/*.bin
+ chmod ug=rx,o= ${D}/opt/interbase/bin/*.bin
+ chmod a=rx ${D}/opt/interbase/bin/ib.preload.wrapper
+ chmod a+rx ${D}/opt/interbase/bin/isql.bin
+
+ insinto /opt/interbase/lib
+ doins lib/*
+ if use amd64 ; then
+ dosym /lib32/libncurses.so.5 /opt/interbase/lib/libncurses.so.4
+ else
+ dosym /lib/libncurses.so.5 /opt/interbase/lib/libncurses.so.4
+ fi
+ dosym gds.so /opt/interbase/lib/libgds.so
+
+ insinto /opt/interbase/UDF
+ doins UDF/*
+
+ insinto /opt/interbase
+ doins interbase.msg services.isc
+ insinto /etc/interbase
+ doins isc4.gdb isc_config
+ dosym /etc/interbase/isc4.gdb /opt/interbase/isc4.gdb
+ dosym /etc/interbase/isc_config /opt/interbase/isc_config
+ chown interbase:interbase ${D}/etc/interbase/isc4.gdb
+
+ insinto /opt/interbase/include
+ doins include/*
+ insinto /opt/interbase/intl
+ doins intl/*
+ insinto /opt/interbase/help
+ doins help/*
+
+
+ insinto /etc/xinetd.d ; newins ${FILESDIR}/${PN}.xinetd interbase
+
+ insinto /etc/env.d ; doins ${FILESDIR}/70${PN}
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Remember to run emerge --config =${PF}"
+ einfo
+}
+
+pkg_config() {
+ cd /opt/interbase
+
+ for l in isc_init1 isc_lock1 ; do
+ f=$i.`hostname`
+ touch $f
+ chown interbase:inerbase $f
+ chmod ug=rw,o= $f
+ done
+
+ if [ ! -h interbase.log ]
+ then
+ if [ -f interbase.log ]
+ then
+ mv interbase.log /var/log
+ else
+ touch /var/log/interbase.log
+ chown interbase:interbase /var/log/interbase.log
+ chmod ug=rw,o= /var/log/interbase.log
+ fi
+
+ # symlink the log to /var/log
+ ln -s /var/log/interbase.log interbase.log
+ fi
+
+}