1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Stage support

- Enable usage on amd64
- Clean up Makefile (especially IGNORE message)

PR:		191993
Submitted by:	papowell@astart.com
This commit is contained in:
Rene Ladan 2014-07-22 21:09:51 +00:00
parent fa17eaa8a8
commit f43888a5b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362582
2 changed files with 23 additions and 39 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= instantclient
PORTVERSION= ${ORACLEVERSION}.${DISTDATE}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= #http://www.oracle.com/technology/software/tech/oci/instantclient/
PKGNAMEPREFIX= linux-oracle-
@ -12,17 +12,16 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${LINUXARCH}-${ORACLEVERSION}-${DISTDATE}
DIST_SUBDIR= oracle
MAINTAINER= ports@FreeBSD.org
COMMENT= Oracle 10 InstantClient SQLPlus. Works with Oracle RDBMS 8.1.2+
COMMENT= Oracle 10 32 Bit Linux InstantClient SQLPlus for 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)
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH}
DISTINFO_FILE= ${MASTERDIR}/distinfo.i386
RESTRICTED= Packaging prohibited by Oracle license
USES= zip
USE_LINUX= yes
USE_LINUX_PREFIX= yes
ORACLEVERSION= 10.2.0.3
@ -35,50 +34,35 @@ LIBS_LIST= glogin.sql \
WRKSRC= ${WRKDIR}/instantclient_10_2
INSTBINSDIR= ${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/bin
INSTLIBSDIR= ${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/lib
INSTBINSDIR= ${STAGEDIR}${PREFIX}/usr/bin
INSTLIBSDIR= ${STAGEDIR}${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/lib
USE_LDCONFIG=${INSTLIBSDIR}
PLIST_SUB= ORACLEVERSION=${ORACLEVERSION}
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
#.if ${ARCH} == "i386"
LINUXARCH= linux32
DISTDATE= 20061115
.elif ${ARCH} == "amd64"
LINUXARCH= linux-x86-64
DISTDATE= 20070103
.endif
#.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
IGNORE+= due to Oracle license restrictions, you must fetch the source distribution manually from http://www.oracle.com/technology/software/tech/oci/instantclient/index.html , follow the link for ${DISTFILES} and place them in ${DISTDIR}/${DIST_SUBDIR}/
.endif
do-install:
${MKDIR} -m 0755 ${INSTBINSDIR}
${MKDIR} -m 0755 ${INSTLIBSDIR}
${LN} -s ../lib/oracle/${ORACLEVERSION}/client/bin/sqlplus ${PREFIX}/usr/bin/sqlplus
@${MKDIR} -m 0755 ${INSTBINSDIR}
@${MKDIR} -m 0755 ${INSTLIBSDIR}
.for i in ${BINS_LIST}
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${INSTBINSDIR}/${i}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${INSTBINSDIR}/${i}
.endfor
.for i in ${LIBS_LIST}
${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBSDIR}/${i}
${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBSDIR}/${i}
.endfor
${PREFIX}/sbin/ldconfig
.include <bsd.port.post.mk>

View File

@ -1,8 +1,8 @@
usr/bin/sqlplus
usr/lib/oracle/%%ORACLEVERSION%%/client/bin/sqlplus
usr/lib/oracle/%%ORACLEVERSION%%/client/lib/glogin.sql
usr/lib/oracle/%%ORACLEVERSION%%/client/lib/libsqlplus.so
usr/lib/oracle/%%ORACLEVERSION%%/client/lib/libsqlplusic.so
@dirrm usr/lib/oracle/%%ORACLEVERSION%%/client/bin
@dirrmtry usr/bin
@exec %D/sbin/ldconfig
@dirrmtry usr/lib/oracle/%%ORACLEVERSION%%/client/lib
@dirrmtry usr/lib/oracle/%%ORACLEVERSION%%/client
@dirrmtry usr/lib/oracle/%%ORACLEVERSION%%
@dirrmtry usr/lib/oracle