/[gentoo-x86]/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.1.0.2_p1-r1.ebuild
Gentoo

Contents of /dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.1.0.2_p1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Jan 19 21:47:28 2006 UTC (14 years, 8 months ago) by nelchael
Branch: MAIN
Changes since 1.2: +3 -3 lines
Fixed SLOT, 10.1.0.4 stable on x86.
(Portage version: 2.1_pre3-r1)

1 nelchael 1.3 # Copyright 1999-2006 Gentoo Foundation
2 rizzo 1.1 # Distributed under the terms of the GNU General Public License v2
3 nelchael 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.1.0.2_p1-r1.ebuild,v 1.2 2005/01/01 17:39:11 eradicator Exp $
4 rizzo 1.1
5     inherit eutils
6    
7     MY_PV=${PV/_p/-}
8     MY_P="${PN}-${MY_PV}.i386"
9    
10     S=${WORKDIR}
11     DESCRIPTION="Oracle 10g client installation for Linux"
12     HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
13     SRC_URI="${MY_P}.rpm"
14    
15     LICENSE="OTN"
16 nelchael 1.3 SLOT="${PV}"
17 rizzo 1.1 KEYWORDS="~x86"
18     RESTRICT="fetch"
19     IUSE=""
20    
21     DEPEND="app-arch/rpm2targz"
22    
23     pkg_nofetch() {
24     eerror "Please go to:"
25     eerror " ${HOMEPAGE}"
26     eerror "and download the Basic client package. Put it in:"
27     eerror " ${DISTDIR}"
28     eerror "after downloading it."
29     }
30    
31     src_unpack() {
32     rpm2targz ${DISTDIR}/${MY_P}.rpm
33     tar zxf ${WORKDIR}/${MY_P}.tar.gz
34     }
35    
36     src_install() {
37     dodir /usr/lib/oracle/10.1.0.2/client/lib
38     cd ${S}/usr/lib/oracle/10.1.0.2/client/lib
39     insinto /usr/lib/oracle/10.1.0.2/client/lib
40     doins *.jar *.so *.so.10.1
41    
42     # Add OCI libs to library path
43     dodir /etc/env.d
44     echo 'LDPATH=/usr/lib/oracle/10.1.0.2/client/lib' > ${D}/etc/env.d/50oracle-instantclient-basic
45    
46     }
47    
48     pkg_postinst() {
49     echo
50     einfo "The Basic client page for Oracle 10g has been installed."
51     einfo "You may also wish to install the oracle-instantclient-jdbc (for"
52     einfo "supplemental JDBC functionality with Oracle) and the"
53     einfo "oracle-instantclient-sqlplus (for running the SQL*Plus application)"
54     einfo "packages as well."
55     echo
56     }

  ViewVC Help
Powered by ViewVC 1.1.20