Add linux-oracle-instantclient-basic 10.1.0.3, oracle 10

InstantClient basics. Works with Oracle RDBMS 8.1.2+.

PR:		ports/76166
Submitted by:	Alexander Novitsky <alecn2002@yandex.ru>
Oked by:	thierry:-)
This commit is contained in:
Norikatsu Shigemura 2005-05-06 15:08:19 +00:00
parent 8b25c54449
commit 21ab002805
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134700
5 changed files with 99 additions and 0 deletions

View file

@ -81,6 +81,7 @@
SUBDIR += libodbc++
SUBDIR += libsdb
SUBDIR += libudbc
SUBDIR += linux-oracle-instantclient-basic
SUBDIR += lsdb
SUBDIR += lsdb-emacs20
SUBDIR += mantis

View file

@ -0,0 +1,72 @@
# New ports collection makefile for: linux-oracle-instantclient-basic
# Date created: 03 June 2004
# Whom: Alexander Novitsky
#
# $FreeBSD$
#
PORTNAME= instantclient
PORTVERSION= 10.1.0.3
CATEGORIES= databases
MASTER_SITES= #http://www.oracle.com/technology/software/tech/oci/instantclient/
PKGNAMEPREFIX= linux-oracle-
PKGNAMESUFFIX= -basic
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-linux32-${PORTVERSION}
DIST_SUBDIR= oracle
MAINTAINER= alecn2002@yandex.ru
COMMENT= Oracle 10 InstantClient basics. Works with Oracle RDBMS 8.1.2+
ONLY_FOR_ARCHS= i386
# Couldn't test for IA64, so commented it out
# ONLY_FOR_ARCHS+= ia64
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
RESTRICTED= Packaging prohibited by Oracle license
USE_ZIP= yes
USE_LINUX_PREFIX= yes
LIBS_LIST= libclntsh.so.10.1 \
libnnz10.so \
libocci.so.10.1 \
libociei.so \
libocijdbc10.so \
libocci10_296.so.10.1
WRKSRC= ${WRKDIR}/instantclient10_1
INSTLIBSDIR= ${PREFIX}/usr/lib/oracle/${PORTVERSION}/client/lib
PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
ECHO_MSG= ${PRINTF} %b
IGNORE+= \n\n-=< MARKED AS IGNORED: >=-\n
IGNORE+= \n
IGNORE+= Due to Oracle license restrictions, you must fetch the source \n
IGNORE+= distribution manually. Please access \n
IGNORE+= http://www.oracle.com/technology/software/tech/oci/instantclient/index.html \n
IGNORE+= with a web browser and follow the link for the \n
IGNORE+= \"${DISTFILES}\". \n
IGNORE+= You will be required to register and log in, \n
IGNORE+= but you can create an account on that page. \n
IGNORE+= After registration and accepting the Oracle License, \n
IGNORE+= download the distribution file, \n ${DISTFILES}, \n
IGNORE+= into ${DISTDIR}/${DIST_SUBDIR}/ \n
IGNORE+= and then restart this installation\n\n
.endif
do-install:
@${MKDIR} -m 0755 ${INSTLIBSDIR}
.for i in ${LIBS_LIST}
${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBSDIR}/${i}
.endfor
${ECHO_CMD} "${INSTLIBSDIR:S,${PREFIX},,}" >> ${PREFIX}/etc/ld.so.conf
${PREFIX}/sbin/ldconfig
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (oracle/instantclient-basic-linux32-10.1.0.3.zip) = b43820c427f715cd9c26f6031334169d
SIZE (oracle/instantclient-basic-linux32-10.1.0.3.zip) = 31409620

View file

@ -0,0 +1,9 @@
Oracle instant client - basic distribution
Instant Client allows you to run your applications without installing
the standard Oracle client or having an ORACLE_HOME. OCI, OCCI, ODBC,
and JDBC applications work without modification, while using
significantly less disk space than before. Even SQL*Plus can be used
with Instant Client. No recompile, no hassle.
WWW: http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html

View file

@ -0,0 +1,15 @@
usr/lib/oracle/%%PORTVERSION%%/client/lib/libclntsh.so.10.1
usr/lib/oracle/%%PORTVERSION%%/client/lib/libnnz10.so
usr/lib/oracle/%%PORTVERSION%%/client/lib/libocci.so.10.1
usr/lib/oracle/%%PORTVERSION%%/client/lib/libociei.so
usr/lib/oracle/%%PORTVERSION%%/client/lib/libocijdbc10.so
usr/lib/oracle/%%PORTVERSION%%/client/lib/libocci10_296.so.10.1
@dirrm usr/lib/oracle/%%PORTVERSION%%/client/lib
@dirrm usr/lib/oracle/%%PORTVERSION%%/client
@dirrm usr/lib/oracle/%%PORTVERSION%%
@dirrm usr/lib/oracle
@unexec rmdir %D/usr/lib 2>/dev/null || true
@unexec rmdir %D/usr 2>/dev/null || true
@unexec cp %D/etc/ld.so.conf %D/etc/ld.so.conf.bak && sed "/\/usr\/lib\/oracle\/%%PORTVERSION%%\/client\/lib/d" %D/etc/ld.so.conf.bak > %D/etc/ld.so.conf && rm %D/etc/ld.so.conf.bak
@exec echo /usr/lib/oracle/%%PORTVERSION%%/client/lib >> %D/etc/ld.so.conf
@exec %D/sbin/ldconfig