summaryrefslogtreecommitdiffstats
path: root/abs/extra/java-common/install_java-runtime-common.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-18 21:15:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-18 21:15:14 (GMT)
commit78ed666d75c7b9b0523d9b0a67ceba935e82cef3 (patch)
tree8d9bb336314ff6af8c18b21669f8c7c72b512047 /abs/extra/java-common/install_java-runtime-common.sh
parent23c5c45e0c9c4db5e9d6a0ed4d1e709db43d5522 (diff)
downloadlinhes_pkgbuild-78ed666d75c7b9b0523d9b0a67ceba935e82cef3.zip
linhes_pkgbuild-78ed666d75c7b9b0523d9b0a67ceba935e82cef3.tar.gz
linhes_pkgbuild-78ed666d75c7b9b0523d9b0a67ceba935e82cef3.tar.bz2
java-common: dep of java7-openjdk
Diffstat (limited to 'abs/extra/java-common/install_java-runtime-common.sh')
-rw-r--r--abs/extra/java-common/install_java-runtime-common.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/extra/java-common/install_java-runtime-common.sh b/abs/extra/java-common/install_java-runtime-common.sh
new file mode 100644
index 0000000..f61d177
--- /dev/null
+++ b/abs/extra/java-common/install_java-runtime-common.sh
@@ -0,0 +1,16 @@
+pre_upgrade() {
+ if grep -q '^export _JAVA_AWT_WM_NONREPARENTING=1' /etc/profile.d/jre.sh > /dev/null 2>&1; then
+ echo "Variable '_JAVA_AWT_WM_NONREPARENTING' should not be set in /etc/profile.d/jre.sh any more"
+ echo "Please declare it in ~/.xinitrc or such"
+ fi
+}
+
+post_install() {
+ echo 'For the complete set of Java binaries to be available in your PATH,'
+ echo 'you need to re-login or source /etc/profile.d/jre.sh'
+ echo 'Please note that this package does not support forcing JAVA_HOME as former package 'java-common' did'
+}
+
+post_upgrade() {
+ archlinux-java fix
+}