blob: 1fd52c9a8379de8de3fcc1e75045b0bd72d7a537 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird-ss-bin/firebird-ss-bin-1.0.3.ebuild,v 1.2 2004/03/14 13:19:52 mr_bones_ Exp $
DEPEND="virtual/glibc"
RDEPEND="${DEPEND}"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~x86"
HOMEPAGE="http://www.firebirdsql.com"
MY_PN="FirebirdSS"
MY_PV="${PV}.972-0"
MY_P="${MY_PN}-${MY_PV}"
SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.gz"
DESCRIPTION="Firebird SQL Super Server Binary"
S=${WORKDIR}/${MY_P}
src_install() {
cd ${D}
tar -zxvf ${S}/buildroot.tar.gz
chown -R firebird:firebird ${D}/opt/interbase
chmod ug+x ${D}/opt/interbase/bin/*
insinto /etc/conf.d
newins ${FILESDIR}/conf firebird
exeinto /etc/init.d
newexe ${FILESDIR}/init firebird
exeinto /opt/interbase/bin
newexe ${FILESDIR}/ibmgr ibmgr
}
pkg_preinst() {
/etc/init.d/firebird stop 2> /dev/null
userdel firebird 2> /dev/null
if ! groupmod firebird; then
groupadd firebird 2> /dev/null || die "Failed to create group"
fi
useradd -g firebird -s /dev/null -d /var/empty -c "firebird" firebird || \
die "Failed to create firebird user"
}
pkg_postinst() {
if ! grep 'localhost[[:space:]]*$' /etc/hosts.equiv > /dev/null; then
echo localhost >> /etc/hosts.equiv
fi
if ! grep localhost.localdomain /etc/hosts.equiv > /dev/null; then
echo localhost.localdomain >> /etc/hosts.equiv
fi
if ! grep gds_db /etc/services > /dev/null; then
echo -e "#\n#Service added for gds_db (firebird)\n#" >> /etc/services
echo "gds_db 3050/tcp" >> /etc/services
einfo "added gds_db to /etc/services"
fi
/etc/init.d/firebird start
chown firebird:firebird /opt/interbase
chmod ug+x /opt/interbase/bin/*
}
|