aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorStrahil Yordanov <strahilski@yahoo.com>2014-05-30 11:49:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-30 21:50:35 +0700
commita133c9d25525a6837b81ae82ec6acdcc83565f6e (patch)
tree64ce6049ffe671753c8c9810ebb43e1f6f40ced9 /development
parent5ff75504b476b71b29b9301414a044781a4046ce (diff)
development/openjdk: Added (Open Implementation of JDK).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/openjdk/README33
-rw-r--r--development/openjdk/cacertsbin0 -> 86915 bytes
-rw-r--r--development/openjdk/configure.patch11
-rw-r--r--development/openjdk/openjdk.SlackBuild128
-rw-r--r--development/openjdk/openjdk.info24
-rw-r--r--development/openjdk/profile.d/openjdk.csh4
-rw-r--r--development/openjdk/profile.d/openjdk.sh4
-rw-r--r--development/openjdk/slack-desc19
8 files changed, 223 insertions, 0 deletions
diff --git a/development/openjdk/README b/development/openjdk/README
new file mode 100644
index 0000000000000..fda24b5da15aa
--- /dev/null
+++ b/development/openjdk/README
@@ -0,0 +1,33 @@
+OpenJDK is an open source implementation of the Java(TM) 2 Platform
+Standard Edition Development Kit. This package is built with the
+IcedTea build and integration project and is thus free software.
+It includes tools for developing, testing, and running programs
+written in the Java programming language.
+
+apache-ant is a required dependency and you have to install it before
+you build openjdk. However, you do not need to install Oracle's jdk,
+since it's only a runtime dependency.
+
+pulseaudio is an optional dependency. It is needed for features such
+as voice streaming and playback.
+
+This script imports the security certificates also found in Oracle's
+jdk. You can override this behavior by invoking the script like this:
+
+KEYSTORE_NO_IMPORT=YES ./openjdk.SlackBuild
+
+The above line, however, will cause some programs to fail to estab-
+lish secure connections.
+
+Before installing this package please consider any other jdk's/jre's
+that you have already installed as they may cause conflicts with the
+PATH, JAVA_HOME and MANPATH variables.
+
+After installing the package you will need to logout/reboot your machine
+as it will add new files to the /etc/profile.d folder.
+
+This script may take a couple of hours to finish and will require
+about 11 GB of disk space for its temporary directory. It defaults to
+"/tmp/SBo" and you may redefine it by invoking the script like this:
+
+TMP=/your/temporary/dir ./openjdk.SlackBuild
diff --git a/development/openjdk/cacerts b/development/openjdk/cacerts
new file mode 100644
index 0000000000000..19d381473abb6
--- /dev/null
+++ b/development/openjdk/cacerts
Binary files differ
diff --git a/development/openjdk/configure.patch b/development/openjdk/configure.patch
new file mode 100644
index 0000000000000..d3dfc560d181a
--- /dev/null
+++ b/development/openjdk/configure.patch
@@ -0,0 +1,11 @@
+--- configure 2014-04-16 07:20:43.000000000 +0300
++++ ../../icedtea-2.4.7/configure 2014-05-17 08:33:36.000000000 +0300
+@@ -9170,7 +9170,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5
+ $as_echo "not specified" >&6; }
+ if test "x${enable_bootstrap}" = "xyes"; then
+- BOOTSTRAP_VMS="/usr/lib/jvm/java-gcj /usr/lib/jvm/gcj-jdk /usr/lib/jvm/cacao";
++ BOOTSTRAP_VMS="/usr/lib/jvm/java-gcj /usr/lib/jvm/gcj-jdk /usr/lib/jvm/cacao /usr/lib/jvm";
+ fi
+ ICEDTEA6_VMS="/usr/lib/jvm/icedtea-6 /usr/lib/jvm/icedtea6 /usr/lib/jvm/java-6-openjdk
+ /usr/lib/jvm/java-1.6.0-openjdk.x86_64 /usr/lib64/jvm/java-1.6.0-openjdk
diff --git a/development/openjdk/openjdk.SlackBuild b/development/openjdk/openjdk.SlackBuild
new file mode 100644
index 0000000000000..6afff16696098
--- /dev/null
+++ b/development/openjdk/openjdk.SlackBuild
@@ -0,0 +1,128 @@
+#!/bin/sh
+
+# Slackware build scripts for OpenJDK
+
+# Copyright 2014 Strahil Yordanov, Sofia, Bulgaria
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=openjdk
+VERSION=${VERSION:-7u55}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+DVER=1.7.0_$(printf $VERSION | cut -du -f2)
+HOTSPOT_SRC=69b542696e5b.tar.gz
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm echo "Unsupported arch" exit 1;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD="$(pwd)"
+TMP=${TMP:-/tmp/SBo}
+BUILD_DIR=$TMP/openjdk
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "x86_64" ]; then
+ LIB_ARCH=amd64
+ LIBDIRSUFFIX="64"
+else
+ LIB_ARCH=i386
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $BUILD_DIR $PKG
+mkdir -p $TMP $BUILD_DIR $PKG $OUTPUT
+cd $BUILD_DIR
+
+tar -xvf $CWD/icedtea-2.4.7.tar.xz
+
+sed "s#cacao /usr/lib/jvm#cacao /usr/lib${LIBDIRSUFFIX}/jvm#" "$CWD/configure.patch" > configure.patch
+patch ./icedtea-2.4.7/configure configure.patch
+
+mkdir icedtea-build
+cd icedtea-build
+
+if pkg-config --atleast-version=0.9.11 libpulse ; then ENABLE_PULSE_JAVA=--enable-pulse-java ; fi
+
+JAVA_HOME=/usr/lib${LIBDIRSUFFIX}/jvm PATH=/usr/lib${LIBDIRSUFFIX}/jvm/bin:$PATH \
+ ../icedtea-2.4.7/configure \
+ --without-rhino \
+ --disable-system-kerberos \
+ --disable-system-lcms \
+ --disable-downloading \
+ --with-openjdk-src-zip="$CWD/13970e76b784.tar.gz" \
+ --with-hotspot-src-zip="$CWD/$HOTSPOT_SRC" \
+ --with-corba-src-zip="$CWD/e6ad5b912691.tar.gz" \
+ --with-jaxp-src-zip="$CWD/94b7e8e0d96f.tar.gz" \
+ --with-jaxws-src-zip="$CWD/bd9a50a78d04.tar.gz" \
+ --with-jdk-src-zip="$CWD/9448fff93286.tar.gz" \
+ --with-langtools-src-zip="$CWD/8c26a3c39128.tar.gz" \
+ $ENABLE_PULSE_JAVA
+JAVA_HOME=/usr/lib${LIBDIRSUFFIX}/jvm PATH=/usr/lib${LIBDIRSUFFIX}/jvm/bin:$PATH make
+
+cd $PKG
+mkdir -p usr/lib${LIBDIRSUFFIX}
+cd usr/lib${LIBDIRSUFFIX}
+cp -av $BUILD_DIR/icedtea-build/openjdk.build/j2sdk-image/ openjdk
+
+if [ -z "$KEYSTORE_NO_IMPORT" ] ; then
+ #copy some trust/security certificates (can be viewed with keytool, -storepass changeit)
+ cp "$CWD/cacerts" ./openjdk/jre/lib/security
+fi
+
+chown -R root.root $PKG
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/etc/profile.d
+for file in $(ls "$CWD/profile.d/${PRGNAM}"*) ; do
+ cat $file | sed -e "s#lib/openjdk#lib${LIBDIRSUFFIX}/openjdk#" \
+ > $PKG/etc/profile.d/$(basename $file)
+done
+chmod 755 $PKG/etc/profile.d/*
+
+( cd $PKG/usr/lib${LIBDIRSUFFIX}
+ ln -sf openjdk ${PRGNAM}${DVER}
+)
+
+cd $PKG/usr/lib${LIBDIRSUFFIX}
+ ln -sf ./openjdk/jre/lib/${LIB_ARCH}/server/libjvm.so .
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+# Java may not expect compressed manpages, so don't compress them.
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $PKG/usr/lib${LIBDIRSUFFIX}/openjdk/{THIRD_PARTY_README,LICENSE,ASSEMBLY_EXCEPTION} \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/openjdk/openjdk.info b/development/openjdk/openjdk.info
new file mode 100644
index 0000000000000..a8ef59e1cd851
--- /dev/null
+++ b/development/openjdk/openjdk.info
@@ -0,0 +1,24 @@
+PRGNAM="openjdk"
+VERSION="7u55"
+HOMEPAGE="http://openjdk.java.net"
+DOWNLOAD="http://icedtea.classpath.org/download/source/icedtea-2.4.7.tar.xz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/archive/13970e76b784.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/hotspot/archive/69b542696e5b.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/corba/archive/e6ad5b912691.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/jaxp/archive/94b7e8e0d96f.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/jaxws/archive/bd9a50a78d04.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/jdk/archive/9448fff93286.tar.gz \
+ http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/langtools/archive/8c26a3c39128.tar.gz"
+MD5SUM="f6b28633b9978fadc724247cfc264ff0 \
+ b0295fd54825d3f47d47de81d81a475a \
+ 0381ef3920f1ff5c8ac6c8860974d8cc \
+ 0a8f2235307b68553865ac38192690c7 \
+ ba7a21a3ef2ce5d0d47c7015e43c5dcf \
+ 9ef2ea5b1e87777c75a72e1dca6fab1d \
+ cea74e96852bf017f73222fa7045daee \
+ 449cec19b80ab70935d02d03e3cbc568"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="apache-ant %README%"
+MAINTAINER="Strahil Yordanov"
+EMAIL="strahilski@yahoo.com"
diff --git a/development/openjdk/profile.d/openjdk.csh b/development/openjdk/profile.d/openjdk.csh
new file mode 100644
index 0000000000000..20c186d612cfd
--- /dev/null
+++ b/development/openjdk/profile.d/openjdk.csh
@@ -0,0 +1,4 @@
+#!/bin/csh
+setenv JAVA_HOME /usr/lib/openjdk
+setenv MANPATH ${MANPATH}:${JAVA_HOME}/man
+setenv PATH ${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin
diff --git a/development/openjdk/profile.d/openjdk.sh b/development/openjdk/profile.d/openjdk.sh
new file mode 100644
index 0000000000000..31089684a135f
--- /dev/null
+++ b/development/openjdk/profile.d/openjdk.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+export JAVA_HOME=/usr/lib/openjdk
+export MANPATH="${MANPATH}:${JAVA_HOME}/man"
+export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
diff --git a/development/openjdk/slack-desc b/development/openjdk/slack-desc
new file mode 100644
index 0000000000000..4d5263d8f250c
--- /dev/null
+++ b/development/openjdk/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+openjdk: openjdk (Open Implementation of JDK)
+openjdk:
+openjdk: OpenJDK is an open source implementation of the Java(TM) 2 Platform
+openjdk: Standard Edition Development Kit. This package is built using the
+openjdk: IcedTea build and integration project and is thus free software. It
+openjdk: includes tools for developing, testing, and running programs
+openjdk: written in the Java programming language.
+openjdk:
+openjdk:
+openjdk:
+openjdk: