summaryrefslogtreecommitdiff
path: root/dev-db/interbase
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
parent8cbfa988f6f527dfa17b5b45112441f105339330 (diff)
downloadmisc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.zip
misc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.tar.gz
misc-367d0bf3c9eca4192a09bc5688338aa99f62d86a.tar.bz2
dev-db/interbase
Diffstat (limited to 'dev-db/interbase') (more/less context) (ignore whitespace changes)
-rw-r--r--dev-db/interbase/Manifest20
-rw-r--r--dev-db/interbase/files/70interbase2
-rw-r--r--dev-db/interbase/files/digest-interbase-6.0.13
-rw-r--r--dev-db/interbase/files/ib.preload.wrapper3
-rw-r--r--dev-db/interbase/files/interbase.xinetd12
-rw-r--r--dev-db/interbase/interbase-6.0.1.ebuild115
6 files changed, 155 insertions, 0 deletions
diff --git a/dev-db/interbase/Manifest b/dev-db/interbase/Manifest
new file mode 100644
index 0000000..e2b5768
--- a/dev/null
+++ b/dev-db/interbase/Manifest
@@ -0,0 +1,20 @@
+AUX 70interbase 52 RMD160 c9433539bf46ebd5c61456991f245d59761484df SHA1 8cdf8f84a707fa47c34b3b9c94709ece484e69e7 SHA256 f7feee8283adc24f02201648d993e1c554142c655c1b80e54e94e5e3b92c5321
+MD5 d324d40b6737c1ae3e61c4f108021d3d files/70interbase 52
+RMD160 c9433539bf46ebd5c61456991f245d59761484df files/70interbase 52
+SHA256 f7feee8283adc24f02201648d993e1c554142c655c1b80e54e94e5e3b92c5321 files/70interbase 52
+AUX ib.preload.wrapper 90 RMD160 3a92eb6fffd10cc95a01578c3d52d29ec15c8c88 SHA1 405be1b322c02bd4f3774bd24539e6801b07afdc SHA256 a0e2984f72bb9b09dde0d72476d091faee3374f085986455345bc6ba9a84b6ec
+MD5 28a6f09a0efa17c3d84fbd152ee57977 files/ib.preload.wrapper 90
+RMD160 3a92eb6fffd10cc95a01578c3d52d29ec15c8c88 files/ib.preload.wrapper 90
+SHA256 a0e2984f72bb9b09dde0d72476d091faee3374f085986455345bc6ba9a84b6ec files/ib.preload.wrapper 90
+AUX interbase.xinetd 263 RMD160 480eb47d24b8e591b4be24d8d7ee5dc412512260 SHA1 cacd2abd0733ebfcf759ccf84fc8be76417f6179 SHA256 76e695ee0cc6cf70be432423d0571b4f0f9ff73b8a453d53e698f8d50e94ef1e
+MD5 35e4a53e1fc3d55edb844dcc842d9ba4 files/interbase.xinetd 263
+RMD160 480eb47d24b8e591b4be24d8d7ee5dc412512260 files/interbase.xinetd 263
+SHA256 76e695ee0cc6cf70be432423d0571b4f0f9ff73b8a453d53e698f8d50e94ef1e files/interbase.xinetd 263
+DIST InterBaseCS_LI-V6.0.1.tar 3225600 RMD160 4a5bdbcd552b610d3d589656e3ac07928d3ef0b3 SHA1 c16fefd8eaa840f4432b84af567e088fcb475e0f SHA256 96c4841e439f850582fe58d331bb746d274ad1031916b5b2c1866779626efbc0
+EBUILD interbase-6.0.1.ebuild 2559 RMD160 b3b4d265d13443dc0a58d4626a4b2db6bfb4d0bd SHA1 6275b6dfcd7afa29ab11e16bb9578668df62b782 SHA256 b9b4c8feca316a3b1af858f50f7f515f5598bb2ae89dbddad7f3cd7c3aa533ae
+MD5 4e1ed62263b50603c38c1e665a9b809d interbase-6.0.1.ebuild 2559
+RMD160 b3b4d265d13443dc0a58d4626a4b2db6bfb4d0bd interbase-6.0.1.ebuild 2559
+SHA256 b9b4c8feca316a3b1af858f50f7f515f5598bb2ae89dbddad7f3cd7c3aa533ae interbase-6.0.1.ebuild 2559
+MD5 696315e47b6dac7f40a5cb3404e3bc71 files/digest-interbase-6.0.1 259
+RMD160 b4a87892221b2b4d53ceace3e909e18040142af6 files/digest-interbase-6.0.1 259
+SHA256 8028c1add973fce365d18d8aedfae00222c205f827a1b39438adf1211aedc151 files/digest-interbase-6.0.1 259
diff --git a/dev-db/interbase/files/70interbase b/dev-db/interbase/files/70interbase
new file mode 100644
index 0000000..1d2d69b
--- a/dev/null
+++ b/dev-db/interbase/files/70interbase
@@ -0,0 +1,2 @@
+PATH=/opt/interbase/bin
+ROOTPATH=/opt/interbase/bin
diff --git a/dev-db/interbase/files/digest-interbase-6.0.1 b/dev-db/interbase/files/digest-interbase-6.0.1
new file mode 100644
index 0000000..e9292fa
--- a/dev/null
+++ b/dev-db/interbase/files/digest-interbase-6.0.1
@@ -0,0 +1,3 @@
+MD5 039951d435ca0b88bcba0464b137f033 InterBaseCS_LI-V6.0.1.tar 3225600
+RMD160 4a5bdbcd552b610d3d589656e3ac07928d3ef0b3 InterBaseCS_LI-V6.0.1.tar 3225600
+SHA256 96c4841e439f850582fe58d331bb746d274ad1031916b5b2c1866779626efbc0 InterBaseCS_LI-V6.0.1.tar 3225600
diff --git a/dev-db/interbase/files/ib.preload.wrapper b/dev-db/interbase/files/ib.preload.wrapper
new file mode 100644
index 0000000..2dae76a
--- a/dev/null
+++ b/dev-db/interbase/files/ib.preload.wrapper
@@ -0,0 +1,3 @@
+#!/bin/sh
+export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/interbase/lib
+exec "$0.bin" "$@"
diff --git a/dev-db/interbase/files/interbase.xinetd b/dev-db/interbase/files/interbase.xinetd
new file mode 100644
index 0000000..d3edce4
--- a/dev/null
+++ b/dev-db/interbase/files/interbase.xinetd
@@ -0,0 +1,12 @@
+service gds_db
+{
+ flags = REUSE
+ socket_type = stream
+ wait = no
+ user = interbase
+ log_on_success += USERID
+ log_on_failure += USERID
+ server = /opt/interbase/bin/gds_inet_server.bin
+ env = LD_LIBRARY_PATH=/opt/interbase/lib
+ disable = yes
+}
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
+
+}