aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorBifferos <bifferos@gmail.com>2019-11-09 08:03:01 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-09 08:03:01 +0700
commitddc477a2d48b53d1000e536c4cedd0c5f99ccd95 (patch)
tree9332b74b2aad6a105bff1c109e26871e8cc76645 /development
parent852eb3975852da31a2cb584cccf6c57551555590 (diff)
development/amazon-corretto: Added (JDK Distribution).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/amazon-corretto/README5
-rw-r--r--development/amazon-corretto/amazon-corretto.SlackBuild88
-rw-r--r--development/amazon-corretto/amazon-corretto.info10
-rw-r--r--development/amazon-corretto/profile.d/jdk.csh4
-rw-r--r--development/amazon-corretto/profile.d/jdk.sh4
-rw-r--r--development/amazon-corretto/slack-desc19
6 files changed, 130 insertions, 0 deletions
diff --git a/development/amazon-corretto/README b/development/amazon-corretto/README
new file mode 100644
index 0000000000000..cfc1fba1c4831
--- /dev/null
+++ b/development/amazon-corretto/README
@@ -0,0 +1,5 @@
+This is a SlackBuild that will repackage Amazon Corretto into a package
+that can be easily installed, upgraded, or removed using Slackware's native
+package management tools.
+
+This will also package the JRE so you will not need a separate JRE build.
diff --git a/development/amazon-corretto/amazon-corretto.SlackBuild b/development/amazon-corretto/amazon-corretto.SlackBuild
new file mode 100644
index 0000000000000..63bae7f5ff19a
--- /dev/null
+++ b/development/amazon-corretto/amazon-corretto.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Copyright 2019 bifferos@gmail.com UK
+# 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=amazon-corretto
+VERSION=${VERSION:-8.222.10.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-amazon-corretto
+OUTPUT=${OUTPUT:-/tmp}
+
+ARCH=$( uname -m )
+
+if [ "$ARCH" != "x86_64" ]; then
+ echo "Corretto supports only 64-bit architecture"
+ exit 1
+fi
+
+LIB_ARCH=amd64
+LIBDIRSUFFIX="64"
+SRC_ARCH="x64"
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $PKG
+mkdir -p usr/lib${LIBDIRSUFFIX}
+cd usr/lib${LIBDIRSUFFIX}
+tar xvf $CWD/$PRGNAM-$VERSION-linux-$SRC_ARCH.tar.gz
+chown -R root.root $PKG
+find $PKG \
+ \( -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 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/*) ; do
+ cat $file > $PKG/etc/profile.d/$(basename $file)
+done
+chmod 755 $PKG/etc/profile.d/*
+
+
+( cd $PKG/usr/lib${LIBDIRSUFFIX}
+ mv $PRGNAM-$VERSION-linux-$SRC_ARCH java
+)
+
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat << EOF > $PKG/install/doinst.sh
+
+EOF
+
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ $PKG/usr/lib${LIBDIRSUFFIX}/java/THIRD_PARTY_README \
+ $PKG/usr/lib${LIBDIRSUFFIX}/java/LICENSE \
+ $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/amazon-corretto/amazon-corretto.info b/development/amazon-corretto/amazon-corretto.info
new file mode 100644
index 0000000000000..929f2f35563fc
--- /dev/null
+++ b/development/amazon-corretto/amazon-corretto.info
@@ -0,0 +1,10 @@
+PRGNAM="amazon-corretto"
+VERSION="8.222.10.1"
+HOMEPAGE="https://aws.amazon.com/corretto/"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://d3pxv6yz143wms.cloudfront.net/8.222.10.1/amazon-corretto-8.222.10.1-linux-x64.tar.gz"
+MD5SUM_x86_64="6599a081ce56dda81ee7ac23802d6e67"
+REQUIRES=""
+MAINTAINER="Bifferos"
+EMAIL="bifferos@gmail.com"
diff --git a/development/amazon-corretto/profile.d/jdk.csh b/development/amazon-corretto/profile.d/jdk.csh
new file mode 100644
index 0000000000000..a81d61a89ef43
--- /dev/null
+++ b/development/amazon-corretto/profile.d/jdk.csh
@@ -0,0 +1,4 @@
+#!/bin/csh
+setenv JAVA_HOME /usr/lib64/java
+setenv MANPATH ${MANPATH}:${JAVA_HOME}/man
+setenv PATH ${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin
diff --git a/development/amazon-corretto/profile.d/jdk.sh b/development/amazon-corretto/profile.d/jdk.sh
new file mode 100644
index 0000000000000..b12a5a00be87f
--- /dev/null
+++ b/development/amazon-corretto/profile.d/jdk.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+export JAVA_HOME=/usr/lib64/java
+export MANPATH="${MANPATH}:${JAVA_HOME}/man"
+export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
diff --git a/development/amazon-corretto/slack-desc b/development/amazon-corretto/slack-desc
new file mode 100644
index 0000000000000..c6d17eb4d5a1d
--- /dev/null
+++ b/development/amazon-corretto/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------------------------------------------------------|
+amazon-corretto: amazon-corretto (JDK Distribution)
+amazon-corretto:
+amazon-corretto: Amazon Corretto is a no-cost, multiplatform, production-ready
+amazon-corretto: distribution of the Open Java Development Kit (OpenJDK). Corretto
+amazon-corretto: comes with long-term support that will include performance
+amazon-corretto: enhancements and security fixes. Amazon runs Corretto internally on
+amazon-corretto: thousands of production services and Corretto is certified as
+amazon-corretto: compatible with the Java SE standard. With Corretto you can develop
+amazon-corretto: and run Java applications on popular operating systems.
+amazon-corretto:
+amazon-corretto: For more information see: https://docs.aws.amazon.com/corretto