author | Michael Krelin <hacker@klever.net> | 2007-02-21 14:01:32 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-02-21 14:01:32 (UTC) |
commit | 367d0bf3c9eca4192a09bc5688338aa99f62d86a (patch) (unidiff) | |
tree | b7d9c4d0287223fd55a1be3b0806cd61c4ebfe61 /dev-db/interbase/interbase-6.0.1.ebuild | |
parent | 8cbfa988f6f527dfa17b5b45112441f105339330 (diff) | |
download | misc-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.ebuild | 115 |
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 @@ | |||
1 | # Copyright 1999-2007 Gentoo Foundation | ||
2 | # Distributed under the terms of the GNU General Public License v2 | ||
3 | # $Header: $ | ||
4 | |||
5 | inherit eutils | ||
6 | |||
7 | DESCRIPTION="Interbase database" | ||
8 | HOMEPAGE="http://www.borland.com/interbase/" | ||
9 | SRC_URI="ftp://ftpc.borland.com/pub/interbase/devsupport/open_source/InterBaseCS_LI-V${PV}.tar" | ||
10 | LICENSE="Interbase-1.0" | ||
11 | SLOT="0" | ||
12 | KEYWORDS="~x86 ~amd64" | ||
13 | IUSE="" | ||
14 | |||
15 | DEPEND=" | ||
16 | virtual/inetd | ||
17 | sys-libs/ncurses | ||
18 | amd64? ( app-emulation/emul-linux-x86-baselibs ) | ||
19 | " | ||
20 | |||
21 | S="${WORKDIR}/${PN}" | ||
22 | |||
23 | pkg_setup() { | ||
24 | enewgroup interbase 451 | ||
25 | enewuser interbase 451 /bin/bash /opt/interbase interbase | ||
26 | } | ||
27 | |||
28 | src_unpack() { | ||
29 | cd ${WORKDIR} | ||
30 | unpack ${A} | ||
31 | tar zxf InterBaseCS_LI-V*.tgz | ||
32 | } | ||
33 | |||
34 | src_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 | |||
84 | pkg_postinst() { | ||
85 | einfo | ||
86 | einfo "Remember to run emerge --config =${PF}" | ||
87 | einfo | ||
88 | } | ||
89 | |||
90 | pkg_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 | } | ||