summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2008-01-09 12:13:08 +0000
committerrandomdan <randomdan@localhost>2008-01-09 12:13:08 +0000
commitc63d65d074c3852bbeb95787bd4e90f1180b7450 (patch)
treef5c4c659f988e670800a57f60dbbe655a015c277 /dev-db
parentFix checksum (diff)
downloadportage-c63d65d074c3852bbeb95787bd4e90f1180b7450.tar.bz2
portage-c63d65d074c3852bbeb95787bd4e90f1180b7450.tar.xz
portage-c63d65d074c3852bbeb95787bd4e90f1180b7450.zip
Fetchable instant oracle client
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/oracle-instantclient-basic/Manifest15
-rw-r--r--dev-db/oracle-instantclient-basic/files/digest-oracle-instantclient-basic-10.2.0.312
-rw-r--r--dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild107
3 files changed, 134 insertions, 0 deletions
diff --git a/dev-db/oracle-instantclient-basic/Manifest b/dev-db/oracle-instantclient-basic/Manifest
new file mode 100644
index 0000000..f7bd74c
--- /dev/null
+++ b/dev-db/oracle-instantclient-basic/Manifest
@@ -0,0 +1,15 @@
+DIST instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip 36454483 RMD160 fa431168723c9c2fe2182c9e480606db4b88932d SHA1 fd28349cedf225c16a5399362cb4919b7fc3a5e1 SHA256 9195ab13e59365bfef6b2b43732a652d77d7ef8b93019f31104bc13832c6a491
+DIST instantclient-basic-linux32-10.2.0.3-20061115.zip 34556803 RMD160 12ac6ca9f94a255ca27de44a2feea6e49c3a4547 SHA1 08092f796c1c362254d18e73c955fd0bff9db78b SHA256 11fce485c405afa4a30f34eba36ad0d566a599617f80dfc565bd08d8c421e1ae
+DIST instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip 603137 RMD160 323d6407c664e9fdbc8a7b829e93deffa7871925 SHA1 d3486539a5b9a4721b7a57fd61c7694be4e2c6f1 SHA256 d9da1494a9d19e96bff79c3ff77d079633d18c7d9b462a37eacc9a2a40641912
+DIST instantclient-sdk-linux32-10.2.0.3-20061115.zip 602897 RMD160 06ce90ef1fb7c61e920e3a3e37578f54b3d2db0f SHA1 cb70884b44150f5048c4876e41c58fec8d252705 SHA256 6893a784e1802e18300230dcac1ed2ecd6dc68a7060c02717f73bf268d43f6a5
+EBUILD oracle-instantclient-basic-10.2.0.3.ebuild 3407 RMD160 e41b003f9ea7f09ee6c01f7bab19d7c9c07d611b SHA1 daaa90370eed5450bc8da5285da69fb5a32b9b91 SHA256 7473b9f80e1a15eff422beda249e307f28000b02caa270288274e761c51a0c5a
+MD5 d26fdb5aae06e7575faec83880480140 oracle-instantclient-basic-10.2.0.3.ebuild 3407
+RMD160 e41b003f9ea7f09ee6c01f7bab19d7c9c07d611b oracle-instantclient-basic-10.2.0.3.ebuild 3407
+SHA256 7473b9f80e1a15eff422beda249e307f28000b02caa270288274e761c51a0c5a oracle-instantclient-basic-10.2.0.3.ebuild 3407
+MISC .oracle-instantclient-basic-10.2.0.3.ebuild.swp 12288 RMD160 51a1f44d129c88f9107103c44f6b8c44cab732a9 SHA1 4ff72717e18815c5e1a00608b2593b39a966782f SHA256 18ebf52ac5e780073452f313137e44f2bba2907215be2447ee11557ca11804d7
+MD5 76ffeac43e641f2996f7825e980b5c69 .oracle-instantclient-basic-10.2.0.3.ebuild.swp 12288
+RMD160 51a1f44d129c88f9107103c44f6b8c44cab732a9 .oracle-instantclient-basic-10.2.0.3.ebuild.swp 12288
+SHA256 18ebf52ac5e780073452f313137e44f2bba2907215be2447ee11557ca11804d7 .oracle-instantclient-basic-10.2.0.3.ebuild.swp 12288
+MD5 eb3ae79b2597367a0855060278250657 files/digest-oracle-instantclient-basic-10.2.0.3 1342
+RMD160 f3bdfa7558efdc12c1ad5ef22ce948f3de3bf8d3 files/digest-oracle-instantclient-basic-10.2.0.3 1342
+SHA256 5d8a0943e316b1c0214ee9b64e3a010c7edae9e944ecb255ffb7fc6bec5145f1 files/digest-oracle-instantclient-basic-10.2.0.3 1342
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 0000000..f2cedca
--- /dev/null
+++ b/dev-db/oracle-instantclient-basic/files/digest-oracle-instantclient-basic-10.2.0.3
@@ -0,0 +1,12 @@
+MD5 79f09b31c568097e00663ade58ed1d3b instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip 36454483
+RMD160 fa431168723c9c2fe2182c9e480606db4b88932d instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip 36454483
+SHA256 9195ab13e59365bfef6b2b43732a652d77d7ef8b93019f31104bc13832c6a491 instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip 36454483
+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 f9767d2eac62b9fce598a5f701d251c6 instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip 603137
+RMD160 323d6407c664e9fdbc8a7b829e93deffa7871925 instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip 603137
+SHA256 d9da1494a9d19e96bff79c3ff77d079633d18c7d9b462a37eacc9a2a40641912 instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip 603137
+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 0000000..978c958
--- /dev/null
+++ b/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvs/lportage/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.3.ebuild,v 1.1 2008-01-09 12:13:08 randomdan Exp $
+
+inherit eutils
+
+MY_P_x86="http://portage.develop.web.dot/${PN/oracle-/}-linux32-${PV}-20061115"
+MY_PSDK_x86="${MY_P_x86/basic/sdk}"
+
+MY_P_amd64="http://portage.develop.web.dot/${PN/oracle-/}-linux-x86-64-${PV}-20070103"
+MY_PSDK_amd64="${MY_P_amd64/basic/sdk}"
+
+S=${WORKDIR}
+DESCRIPTION="Oracle 10g client installation for Linux with SDK"
+HOMEPAGE="http://www.oracle.com/technology/tech/oci/instantclient/index.html"
+SRC_URI="amd64? ( ${MY_P_amd64}.zip ${MY_PSDK_amd64}.zip )
+ x86? ( ${MY_P_x86}.zip ${MY_PSDK_x86}.zip )"
+
+LICENSE="OTN"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+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 "select your platform and download the"
+ eerror "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() {
+ # Patch the SDK makefile
+ epatch ${FILESDIR}/${P}-makefile.patch
+
+ # SDK makefile
+ dodir /usr/lib/oracle/${PV}/client/rdbms/demo
+ cd ${S}/instantclient_10_2/sdk/demo
+ mv demo.mk demo_xe.mk
+ insinto /usr/lib/oracle/${PV}/client/rdbms/demo
+ doins demo_xe.mk
+
+ # 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() {
+ elog "The Basic client page for Oracle 10g has been installed."
+ elog "You may also wish to install the oracle-instantclient-jdbc (for"
+ elog "supplemental JDBC functionality with Oracle) and the"
+ elog "oracle-instantclient-sqlplus (for running the SQL*Plus application)"
+ elog "packages as well."
+ elog
+ elog "Examples are located in /usr/share/doc/${PF}/"
+ elog
+ elog "oracle-instantclient-* packages aren't installed in different"
+ elog "SLOTs any longer. You may want to uninstall older versions."
+}