blob: f27d1a9adf9fc9af471d323b06e4e39291bfd8cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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
}
|