summaryrefslogtreecommitdiff
path: root/dev-db/interbase
Unidiff
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 @@
1AUX 70interbase 52 RMD160 c9433539bf46ebd5c61456991f245d59761484df SHA1 8cdf8f84a707fa47c34b3b9c94709ece484e69e7 SHA256 f7feee8283adc24f02201648d993e1c554142c655c1b80e54e94e5e3b92c5321
2MD5 d324d40b6737c1ae3e61c4f108021d3d files/70interbase 52
3RMD160 c9433539bf46ebd5c61456991f245d59761484df files/70interbase 52
4SHA256 f7feee8283adc24f02201648d993e1c554142c655c1b80e54e94e5e3b92c5321 files/70interbase 52
5AUX ib.preload.wrapper 90 RMD160 3a92eb6fffd10cc95a01578c3d52d29ec15c8c88 SHA1 405be1b322c02bd4f3774bd24539e6801b07afdc SHA256 a0e2984f72bb9b09dde0d72476d091faee3374f085986455345bc6ba9a84b6ec
6MD5 28a6f09a0efa17c3d84fbd152ee57977 files/ib.preload.wrapper 90
7RMD160 3a92eb6fffd10cc95a01578c3d52d29ec15c8c88 files/ib.preload.wrapper 90
8SHA256 a0e2984f72bb9b09dde0d72476d091faee3374f085986455345bc6ba9a84b6ec files/ib.preload.wrapper 90
9AUX interbase.xinetd 263 RMD160 480eb47d24b8e591b4be24d8d7ee5dc412512260 SHA1 cacd2abd0733ebfcf759ccf84fc8be76417f6179 SHA256 76e695ee0cc6cf70be432423d0571b4f0f9ff73b8a453d53e698f8d50e94ef1e
10MD5 35e4a53e1fc3d55edb844dcc842d9ba4 files/interbase.xinetd 263
11RMD160 480eb47d24b8e591b4be24d8d7ee5dc412512260 files/interbase.xinetd 263
12SHA256 76e695ee0cc6cf70be432423d0571b4f0f9ff73b8a453d53e698f8d50e94ef1e files/interbase.xinetd 263
13DIST InterBaseCS_LI-V6.0.1.tar 3225600 RMD160 4a5bdbcd552b610d3d589656e3ac07928d3ef0b3 SHA1 c16fefd8eaa840f4432b84af567e088fcb475e0f SHA256 96c4841e439f850582fe58d331bb746d274ad1031916b5b2c1866779626efbc0
14EBUILD interbase-6.0.1.ebuild 2559 RMD160 b3b4d265d13443dc0a58d4626a4b2db6bfb4d0bd SHA1 6275b6dfcd7afa29ab11e16bb9578668df62b782 SHA256 b9b4c8feca316a3b1af858f50f7f515f5598bb2ae89dbddad7f3cd7c3aa533ae
15MD5 4e1ed62263b50603c38c1e665a9b809d interbase-6.0.1.ebuild 2559
16RMD160 b3b4d265d13443dc0a58d4626a4b2db6bfb4d0bd interbase-6.0.1.ebuild 2559
17SHA256 b9b4c8feca316a3b1af858f50f7f515f5598bb2ae89dbddad7f3cd7c3aa533ae interbase-6.0.1.ebuild 2559
18MD5 696315e47b6dac7f40a5cb3404e3bc71 files/digest-interbase-6.0.1 259
19RMD160 b4a87892221b2b4d53ceace3e909e18040142af6 files/digest-interbase-6.0.1 259
20SHA256 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 @@
1PATH=/opt/interbase/bin
2ROOTPATH=/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 @@
1MD5 039951d435ca0b88bcba0464b137f033 InterBaseCS_LI-V6.0.1.tar 3225600
2RMD160 4a5bdbcd552b610d3d589656e3ac07928d3ef0b3 InterBaseCS_LI-V6.0.1.tar 3225600
3SHA256 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 @@
1#!/bin/sh
2export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/interbase/lib
3exec "$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 @@
1service gds_db
2{
3 flags = REUSE
4 socket_type = stream
5 wait = no
6 user = interbase
7 log_on_success += USERID
8 log_on_failure += USERID
9 server = /opt/interbase/bin/gds_inet_server.bin
10 env = LD_LIBRARY_PATH=/opt/interbase/lib
11 disable = yes
12}
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 @@
1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit eutils
6
7DESCRIPTION="Interbase database"
8HOMEPAGE="http://www.borland.com/interbase/"
9SRC_URI="ftp://ftpc.borland.com/pub/interbase/devsupport/open_source/InterBaseCS_LI-V${PV}.tar"
10LICENSE="Interbase-1.0"
11SLOT="0"
12KEYWORDS="~x86 ~amd64"
13IUSE=""
14
15DEPEND="
16 virtual/inetd
17 sys-libs/ncurses
18 amd64? ( app-emulation/emul-linux-x86-baselibs )
19 "
20
21S="${WORKDIR}/${PN}"
22
23pkg_setup() {
24 enewgroup interbase 451
25 enewuser interbase 451 /bin/bash /opt/interbase interbase
26}
27
28src_unpack() {
29 cd ${WORKDIR}
30 unpack ${A}
31 tar zxf InterBaseCS_LI-V*.tgz
32}
33
34src_install() {
35 dodoc Readme.txt ReleaseNotes.pdf license.html license.txt doc/How2GetDocs.txt
36 docinto examples
37 dodoc examples/*
38
39 insinto /opt/interbase/bin
40 doins bin/*
41 for f in ${D}/opt/interbase/bin/* ; do
42 mv ${f} ${f}.bin
43 ln -s ib.preload.wrapper ${f}
44 done
45 doins ${FILESDIR}/ib.preload.wrapper
46 chown interbase:interbase ${D}/opt/interbase/bin/*.bin
47 chmod ug=rx,o= ${D}/opt/interbase/bin/*.bin
48 chmod a=rx ${D}/opt/interbase/bin/ib.preload.wrapper
49 chmod a+rx ${D}/opt/interbase/bin/isql.bin
50
51 insinto /opt/interbase/lib
52 doins lib/*
53 if use amd64 ; then
54 dosym /lib32/libncurses.so.5 /opt/interbase/lib/libncurses.so.4
55 else
56 dosym /lib/libncurses.so.5 /opt/interbase/lib/libncurses.so.4
57 fi
58 dosym gds.so /opt/interbase/lib/libgds.so
59
60 insinto /opt/interbase/UDF
61 doins UDF/*
62
63 insinto /opt/interbase
64 doins interbase.msg services.isc
65 insinto /etc/interbase
66 doins isc4.gdb isc_config
67 dosym /etc/interbase/isc4.gdb /opt/interbase/isc4.gdb
68 dosym /etc/interbase/isc_config /opt/interbase/isc_config
69 chown interbase:interbase ${D}/etc/interbase/isc4.gdb
70
71 insinto /opt/interbase/include
72 doins include/*
73 insinto /opt/interbase/intl
74 doins intl/*
75 insinto /opt/interbase/help
76 doins help/*
77
78
79 insinto /etc/xinetd.d ; newins ${FILESDIR}/${PN}.xinetd interbase
80
81 insinto /etc/env.d ; doins ${FILESDIR}/70${PN}
82}
83
84pkg_postinst() {
85 einfo
86 einfo "Remember to run emerge --config =${PF}"
87 einfo
88}
89
90pkg_config() {
91 cd /opt/interbase
92
93 for l in isc_init1 isc_lock1 ; do
94 f=$i.`hostname`
95 touch $f
96 chown interbase:inerbase $f
97 chmod ug=rw,o= $f
98 done
99
100 if [ ! -h interbase.log ]
101 then
102 if [ -f interbase.log ]
103 then
104 mv interbase.log /var/log
105 else
106 touch /var/log/interbase.log
107 chown interbase:interbase /var/log/interbase.log
108 chmod ug=rw,o= /var/log/interbase.log
109 fi
110
111 # symlink the log to /var/log
112 ln -s /var/log/interbase.log interbase.log
113 fi
114
115}