diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-12-26 17:53:50 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-12-26 17:53:50 +0000 |
commit | d990d77c797c55069f1fac259fc8261026142747 (patch) | |
tree | c28d44a6a38a5b42cb128c359de9a9c0bf124d4d /dev-db/oracle-instantclient-basic | |
parent | Mask libmusepack and gst-plugins-musepack-0.8.8 (only ebuild left depending o... (diff) | |
download | gentoo-2-d990d77c797c55069f1fac259fc8261026142747.tar.gz gentoo-2-d990d77c797c55069f1fac259fc8261026142747.tar.bz2 gentoo-2-d990d77c797c55069f1fac259fc8261026142747.zip |
Version bump, 10.2.0.3 is only available for x86 as of now.
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'dev-db/oracle-instantclient-basic')
3 files changed, 106 insertions, 1 deletions
diff --git a/dev-db/oracle-instantclient-basic/ChangeLog b/dev-db/oracle-instantclient-basic/ChangeLog index 5b626548c601..62d823bc0136 100644 --- a/dev-db/oracle-instantclient-basic/ChangeLog +++ b/dev-db/oracle-instantclient-basic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/oracle-instantclient-basic # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-basic/ChangeLog,v 1.18 2006/07/23 11:08:48 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-basic/ChangeLog,v 1.19 2006/12/26 17:53:50 dertobi123 Exp $ + +*oracle-instantclient-basic-10.2.0.3 (26 Dec 2006) + + 26 Dec 2006; Tobias Scherbaum <dertobi123@gentoo.org> + +oracle-instantclient-basic-10.2.0.3.ebuild: + Version bump, 10.2.0.3 is only available for x86 as of now. *oracle-instantclient-basic-10.1.0.5 (23 Jul 2006) diff --git a/dev-db/oracle-instantclient-basic/files/digest-oracle-instantclient-basic-10.2.0.3 b/dev-db/oracle-instantclient-basic/files/digest-oracle-instantclient-basic-10.2.0.3 new file mode 100644 index 000000000000..70513cd5358e --- /dev/null +++ b/dev-db/oracle-instantclient-basic/files/digest-oracle-instantclient-basic-10.2.0.3 @@ -0,0 +1,6 @@ +MD5 5cb04ec2693923ce5bfd21636522274b instantclient-basic-linux32-10.2.0.3-20061115.zip 34556803 +RMD160 12ac6ca9f94a255ca27de44a2feea6e49c3a4547 instantclient-basic-linux32-10.2.0.3-20061115.zip 34556803 +SHA256 11fce485c405afa4a30f34eba36ad0d566a599617f80dfc565bd08d8c421e1ae instantclient-basic-linux32-10.2.0.3-20061115.zip 34556803 +MD5 ceddd3932ba7ebdc1f1b4a9724b92877 instantclient-sdk-linux32-10.2.0.3-20061115.zip 602897 +RMD160 06ce90ef1fb7c61e920e3a3e37578f54b3d2db0f instantclient-sdk-linux32-10.2.0.3-20061115.zip 602897 +SHA256 6893a784e1802e18300230dcac1ed2ecd6dc68a7060c02717f73bf268d43f6a5 instantclient-sdk-linux32-10.2.0.3-20061115.zip 602897 diff --git a/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild b/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild new file mode 100644 index 000000000000..d139b8fe8667 --- /dev/null +++ b/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild,v 1.1 2006/12/26 17:53:50 dertobi123 Exp $ + +inherit eutils + +MY_P_x86="${PN/oracle-/}-linux32-${PV}-20061115" +MY_PSDK_x86="${MY_P_x86/basic/sdk}" + +S=${WORKDIR} +DESCRIPTION="Oracle 10g client installation for Linux with SDK" +HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html" +SRC_URI="x86? ( ${MY_P_x86}.zip ${MY_PSDK_x86}.zip )" + +LICENSE="OTN" +SLOT="0" +KEYWORDS="-* ~x86" +RESTRICT="fetch" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="|| ( =sys-libs/libstdc++-v3-3.3* =sys-devel/gcc-3.3* )" + +my_arch() { + MY_P=MY_P_${ARCH} + export MY_P=${!MY_P} + MY_PSDK=MY_PSDK_${ARCH} + export MY_PSDK=${!MY_PSDK} +} + +pkg_setup() { + my_arch +} + +pkg_nofetch() { + my_arch + eerror "Please go to:" + eerror " ${HOMEPAGE}" + eerror "and download the Basic client package with SDK, which are:" + eerror " ${MY_P}.zip" + eerror " ${MY_PSDK}.zip" + eerror "Then after downloading put them in:" + eerror " ${DISTDIR}" +} + +src_unpack() { + unzip ${DISTDIR}/${MY_P}.zip || die "unsuccesful unzip ${MY_P}.zip" + unzip ${DISTDIR}/${MY_PSDK}.zip || die "unsuccesful unzip ${MY_PSDK}.zip" +} + +src_install() { + # library + dodir /usr/lib/oracle/${PV}/client/lib + cd ${S}/instantclient_10_2 + insinto /usr/lib/oracle/${PV}/client/lib + doins *.jar *.so *.so.10.1 + + # fixes symlinks + dosym /usr/lib/oracle/${PV}/client/lib/libocci.so.10.1 /usr/lib/oracle/${PV}/client/lib/libocci.so + dosym /usr/lib/oracle/${PV}/client/lib/libclntsh.so.10.1 /usr/lib/oracle/${PV}/client/lib/libclntsh.so + + # includes + dodir /usr/lib/oracle/${PV}/client/include + insinto /usr/lib/oracle/${PV}/client/include + cd ${S}/instantclient_10_2/sdk/include + doins *.h + # link to original location + dodir /usr/include/oracle/${PV}/ + ln -s ${D}/usr/lib/oracle/${PV}/client/include ${D}/usr/include/oracle/${PV}/client + + # share info + cd ${S}/instantclient_10_2/sdk/demo + dodoc * + + # Add OCI libs to library path + dodir /etc/env.d + echo "ORACLE_HOME=/usr/lib/oracle/${PV}/client" >> ${D}/etc/env.d/50oracle-instantclient-basic + echo "LDPATH=/usr/lib/oracle/${PV}/client/lib" >> ${D}/etc/env.d/50oracle-instantclient-basic + echo "C_INCLUDE_PATH=/usr/lib/oracle/${PV}/client/include" >> ${D}/etc/env.d/50oracle-instantclient-basic +} + +pkg_postinst() { + einfo "The Basic client page for Oracle 10g has been installed." + einfo "You may also wish to install the oracle-instantclient-jdbc (for" + einfo "supplemental JDBC functionality with Oracle) and the" + einfo "oracle-instantclient-sqlplus (for running the SQL*Plus application)" + einfo "packages as well." + einfo + einfo "Examples are located in /usr/share/doc/${PF}/" + einfo + einfo "oracle-instantclient-* packages aren't installed in different" + einfo "SLOTs any longer. You may want to uninstall older versions." +} |