mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/java7-openjdk to 7.u60_2.5.0-1
This commit is contained in:
parent
a13fbdedbf
commit
2626fcb565
2 changed files with 186 additions and 193 deletions
|
@ -15,19 +15,10 @@
|
|||
pkgname=('jre7-openjdk-headless' 'jre7-openjdk' 'jdk7-openjdk' 'openjdk7-src')
|
||||
pkgbase=java7-openjdk
|
||||
_java_ver=7
|
||||
_icedtea_ver=2.4.7
|
||||
_icedtea_ver=2.5.0
|
||||
|
||||
# check "${srcdir}/icedtea-${_icedtea_ver}"/Makefile.am
|
||||
_JDK_UPDATE_VERSION=55
|
||||
|
||||
_CORBA_CHANGESET=e6ad5b912691
|
||||
_JAXP_CHANGESET=94b7e8e0d96f
|
||||
_JAXWS_CHANGESET=bd9a50a78d04
|
||||
_JDK_CHANGESET=9448fff93286
|
||||
_LANGTOOLS_CHANGESET=8c26a3c39128
|
||||
_OPENJDK_CHANGESET=13970e76b784
|
||||
|
||||
_HOTSPOT_CHANGESET=69b542696e5b # see "${srcdir}/icedtea-${_icedtea_ver}"/hotspot.map
|
||||
_JDK_UPDATE_VERSION=60
|
||||
|
||||
_bootstrap=0 # 0/1 for quick build or full bootstrap
|
||||
|
||||
|
@ -42,30 +33,30 @@ makedepends=('jdk7-openjdk' 'libxp' 'libxslt'
|
|||
'java-rhino' 'libpulse>=0.9.11' 'zip' 'unzip' 'cpio' 'fastjar' 'wget' 'procps-ng' 'inetutils'
|
||||
'eclipse-ecj')
|
||||
|
||||
_url=http://icedtea.classpath.org/hg/release/icedtea7-forest-${_icedtea_ver:0:3}
|
||||
#_zurl=http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1
|
||||
source=(http://icedtea.classpath.org/download/source/icedtea-${_icedtea_ver}.tar.gz
|
||||
openjdk-${_OPENJDK_CHANGESET}.tar.gz::${_url}/archive/${_OPENJDK_CHANGESET}.tar.gz
|
||||
corba-${_CORBA_CHANGESET}.tar.gz::${_url}/corba/archive/${_CORBA_CHANGESET}.tar.gz
|
||||
jaxp-${_JAXP_CHANGESET}.tar.gz::${_url}/jaxp/archive/${_JAXP_CHANGESET}.tar.gz
|
||||
jaxws-${_JAXWS_CHANGESET}.tar.gz::${_url}/jaxws/archive/${_JAXWS_CHANGESET}.tar.gz
|
||||
jdk-${_JDK_CHANGESET}.tar.gz::${_url}/jdk/archive/${_JDK_CHANGESET}.tar.gz
|
||||
langtools-${_LANGTOOLS_CHANGESET}.tar.gz::${_url}/langtools/archive/${_LANGTOOLS_CHANGESET}.tar.gz
|
||||
hotspot-${_HOTSPOT_CHANGESET}.tar.gz::${_url}/hotspot/archive/${_HOTSPOT_CHANGESET}.tar.gz
|
||||
_icedtea_url=http://icedtea.classpath.org/download
|
||||
_drops_url=${_icedtea_url}/drops/icedtea7/${_icedtea_ver:0:3}
|
||||
source=(${_icedtea_url}/source/icedtea-${_icedtea_ver}.tar.gz
|
||||
${_drops_url}/openjdk.tar.bz2
|
||||
${_drops_url}/corba.tar.bz2
|
||||
${_drops_url}/jaxp.tar.bz2
|
||||
${_drops_url}/jaxws.tar.bz2
|
||||
${_drops_url}/jdk.tar.bz2
|
||||
${_drops_url}/langtools.tar.bz2
|
||||
${_drops_url}/hotspot.tar.bz2
|
||||
fontconfig-paths.diff
|
||||
openjdk7_nonreparenting-wm.diff
|
||||
jdk7-openjdk.profile
|
||||
jdk7-openjdk.profile.csh
|
||||
jre7-openjdk.profile
|
||||
jre7-openjdk.profile.csh)
|
||||
sha256sums=('754350cbd704b22b7ba3d14c8283eb2d896d137824f95a9e6a2b34678658ade1'
|
||||
'bcd45546509defc439f42f230c0ca64e8aa6ec00542c3634aab3a4c10be3fe6b'
|
||||
'cc37272df260d08207c84763d4c39d7807728ba2d5908276b9bc63e925e70674'
|
||||
'3515cd105c29563bf78432576e658005386f45d7c3b2b7eac7af86cf196aaaea'
|
||||
'3e107628080d84a80a78ef0ef9dc3664989291dd17c8bacf031d59fba7bd7f4d'
|
||||
'9222e5317264f20d4a0b8170b4c4d02459cda98333c18e3a75064e7856ff58be'
|
||||
'5af29e32344e2f2fc0beb31f91b8312f2a0d6d02c53b4cb700ee2e27bcf1043b'
|
||||
'e3bbed298ed7c77169fdfddc47cdb85c62ef2e5e7ea04ca28aa8779861efca65'
|
||||
sha256sums=('4e369e35dbf37a5fcc1a837861a74609bf907d3d0b9be7ac98d4f9c99dba7100'
|
||||
'9a2f9486a48d51f84bdf9b9a52dc34fe90b886aa60ff5447b7f2502479065859'
|
||||
'1f9f07f31ce8588cd3cd12465f94e142c852c380059a3dab9831d86d3f264253'
|
||||
'59edb741e1b00243c040b399986960fad9e42f7e5dbe0a1e34798752b080c488'
|
||||
'ed3803635ed25f58cd86ad8ca27585f77cc50385da0342112980cc6ba8ff6028'
|
||||
'508b4e26704749172022c95f44c5aa9feb391e82b54a545fdb79f3a51c269f83'
|
||||
'0eb9c19cfbecfbc6ef1e37f475d73f16469b9e1d969f69b1af4b10cbc2415659'
|
||||
'645a43adaec3be3d3297479d134c02e444af9f0be33d35942f0ca863592fea26'
|
||||
'9ad943ceb3dbcdf45d72974fc3667886a7ed65c69ab9abc17be5412827551a7f'
|
||||
'56b919ababb13bd6afdcdaceb112b529b6e82539255f2dae9a7e5eb91645164b'
|
||||
'bd55299e08e6f8e61ba5baad0990170891801a29a1e8137e502b5e8a10fc37ea'
|
||||
|
@ -73,19 +64,24 @@ sha256sums=('754350cbd704b22b7ba3d14c8283eb2d896d137824f95a9e6a2b34678658ade1'
|
|||
'b7c045b08ad55a9f79390c104fa846d0e7dbb49fccffb2fab2a3824b6b19c9c8'
|
||||
'89d99d8ac269ca66e2e279aff652d5aac938a35faec93cd8cff8f048052bd3ce')
|
||||
|
||||
noextract=("openjdk-${_OPENJDK_CHANGESET}.tar.gz"
|
||||
"corba-${_CORBA_CHANGESET}.tar.gz"
|
||||
"jaxp-${_JAXP_CHANGESET}.tar.gz"
|
||||
"jaxws-${_JAXWS_CHANGESET}.tar.gz"
|
||||
"jdk-${_JDK_CHANGESET}.tar.gz"
|
||||
"langtools-${_LANGTOOLS_CHANGESET}.tar.gz"
|
||||
"hotspot-${_HOTSPOT_CHANGESET}.tar.gz")
|
||||
noextract=(openjdk.tar.gz
|
||||
corba.tar.gz
|
||||
jaxp.tar.gz
|
||||
jaxws.tar.gz
|
||||
jdk.tar.gz
|
||||
langtools.tar.gz
|
||||
hotspot.tar.gz)
|
||||
|
||||
_jvmdir=/usr/lib/jvm/java-7-openjdk
|
||||
[ "$CARCH" = "x86_64" ] && _JARCH=amd64
|
||||
[ "$CARCH" = "i686" ] && _JARCH=i386
|
||||
[ "$CARCH" = "arm" -o "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ] && _JARCH=arm
|
||||
|
||||
[ "$CARCH" = "x86_64" ] && _JARCH=amd64
|
||||
[ "$CARCH" = "i686" ] && _JARCH=i386
|
||||
[ "$CARCH" = "arm" -o "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ] && _JARCH=arm
|
||||
_jvmdir=/usr/lib/jvm/java-7-openjdk
|
||||
_imgdir="icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image"
|
||||
_nonheadless=(bin/policytool
|
||||
lib/${_JARCH}/libjsoundalsa.so
|
||||
lib/${_JARCH}/libsplashscreen.so
|
||||
lib/${_JARCH}/xawt/libmawt.so)
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/icedtea-${_icedtea_ver}"
|
||||
|
@ -97,7 +93,7 @@ build() {
|
|||
|
||||
. /etc/profile.d/apache-ant.sh
|
||||
|
||||
cp ${srcdir}/*.diff ${srcdir}/icedtea-${_icedtea_ver}/patches
|
||||
cp "${srcdir}"/*.diff "${srcdir}"/icedtea-${_icedtea_ver}/patches
|
||||
export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \
|
||||
patches/openjdk7_nonreparenting-wm.diff"
|
||||
|
||||
|
@ -108,20 +104,19 @@ build() {
|
|||
fi
|
||||
|
||||
./configure \
|
||||
$BOOTSTRAPOPT \
|
||||
${BOOTSTRAPOPT} \
|
||||
--with-parallel-jobs="${MAKEFLAGS/-j}" \
|
||||
--disable-tests \
|
||||
--disable-downloading --disable-Werror \
|
||||
--with-pkgversion="ArchLinux build ${pkgver}-${pkgrel}-${CARCH}" \
|
||||
--with-pkgversion="Arch Linux ARM build ${pkgver}-${pkgrel}-${CARCH}" \
|
||||
--with-jdk-home=${JAVA_HOME} \
|
||||
--with-openjdk-src-zip=${srcdir}/openjdk-${_OPENJDK_CHANGESET}.tar.gz \
|
||||
--with-hotspot-src-zip=${srcdir}/hotspot-${_HOTSPOT_CHANGESET}.tar.gz \
|
||||
--with-corba-src-zip=${srcdir}/corba-${_CORBA_CHANGESET}.tar.gz \
|
||||
--with-jaxp-src-zip=${srcdir}/jaxp-${_JAXP_CHANGESET}.tar.gz \
|
||||
--with-jaxws-src-zip=${srcdir}/jaxws-${_JAXWS_CHANGESET}.tar.gz \
|
||||
--with-jdk-src-zip=${srcdir}/jdk-${_JDK_CHANGESET}.tar.gz \
|
||||
--with-langtools-src-zip=${srcdir}/langtools-${_LANGTOOLS_CHANGESET}.tar.gz \
|
||||
--enable-pulse-java \
|
||||
--with-openjdk-src-zip="${srcdir}/openjdk.tar.bz2" \
|
||||
--with-hotspot-src-zip="${srcdir}/hotspot.tar.bz2" \
|
||||
--with-corba-src-zip="${srcdir}/corba.tar.bz2" \
|
||||
--with-jaxp-src-zip="${srcdir}/jaxp.tar.bz2" \
|
||||
--with-jaxws-src-zip="${srcdir}/jaxws.tar.bz2" \
|
||||
--with-jdk-src-zip="${srcdir}/jdk.tar.bz2" \
|
||||
--with-langtools-src-zip="${srcdir}/langtools.tar.bz2" \
|
||||
--enable-nss \
|
||||
--with-rhino \
|
||||
--with-abs-install-dir=${_jvmdir} \
|
||||
|
@ -136,134 +131,102 @@ check() {
|
|||
}
|
||||
|
||||
package_jre7-openjdk-headless() {
|
||||
pkgdesc="Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java runtime - needed for executing non GUI Java programs"
|
||||
pkgdesc='OpenJDK Java 7 headless runtime environment'
|
||||
depends=('libjpeg-turbo' 'lcms2' 'nss' 'ca-certificates-java')
|
||||
optdepends=('libcups: needed for Java Mauve support - libmawt.so'
|
||||
'fontconfig: needed for Java Mauve support - libmawt.so')
|
||||
'fontconfig: needed for Java Mauve support - libmawt.so'
|
||||
'java-rhino: for some JavaScript support')
|
||||
provides=('java-runtime-headless=7')
|
||||
conflicts=('openjdk6')
|
||||
backup=(etc/profile.d/jre.sh
|
||||
etc/profile.d/jre.csh
|
||||
etc/java-7-openjdk/calendars.properties
|
||||
etc/java-7-openjdk/content-types.properties
|
||||
etc/java-7-openjdk/cursors/cursors.properties
|
||||
etc/java-7-openjdk/flavormap.properties
|
||||
etc/java-7-openjdk/fontconfig.bfc
|
||||
etc/java-7-openjdk/fontconfig.properties
|
||||
etc/java-7-openjdk/jvm.cfg
|
||||
etc/java-7-openjdk/logging.properties
|
||||
etc/java-7-openjdk/management/jmxremote.access
|
||||
etc/java-7-openjdk/management/jmxremote.password
|
||||
etc/java-7-openjdk/management/management.properties
|
||||
etc/java-7-openjdk/management/snmp.acl
|
||||
etc/java-7-openjdk/net.properties
|
||||
etc/java-7-openjdk/psfont.properties.ja
|
||||
etc/java-7-openjdk/psfontj2d.properties
|
||||
etc/java-7-openjdk/security/java.policy
|
||||
etc/java-7-openjdk/security/java.security
|
||||
etc/java-7-openjdk/security/nss.cfg
|
||||
etc/java-7-openjdk/sound.properties
|
||||
etc/java-7-openjdk/tz.properties)
|
||||
# Upstream config files that should go to etc and get backup
|
||||
_backup_etc=(etc/java-7-openjdk/${_JARCH}/jvm.cfg
|
||||
etc/java-7-openjdk/calendars.properties
|
||||
etc/java-7-openjdk/content-types.properties
|
||||
etc/java-7-openjdk/flavormap.properties
|
||||
etc/java-7-openjdk/fontconfig.bfc
|
||||
etc/java-7-openjdk/fontconfig.properties
|
||||
etc/java-7-openjdk/images/cursors/cursors.properties
|
||||
etc/java-7-openjdk/logging.properties
|
||||
etc/java-7-openjdk/management/jmxremote.access
|
||||
etc/java-7-openjdk/management/jmxremote.password
|
||||
etc/java-7-openjdk/management/management.properties
|
||||
etc/java-7-openjdk/management/snmp.acl
|
||||
etc/java-7-openjdk/net.properties
|
||||
etc/java-7-openjdk/psfont.properties.ja
|
||||
etc/java-7-openjdk/psfontj2d.properties
|
||||
etc/java-7-openjdk/security/java.policy
|
||||
etc/java-7-openjdk/security/java.security
|
||||
etc/java-7-openjdk/security/nss.cfg
|
||||
etc/java-7-openjdk/sound.properties
|
||||
etc/java-7-openjdk/tz.properties)
|
||||
backup=(${_backup_etc[@]}
|
||||
etc/profile.d/jre.sh
|
||||
etc/profile.d/jre.csh)
|
||||
install=jre7-openjdk-headless.install
|
||||
|
||||
cd "${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image/jre"
|
||||
cd "${srcdir}/${_imgdir}/jre"
|
||||
|
||||
mv lib/fontconfig.Ubuntu.properties.src lib/fontconfig.properties
|
||||
mv lib/fontconfig.Ubuntu.bfc lib/fontconfig.bfc
|
||||
rm -f lib/fontconfig.*.bfc
|
||||
rm -f lib/fontconfig.*.properties.src
|
||||
rm -f lib/fontconfig.properties.src
|
||||
install -d -m755 "${pkgdir}${_jvmdir}/jre"
|
||||
cp -a bin lib "${pkgdir}${_jvmdir}/jre"
|
||||
|
||||
install -d -m755 ${pkgdir}${_jvmdir}/jre
|
||||
cp -a bin lib ${pkgdir}${_jvmdir}/jre
|
||||
# Set config files
|
||||
mv "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.{Ubuntu.properties.src,properties}
|
||||
mv "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.{Ubuntu.bfc,bfc}
|
||||
mv "${pkgdir}${_jvmdir}"/jre/lib/management/jmxremote.password{.template,}
|
||||
mv "${pkgdir}${_jvmdir}"/jre/lib/management/snmp.acl{.template,}
|
||||
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.*.bfc
|
||||
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.*.properties.src
|
||||
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.properties.src
|
||||
|
||||
# Install man pages
|
||||
pushd ../../j2re-image/man
|
||||
install -m755 -d ${pkgdir}/usr/share/man/{,ja/}man1/
|
||||
install -m644 man1/*.1 ${pkgdir}/usr/share/man/man1
|
||||
install -m644 ja_JP.UTF-8/man1/*.1 ${pkgdir}/usr/share/man/ja/man1
|
||||
# Remove 'non-headless' files
|
||||
for f in ${_nonheadless[@]}; do
|
||||
rm "${pkgdir}${_jvmdir}/jre/${f}"
|
||||
done
|
||||
|
||||
# Man pages
|
||||
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
||||
install -d -m 755 "${pkgdir}"/usr/share/man/{,ja/}man1/
|
||||
for file in *; do
|
||||
install -m 644 "${srcdir}/${_imgdir}/man/man1/${file}.1" \
|
||||
"${pkgdir}/usr/share/man/man1/${file}.1"
|
||||
install -m 644 "${srcdir}/${_imgdir}/man/ja/man1/${file}.1" \
|
||||
"${pkgdir}/usr/share/man/ja/man1/${file}.1"
|
||||
done
|
||||
popd
|
||||
|
||||
# more files that belong to the desktop package
|
||||
mkdir ${srcdir}/tmp-desktop-jre
|
||||
for file in \
|
||||
"${_jvmdir}/jre/bin/policytool" \
|
||||
"${_jvmdir}/jre/lib/${_JARCH}/libjsoundalsa.so" \
|
||||
"${_jvmdir}/jre/lib/${_JARCH}/libpulse-java.so" \
|
||||
"${_jvmdir}/jre/lib/${_JARCH}/libsplashscreen.so" \
|
||||
"${_jvmdir}/jre/lib/${_JARCH}/xawt/libmawt.so" \
|
||||
"/usr/share/man/ja/man1/policytool.1" \
|
||||
"/usr/share/man/man1/policytool.1"; do
|
||||
dirname=`dirname $file`
|
||||
install -dm755 ${srcdir}/tmp-desktop-jre/$dirname || /bin/true
|
||||
# mv file from fakeinstall to pkgdir
|
||||
mv ${pkgdir}/$file ${srcdir}/tmp-desktop-jre$file
|
||||
done
|
||||
rmdir ${pkgdir}${_jvmdir}/jre/lib/${_JARCH}/xawt
|
||||
|
||||
# Link binaries into /usr/bin
|
||||
pushd ${pkgdir}${_jvmdir}/jre/bin
|
||||
install -m755 -d ${pkgdir}/usr/bin/
|
||||
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
||||
install -d -m755 "${pkgdir}/usr/bin/"
|
||||
for file in *; do
|
||||
ln -sf ${_jvmdir}/jre/bin/${file} ${pkgdir}/usr/bin
|
||||
ln -sf ${_jvmdir}/jre/bin/${file} "${pkgdir}/usr/bin"
|
||||
done
|
||||
popd
|
||||
|
||||
# Link JKS keystore from ca-certificates-java
|
||||
rm -f ${pkgdir}${_jvmdir}/jre/lib/security/cacerts
|
||||
rm -f "${pkgdir}${_jvmdir}/jre/lib/security/cacerts"
|
||||
ln -sf /etc/ssl/certs/java/cacerts "${pkgdir}${_jvmdir}/jre/lib/security/cacerts"
|
||||
|
||||
# Set some variables
|
||||
install -m755 -d ${pkgdir}/etc/profile.d/
|
||||
install -m755 ${srcdir}/jre7-openjdk.profile ${pkgdir}/etc/profile.d/jre.sh
|
||||
install -m755 ${srcdir}/jre7-openjdk.profile.csh ${pkgdir}/etc/profile.d/jre.csh
|
||||
install -d -m755 "${pkgdir}/etc/profile.d/"
|
||||
install -m755 "${srcdir}/jre7-openjdk.profile" "${pkgdir}/etc/profile.d/jre.sh"
|
||||
install -m755 "${srcdir}/jre7-openjdk.profile.csh" "${pkgdir}/etc/profile.d/jre.csh"
|
||||
|
||||
# Install license
|
||||
install -m755 -d ${pkgdir}/usr/share/licenses/${pkgbase}/
|
||||
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgbase}/"
|
||||
install -m644 ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README \
|
||||
${pkgdir}/usr/share/licenses/${pkgbase}
|
||||
|
||||
# link license
|
||||
"${pkgdir}/usr/share/licenses/${pkgbase}"
|
||||
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
|
||||
# Put some more files under backup control
|
||||
install -m755 -d ${pkgdir}/etc/java-7-openjdk/
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/*.properties* ${pkgdir}/etc/java-7-openjdk/
|
||||
# install dummy links to make them found by JAVA
|
||||
cd ${pkgdir}${_jvmdir}/jre/lib/
|
||||
for file in `ls ${pkgdir}/etc/java-7-openjdk/*.properties*`; do
|
||||
ln -vsf /etc/java-7-openjdk/`basename $file` .
|
||||
# Move config files that were set in _backup_etc from ./lib to /etc
|
||||
for file in ${_backup_etc[@]}; do
|
||||
_filepkgpath=${_jvmdir}/jre/lib/${file#etc/java-7-openjdk/}
|
||||
install -D -m 644 "${pkgdir}${_filepkgpath}" "${pkgdir}/${file}"
|
||||
ln -sf /${file} "${pkgdir}${_filepkgpath}"
|
||||
done
|
||||
# some more
|
||||
install -m755 -d ${pkgdir}/etc/java-7-openjdk/{cursors,management,security}
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/images/cursors/cursors.properties \
|
||||
${pkgdir}/etc/java-7-openjdk/cursors/
|
||||
pushd ${pkgdir}${_jvmdir}/jre/lib/images/cursors/
|
||||
ln -vsf /etc/java-7-openjdk/cursors/cursors.properties .
|
||||
popd
|
||||
mv ${pkgdir}${_jvmdir}/jre/lib/management/jmxremote.password.template \
|
||||
${pkgdir}${_jvmdir}/jre/lib/management/jmxremote.password
|
||||
mv ${pkgdir}${_jvmdir}/jre/lib/management/snmp.acl.template \
|
||||
${pkgdir}${_jvmdir}/jre/lib/management/snmp.acl
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/management/{management.properties,jmxremote.access,jmxremote.password,snmp.acl} \
|
||||
${pkgdir}/etc/java-7-openjdk/management/
|
||||
pushd ${pkgdir}${_jvmdir}/jre/lib/management
|
||||
ln -vsf /etc/java-7-openjdk/management/{management.properties,jmxremote.access,jmxremote.password,snmp.acl} .
|
||||
popd
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/security/{java.policy,java.security,nss.cfg} \
|
||||
${pkgdir}/etc/java-7-openjdk/security/
|
||||
pushd ${pkgdir}${_jvmdir}/jre/lib/security
|
||||
ln -vsf /etc/java-7-openjdk/security/{java.policy,java.security,nss.cfg} .
|
||||
popd
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/fontconfig.bfc ${pkgdir}/etc/java-7-openjdk/
|
||||
install -m644 ${pkgdir}${_jvmdir}/jre/lib/${_JARCH}/jvm.cfg ${pkgdir}/etc/java-7-openjdk/
|
||||
pushd ${pkgdir}${_jvmdir}/jre/lib/${_JARCH}/
|
||||
ln -vsf /etc/java-7-openjdk/jvm.cfg .
|
||||
popd
|
||||
}
|
||||
|
||||
package_jre7-openjdk() {
|
||||
pkgdesc="Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Full Java runtime environment - needed for executing Java GUI and Webstart programs"
|
||||
pkgdesc='OpenJDK Java 7 full runtime environment'
|
||||
depends=('jre7-openjdk-headless' 'xdg-utils' 'hicolor-icon-theme')
|
||||
optdepends=('icedtea-web-java7: web browser plugin + Java Web Start'
|
||||
'alsa-lib: for basic sound support'
|
||||
|
@ -271,96 +234,112 @@ package_jre7-openjdk() {
|
|||
'libpulse: for advanced sound support'
|
||||
'gtk2: for the Gtk+ look and feel - desktop usage'
|
||||
'libxtst: linked in xawt/libmawt.so - desktop usage')
|
||||
install=jre7-openjdk.install
|
||||
provides=('java-runtime=7')
|
||||
conflicts=('openjdk6')
|
||||
install=jre7-openjdk.install
|
||||
|
||||
cd "${srcdir}/${_imgdir}/jre"
|
||||
|
||||
for f in ${_nonheadless[@]}; do
|
||||
install -D ${f} "${pkgdir}${_jvmdir}/jre/${f}"
|
||||
done
|
||||
|
||||
mv ${srcdir}/tmp-desktop-jre/* ${pkgdir}
|
||||
# Link binaries into /usr/bin
|
||||
pushd ${pkgdir}${_jvmdir}/jre/bin
|
||||
install -m755 -d ${pkgdir}/usr/bin/
|
||||
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
||||
install -d -m755 "${pkgdir}/usr/bin/"
|
||||
for file in *; do
|
||||
ln -sf ${_jvmdir}/jre/bin/${file} ${pkgdir}/usr/bin
|
||||
ln -sf ${_jvmdir}/jre/bin/${file} "${pkgdir}/usr/bin"
|
||||
done
|
||||
popd
|
||||
|
||||
cd "${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image/jre"
|
||||
# Man pages
|
||||
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
||||
install -d -m 755 "${pkgdir}"/usr/share/man/{,ja/}man1/
|
||||
for file in *; do
|
||||
install -m 644 "${srcdir}/${_imgdir}/man/man1/${file}.1" \
|
||||
"${pkgdir}/usr/share/man/man1/${file}.1"
|
||||
install -m 644 "${srcdir}/${_imgdir}/man/ja/man1/${file}.1" \
|
||||
"${pkgdir}/usr/share/man/ja/man1/${file}.1"
|
||||
done
|
||||
popd
|
||||
|
||||
# Install icons and menu entries
|
||||
for s in 16 24 32 48 ; do
|
||||
install -m755 -d ${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/
|
||||
install -d -m755 "${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/"
|
||||
install -m644 ../../../openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
|
||||
${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/java.png
|
||||
"${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/java.png"
|
||||
done
|
||||
|
||||
# Install desktop files.
|
||||
install -m755 -d ${pkgdir}/usr/share/applications
|
||||
install -m644 ${srcdir}/icedtea-${_icedtea_ver}/policytool.desktop ${pkgdir}/usr/share/applications
|
||||
install -d -m755 "${pkgdir}/usr/share/applications"
|
||||
install -m644 "${srcdir}/icedtea-${_icedtea_ver}/policytool.desktop" "${pkgdir}/usr/share/applications"
|
||||
|
||||
# link license
|
||||
install -m755 -d ${pkgdir}/usr/share/licenses
|
||||
install -d -m755 "${pkgdir}/usr/share/licenses"
|
||||
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
||||
package_jdk7-openjdk() {
|
||||
pkgdesc="Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - SDK"
|
||||
pkgdesc='OpenJDK Java 7 development kit'
|
||||
depends=('jre7-openjdk')
|
||||
provides=('java-environment=7')
|
||||
conflicts=('java-environment')
|
||||
replaces=('openjdk6')
|
||||
backup=(etc/profile.d/jdk.sh etc/profile.d/jdk.csh)
|
||||
|
||||
cd "${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image"
|
||||
cd "${srcdir}/${_imgdir}"
|
||||
|
||||
# Main files
|
||||
install -m755 -d ${pkgdir}${_jvmdir}
|
||||
install -d -m755 "${pkgdir}${_jvmdir}"
|
||||
|
||||
cp -a include lib ${pkgdir}${_jvmdir}
|
||||
cp -a include lib "${pkgdir}${_jvmdir}"
|
||||
|
||||
# 'bin' files
|
||||
pushd bin
|
||||
install -m755 -d ${pkgdir}${_jvmdir}/bin/ \
|
||||
${pkgdir}/usr/bin/ \
|
||||
${pkgdir}/usr/share/man/{,ja/}man1/
|
||||
install -d -m755 "${pkgdir}${_jvmdir}/bin/" \
|
||||
"${pkgdir}"/usr/bin/ \
|
||||
"${pkgdir}"/usr/share/man/{,ja/}man1/
|
||||
|
||||
# 'java-rmi.cgi' will be handled separately as it should not be in the PATH and has no man page
|
||||
for b in $(ls | grep -v java-rmi.cgi); do
|
||||
if [ -e ../jre/bin/${b} ]; then
|
||||
# Provide a link of the jre binary in the jdk/bin/ directory
|
||||
ln -s ../jre/bin/${b} ${pkgdir}${_jvmdir}/bin/${b}
|
||||
ln -s ../jre/bin/${b} "${pkgdir}${_jvmdir}/bin/${b}"
|
||||
else
|
||||
# Copy binary to jdk/bin/
|
||||
install -m755 ${b} ${pkgdir}${_jvmdir}/bin/${b}
|
||||
install -m755 ${b} "${pkgdir}${_jvmdir}/bin/${b}"
|
||||
# Copy man page
|
||||
install -m644 ../man/man1/${b}.1 ${pkgdir}/usr/share/man/man1/${b}.1
|
||||
install -m644 ../man/ja/man1/${b}.1 ${pkgdir}/usr/share/man/ja/man1/${b}.1
|
||||
install -m644 ../man/man1/${b}.1 "${pkgdir}/usr/share/man/man1/${b}.1"
|
||||
install -m644 ../man/ja/man1/${b}.1 "${pkgdir}/usr/share/man/ja/man1/${b}.1"
|
||||
# Link from /bin/
|
||||
ln -s ${_jvmdir}/bin/${b} ${pkgdir}/usr/bin/${b}
|
||||
ln -s ${_jvmdir}/bin/${b} "${pkgdir}/usr/bin/${b}"
|
||||
fi
|
||||
done
|
||||
popd
|
||||
|
||||
# Install desktop files.
|
||||
install -m755 -d ${pkgdir}/usr/share/applications
|
||||
install -m644 ${srcdir}/icedtea-${_icedtea_ver}/jconsole.desktop ${pkgdir}/usr/share/applications
|
||||
|
||||
# Handling 'java-rmi.cgi' separately
|
||||
install -m755 -D bin/java-rmi.cgi ${pkgdir}${_jvmdir}/bin/java-rmi.cgi
|
||||
install -D -m755 bin/java-rmi.cgi "${pkgdir}${_jvmdir}/bin/java-rmi.cgi"
|
||||
|
||||
# Install desktop files.
|
||||
install -d -m755 "${pkgdir}/usr/share/applications"
|
||||
install -m644 "${srcdir}/icedtea-${_icedtea_ver}/jconsole.desktop" "${pkgdir}/usr/share/applications"
|
||||
|
||||
# Set some variables
|
||||
install -m755 -d ${pkgdir}/etc/profile.d/
|
||||
install -m755 ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/jdk.sh
|
||||
install -m755 ${srcdir}/${pkgname}.profile.csh ${pkgdir}/etc/profile.d/jdk.csh
|
||||
install -d -m755 "${pkgdir}/etc/profile.d/"
|
||||
install -m755 "${srcdir}/${pkgname}.profile" "${pkgdir}/etc/profile.d/jdk.sh"
|
||||
install -m755 "${srcdir}/${pkgname}.profile.csh" "${pkgdir}/etc/profile.d/jdk.csh"
|
||||
|
||||
# Temporarily fixing FS#35141
|
||||
chmod go+r "${pkgdir}${_jvmdir}/lib/sa-jdi.jar"
|
||||
|
||||
# link license
|
||||
install -m755 -d ${pkgdir}/usr/share/licenses
|
||||
install -d -m755 "${pkgdir}/usr/share/licenses"
|
||||
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
||||
package_openjdk7-src() {
|
||||
pkgdesc="Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - sources"
|
||||
pkgdesc='OpenJDK Java 7 sources'
|
||||
replaces=('openjdk6-src')
|
||||
|
||||
install -D ${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image/src.zip \
|
||||
${pkgdir}${_jvmdir}/src.zip
|
||||
install -D "${srcdir}/${_imgdir}/src.zip" "${pkgdir}${_jvmdir}/src.zip"
|
||||
}
|
||||
|
|
14
extra/java7-openjdk/giflib_5.1.diff
Normal file
14
extra/java7-openjdk/giflib_5.1.diff
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- openjdk/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c.orig 2014-05-27 22:17:19.766866065 +0200
|
||||
+++ openjdk/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c 2014-05-27 22:16:35.452894426 +0200
|
||||
@@ -310,7 +310,11 @@
|
||||
free(pBitmapBits);
|
||||
free(pOldBitmapBits);
|
||||
|
||||
+#if GIFLIB_MAJOR >= 5
|
||||
+ DGifCloseFile(gif, NULL);
|
||||
+#else
|
||||
DGifCloseFile(gif);
|
||||
+#endif
|
||||
|
||||
return 1;
|
||||
}
|
Loading…
Reference in a new issue