# New ports collection makefile for: linux-oracle-instantclient-sqlplus # Date created: 2005-04-26 # Whom: nork@FreeBSD.org # # $FreeBSD$ # PORTNAME= instantclient PORTVERSION= ${ORACLEVERSION}.${DISTDATE} PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= #http://www.oracle.com/technology/software/tech/oci/instantclient/ PKGNAMEPREFIX= linux-oracle- PKGNAMESUFFIX= -sqlplus DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${LINUXARCH}-${ORACLEVERSION}-${DISTDATE} DIST_SUBDIR= oracle MAINTAINER= nork@FreeBSD.org COMMENT= Oracle 10 InstantClient SQLPlus. Works with Oracle RDBMS 8.1.2+ RUN_DEPENDS= ${LINUXBASE}/usr/lib/oracle/${ORACLEVERSION}/client/lib/libocci.so.10.1:${PORTSDIR}/databases/linux-oracle-instantclient-basic ONLY_FOR_ARCHS= i386 # amd64(not yet on own) NO_BUILD= yes DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH} RESTRICTED= Packaging prohibited by Oracle license USE_ZIP= yes USE_LINUX_PREFIX= yes ORACLEVERSION= 10.2.0.3 BINS_LIST= sqlplus LIBS_LIST= glogin.sql \ libsqlplus.so \ libsqlplusic.so WRKSRC= ${WRKDIR}/instantclient_10_2 INSTBINSDIR= ${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/bin INSTLIBSDIR= ${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/lib PLIST_SUB= ORACLEVERSION=${ORACLEVERSION} .include .if ${ARCH} == "i386" LINUXARCH= linux32 DISTDATE= 20061115 .elif ${ARCH} == "amd64" LINUXARCH= linux-x86-64 DISTDATE= 20070103 .endif .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 ${INSTBINSDIR} ${MKDIR} -m 0755 ${INSTLIBSDIR} ${LN} -s ../lib/oracle/${ORACLEVERSION}/client/bin/sqlplus ${PREFIX}/usr/bin/sqlplus .for i in ${BINS_LIST} ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${INSTBINSDIR}/${i} .endfor .for i in ${LIBS_LIST} ${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBSDIR}/${i} .endfor ${PREFIX}/sbin/ldconfig .include