f04cf5ed1c
Chagnelog: Fix the following vulnerabilities CVE-2016-3587 CVE-2016-3606 CVE-2016-3552 CVE-2016-3511 CVE-2016-3503 CVE-2016-3498 CVE-2016-3500 CVE-2016-3508 CVE-2016-3458 CVE-2016-3550 CVE-2016-3485
81 lines
2.5 KiB
Makefile
81 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2016/09/19 06:57:49 ryoon Exp $
|
|
|
|
# Note: This must be kept in sync with the oracle-jre8 package
|
|
# Note: make sure you include sums for both the x86_64 and the x86_32
|
|
# in distinfo (make makesum will eat one of them)
|
|
|
|
DISTNAME= jdk-8u${UPDATE_NUMBER}-${DIST_OS}-${DIST_ARCH}
|
|
PKGNAME= oracle-jdk8-8.0.${UPDATE_NUMBER}
|
|
MASTER_SITES= # empty
|
|
|
|
LICENSE= oracle-binary-code-license
|
|
|
|
DOWNLOAD_NAME= Java Development Kit (JDK) 8u${UPDATE_NUMBER}
|
|
|
|
DEPENDS+= ${PKGNAME_NOREV:S/jdk/jre/}*:../../lang/oracle-jre8
|
|
|
|
WRKSRC= ${WRKDIR}/jdk1.8.0_${UPDATE_NUMBER}
|
|
JAVA_WRAPPERS= appletviewer apt extcheck idlj jar jarsigner \
|
|
javac javadoc javah javap jcmd jdb rmic serialver jps
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.include "../../lang/oracle-jre8/Makefile.common"
|
|
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
|
|
CHECK_SHLIBS_SUPPORTED= no
|
|
.endif
|
|
|
|
PLIST_SRC= PLIST.${DIST_OS}-${EMUL_ARCH}
|
|
PLIST_SUBST+= JAVA_ARCH="${JAVA_ARCH}"
|
|
|
|
# Simplify distinfo generation
|
|
.if make(distinfo)
|
|
DISTFILES= jdk-8u${UPDATE_NUMBER}-linux-i586.tar.gz
|
|
DISTFILES+= jdk-8u${UPDATE_NUMBER}-linux-x64.tar.gz
|
|
DISTFILES+= jdk-8u${UPDATE_NUMBER}-solaris-x64.tar.gz
|
|
FETCH_MESSAGE= "You must fetch the following files to generate distinfo:"
|
|
FETCH_MESSAGE+= ""
|
|
.for file in ${DISTFILES}
|
|
FETCH_MESSAGE+= " ${file}"
|
|
.endfor
|
|
FETCH_MESSAGE+= ""
|
|
FETCH_MESSAGE+= "from:"
|
|
FETCH_MESSAGE+= " ${DOWNLOAD}"
|
|
FETCH_MESSAGE+= " or ${ARCHIVE}"
|
|
.endif
|
|
|
|
# Remove parts that are in common with the JRE
|
|
#
|
|
post-extract:
|
|
${MKDIR} ${WRKSRC}/lib/${JAVA_ARCH}
|
|
${MV} ${WRKSRC}/jre/lib/${JAVA_ARCH}/libattach.so ${WRKSRC}/lib/${JAVA_ARCH}
|
|
${MV} ${WRKSRC}/jre/lib/${JAVA_ARCH}/libsaproc.so ${WRKSRC}/lib/${JAVA_ARCH}
|
|
common=`${AWK} '/^#.*/ { next } /^$$/ { next } { print }' ${FILESDIR}/common`; \
|
|
cd ${WRKSRC}; for i in $$common; do \
|
|
if [ -d $$i ]; then \
|
|
${RM} -rf $$i; \
|
|
else \
|
|
${RM} -f $$i; \
|
|
fi; \
|
|
done
|
|
${LN} -sf . ${WRKSRC}/jre
|
|
|
|
pre-install:
|
|
# These files are generated the *first* time the package is built
|
|
${RM} -f ${WRKSRC}/register.html
|
|
${RM} -f ${WRKSRC}/register_ja.html
|
|
${RM} -f ${WRKSRC}/register_zh_CN.html
|
|
${CHMOD} -x \
|
|
${WRKSRC}/db/bin/NetworkServerControl.bat \
|
|
${WRKSRC}/db/bin/dblook.bat \
|
|
${WRKSRC}/db/bin/derby_common.bat \
|
|
${WRKSRC}/db/bin/ij.bat \
|
|
${WRKSRC}/db/bin/setEmbeddedCP.bat \
|
|
${WRKSRC}/db/bin/setNetworkClientCP.bat \
|
|
${WRKSRC}/db/bin/setNetworkServerCP.bat \
|
|
${WRKSRC}/db/bin/startNetworkServer.bat \
|
|
${WRKSRC}/db/bin/stopNetworkServer.bat \
|
|
${WRKSRC}/db/bin/sysinfo.bat
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|