diff options
author | Timo Teras <timo.teras@iki.fi> | 2011-03-26 22:11:53 +0000 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2011-03-26 22:15:51 +0000 |
commit | a31fe528bf0fd9b02f1c4850a183096f99d33c73 (patch) | |
tree | 6c4672ccc5cd612aa593ad8a01bc266f9f610b92 /testing/java-common | |
parent | 8e2d6ac68340a85895a7d5bfe323c4df3b4756ab (diff) | |
download | aports-a31fe528bf0fd9b02f1c4850a183096f99d33c73.tar.bz2 aports-a31fe528bf0fd9b02f1c4850a183096f99d33c73.tar.xz |
testing/java-common: new aport
a meta package that setups links for default java virtual machine
Diffstat (limited to 'testing/java-common')
-rw-r--r-- | testing/java-common/APKBUILD | 24 | ||||
-rw-r--r-- | testing/java-common/java-common.trigger | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/testing/java-common/APKBUILD b/testing/java-common/APKBUILD new file mode 100644 index 000000000..d5e3e4d38 --- /dev/null +++ b/testing/java-common/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Timo Teras <timo.teras@iki.fi> +# Maintainer: Timo Teras <timo.teras@iki.fi> +pkgname=java-common +pkgver=0.1 +pkgrel=0 +pkgdesc="Java common (updates java links)" +url="http://git.alpinelinux.org/aports.git" +arch="noarch" +license="GPL2" +depends= +makedepends="" +install="" +subpackages="" +source="" +triggers="java-common.trigger:/usr/lib/jvm" + +package() { + mkdir -p "$pkgdir"/usr/bin + ln -sf ../lib/jvm/default-jvm/jre/bin/java "$pkgdir"/usr/bin + ln -sf ../lib/jvm/default-jvm/jre/bin/rmiregistry "$pkgdir"/usr/bin + ln -sf ../lib/jvm/default-jvm/jre/bin/keytool "$pkgdir"/usr/bin + ln -sf ../lib/jvm/default-jvm/bin/appletviewer "$pkgdir"/usr/bin +} + diff --git a/testing/java-common/java-common.trigger b/testing/java-common/java-common.trigger new file mode 100644 index 000000000..6d0613d48 --- /dev/null +++ b/testing/java-common/java-common.trigger @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -x /usr/lib/jvm/forced-jvm ]; then + ln -sfn forced-jvm default-jvm + exit 0 +fi + +cd /usr/lib/jvm +LATEST=`ls -d java-* | sort -r | head -1` +if [ "$LATEST" ]; then + ln -sfn $LATEST default-jvm +fi + |