/[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.4 - (show annotations) (download)
Tue Dec 26 18:52:18 2006 UTC (13 years, 7 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
Error occurred while calculating annotation data.
FILE REMOVED
Cleanup
(Portage version: 2.1.2_rc4-r1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.1.0.2_p1-r1.ebuild,v 1.3 2006/01/19 21:47:28 nelchael Exp $
4
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 SLOT="${PV}"
17 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