ports/72227: [NEW PORT] database/oracle-instantclient-basic

Alexander Novitsky alecn2002 at yandex.ru
Fri Oct 1 14:40:34 UTC 2004


>Number:         72227
>Category:       ports
>Synopsis:       [NEW PORT] database/oracle-instantclient-basic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 01 14:40:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Novitsky
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
Inzhcomcentre VVD
>Environment:
System: FreeBSD server.v42of.icc-vvd.ru 5.2-RELEASE FreeBSD 5.2-RELEASE #2: Mon Jul 12 21:45:44 MSD 2004 root at server.v42of.icc-vvd.ru:/usr/src/sys/i386/compile/ORACLE i386


	
>Description:
	[NEW PORT] database/oracle-instantclient-basic
	
	Port of basic distro of Oracle Instant Client 
	released by Oracle Corp. with RDBMS ver.10.
	Works with any Oracle RDBMS (reported as from ver.8.1.2)
	and any Oracle client software which both support OCI/OCCI technology

>How-To-Repeat:
	
>Fix:

	

--- oracle-instantclient-basic.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	oracle-instantclient-basic
#	oracle-instantclient-basic/Makefile
#	oracle-instantclient-basic/distinfo
#	oracle-instantclient-basic/pkg-descr
#	oracle-instantclient-basic/pkg-plist
#
echo c - oracle-instantclient-basic
mkdir -p oracle-instantclient-basic > /dev/null 2>&1
echo x - oracle-instantclient-basic/Makefile
sed 's/^X//' >oracle-instantclient-basic/Makefile << 'END-of-oracle-instantclient-basic/Makefile'
X# New ports collection makefile for:	oracle-instantclient-basic
X# Date created:				03 June 2004
X# Whom:					Alexander Novitsky
X#
X# $FreeBSD$
X#
X
XPORTNAME=	instantclient
XPORTVERSION=	${MAJOR_VER}.${MINOR_VER}
XCATEGORIES=	databases
XMASTER_SITES=	http://www.oracle.com/technology/software/tech/oci/instantclient/
XPKGNAMEPREFIX=	oracle-
XPKGNAMESUFFIX=	-basic
XDISTNAME=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${MAJOR_VER}-${MINOR_VER}.${ARCH}
XEXTRACT_SUFX=	.rpm
XDIST_SUBDIR=	oracle
X
XMAINTAINER=	alecn2002 at yandex.ru
XCOMMENT=	Oracle 10 InstantClient basics. Works with Oracle RDBMS 8.1.2+
X
XEXTRACT_DEPENDS=  rpm:${PORTSDIR}/archivers/rpm
X
XONLY_FOR_ARCHS=	i386 ia64
XNO_BUILD=       yes
XINSTALLS_SHLIB=	yes
XLDCONFIG_DIRS+=	${INSTLIBDIR}
X
X.if defined(WITHOUT_JDBC)
XJLIB_LIST=
XPLIST_SUB+=	"MYJAVAJARDIR=@comment "
X.else
XUSE_JAVA=	yes
XJAVA_VERSION=	1.4+
XJLIB_LIST=	ojdbc14.jar
XPLIST_SUB+=	"MYJAVAJARDIR=${JAVAJARDIR:S/${LOCALBASE}\///}"
X.endif
X
XNO_INSTALL_MANPAGES=	yes
XNO_FILTER_SHLIBS=	yes
X
XRESTRICTED=	Packaging prohibited by Oracle license
X
XMAJOR_VER=	10.1.0.2
XMINOR_VER=	1
X
XLIB_LIST=	libclntsh.so.10.1	\
X		libocci.so.10.1		\
X		libnnz10.so		\
X		libociei.so		\
X		libocijdbc10.so
X
X.for i in ${LIB_LIST}
Xii_${i}=	${i:C/\.so(\.10\.1)?/.so.10/}
X.endfor
X
XWRKSRC=		${WRKDIR}/usr/lib/oracle/${MAJOR_VER}/client/lib
X
XINSTLIBDIR=	${PREFIX}/lib/oracle
X
XPLIST_SUB+=	"INSTLIBDIR=${INSTLIBDIR:C/^${PREFIX}\///}"
X
X.include <bsd.port.pre.mk>
X
X.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
XECHO_MSG=	${PRINTF} %b
X
XIGNORE+=	\n\n-=< MARKED AS IGNORED: >=-\n
XIGNORE+=	\n
XIGNORE+=	Due to Oracle license restrictions, you must fetch the source \n
XIGNORE+=	distribution manually.  Please access  \n
XIGNORE+=	${MASTER_SITES}index.html \n
XIGNORE+=	with a web browser and follow the link for the \n
XIGNORE+=	\"${DISTFILES}\".  \n
XIGNORE+=	You will be required to register and log in, \n
XIGNORE+=	but you can create an account on that page.  \n
XIGNORE+=	After registration and accepting the Oracle License, \n
XIGNORE+=	download the distribution file, \n ${DISTFILES}, \n
XIGNORE+=	into ${DISTDIR}/${DIST_SUBDIR}/ \n
XIGNORE+=	and then restart this installation\n\n
X.endif
X
Xdo-extract:
X	${INSTALL_DATA} -d ${WRKDIR}
X	cd ${WRKDIR}; \
X		rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${CPIO} -id
X
Xdo-install:
X	${INSTALL_DATA} -d ${INSTLIBDIR}
X.for i in ${LIB_LIST}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBDIR}/${i}
X	${LN} -s ${INSTLIBDIR}/${i} ${INSTLIBDIR}/${ii_${i}}
X.endfor
X.if !defined(WITHOUT_JDBC)
X	${INSTALL_DATA} -d ${JAVAJARDIR}
X.for i in ${JLIB_LIST}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${JAVAJARDIR}
X.endfor
X.endif
X
X#
X# These targets are for testing purposes
X#
Xnoharm-extract:
X	@${ECHO} ${INSTALL_DATA} -d ${WRKDIR}
X	@${ECHO} 'cd ${WRKDIR}; \
X		rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${CPIO} -id'
X
Xnoharm-install:
X	@${ECHO} ${INSTALL_DATA} -d ${INSTLIBDIR}
X.for i in ${LIB_LIST}
X	@${ECHO} ${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBDIR}/${i}
X	@${ECHO} ${LN} -s ${INSTLIBDIR}/${i} ${INSTLIBDIR}/${ii_${i}}
X.endfor
X.if !defined(WITHOUT_JDBC)
X	@${ECHO} ${INSTALL_DATA} -d ${JAVAJARDIR}
X.for i in ${JLIB_LIST}
X	@${ECHO} ${INSTALL_DATA} ${WRKSRC}/${i} ${JAVAJARDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-oracle-instantclient-basic/Makefile
echo x - oracle-instantclient-basic/distinfo
sed 's/^X//' >oracle-instantclient-basic/distinfo << 'END-of-oracle-instantclient-basic/distinfo'
XMD5 (oracle/oracle-instantclient-basic-10.1.0.2-1.i386.rpm) = 39fb478b851bd411acf3ff35daae20cf
XSIZE (oracle/oracle-instantclient-basic-10.1.0.2-1.i386.rpm) = 40065717
END-of-oracle-instantclient-basic/distinfo
echo x - oracle-instantclient-basic/pkg-descr
sed 's/^X//' >oracle-instantclient-basic/pkg-descr << 'END-of-oracle-instantclient-basic/pkg-descr'
XOracle instant client - basic distribution
X
XInstant Client allows you to run your applications without installing
Xthe standard Oracle client or having an ORACLE_HOME.  OCI, OCCI, ODBC,
Xand JDBC applications work without modification, while using
Xsignificantly less disk space than before.  Even SQL*Plus can be used
Xwith Instant Client.  No recompile, no hassle.
X
XWWW: http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
END-of-oracle-instantclient-basic/pkg-descr
echo x - oracle-instantclient-basic/pkg-plist
sed 's/^X//' >oracle-instantclient-basic/pkg-plist << 'END-of-oracle-instantclient-basic/pkg-plist'
X%%INSTLIBDIR%%/libclntsh.so.10
X%%INSTLIBDIR%%/libclntsh.so.10.1
X%%INSTLIBDIR%%/libocci.so.10
X%%INSTLIBDIR%%/libocci.so.10.1
X%%INSTLIBDIR%%/libnnz10.so.10
X%%INSTLIBDIR%%/libnnz10.so
X%%INSTLIBDIR%%/libociei.so.10
X%%INSTLIBDIR%%/libociei.so
X%%INSTLIBDIR%%/libocijdbc10.so.10
X%%INSTLIBDIR%%/libocijdbc10.so
X%%MYJAVAJARDIR%%/ojdbc14.jar
X at dirrm %%INSTLIBDIR%%
END-of-oracle-instantclient-basic/pkg-plist
exit
--- oracle-instantclient-basic.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list