summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rwxr-xr-xlbe.sh9
3 files changed, 14 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9a4275e2057..f61d1214e89 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
pkgbase = lbe
pkgdesc = Simple Java-based LDAP Browser/Editor (last freeware version)
pkgver = 2.8.2
- pkgrel = 4
+ pkgrel = 5
url = http://web.archive.org/web/20090201080715/http://mcs.anl.gov/~gawor/ldap/
arch = any
license = custom
- depends = java-runtime
+ depends = java-runtime=8
noextract = ldapbrowser-2.8.2.zip
source = http://nullroute.eu.org/mirrors/files/ldapbrowser-2.8.2.zip
source = lbe.desktop
source = lbe.sh
sha256sums = 6c1a1b80b81d83f005d4a006bc070b1b8f44f90151f7af6b14004c96e26687ec
sha256sums = ccdc18f2879c6ab10aa0f3ad087a3aa225a6146340be7e2fb46302b961255972
- sha256sums = 88424107b75e55cfc35f26d044e4288656a17d1f769d28e087d6adb0cd1e066f
+ sha256sums = 7bae189089e99ab328a77d545df2d253621d4577b5933e1899d357fbb3a7def4
pkgname = lbe
diff --git a/PKGBUILD b/PKGBUILD
index 2eb300c9a43..f27447c4b89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,20 +2,20 @@
pkgname='lbe'
pkgver=2.8.2
-pkgrel=4
+pkgrel=5
pkgdesc="Simple Java-based LDAP Browser/Editor (last freeware version)"
arch=('any')
#url="http://www.openchannelsoftware.com/projects/LDAP_Browser_Editor"
url="http://web.archive.org/web/20090201080715/http://mcs.anl.gov/~gawor/ldap/"
license=('custom')
-depends=('java-runtime')
+depends=('java-runtime=8')
source=("http://nullroute.eu.org/mirrors/files/ldapbrowser-$pkgver.zip"
"lbe.desktop"
"lbe.sh")
noextract=("ldapbrowser-$pkgver.zip")
sha256sums=('6c1a1b80b81d83f005d4a006bc070b1b8f44f90151f7af6b14004c96e26687ec'
'ccdc18f2879c6ab10aa0f3ad087a3aa225a6146340be7e2fb46302b961255972'
- '88424107b75e55cfc35f26d044e4288656a17d1f769d28e087d6adb0cd1e066f')
+ '7bae189089e99ab328a77d545df2d253621d4577b5933e1899d357fbb3a7def4')
prepare() {
unzip -o -d "$srcdir/ldapbrowser-$pkgver" "$srcdir/ldapbrowser-$pkgver.zip"
diff --git a/lbe.sh b/lbe.sh
index e85202d12fc..ba32173f918 100755
--- a/lbe.sh
+++ b/lbe.sh
@@ -32,4 +32,11 @@ cd "$confdir" # FIXME: if we do this, we can ditch lbe.properties; any disadvant
umask 077 # protect session files
-exec java -jar "$appdir/lbe.jar" "$@"
+for jvm in /usr/lib/jvm/java-8-{openjdk,jre}; do
+ if [ -d "$jvm" ]; then
+ exec "$jvm"/jre/bin/java -jar "$appdir/lbe.jar" "$@"
+ fi
+done
+
+echo "error: could not find a compatible JRE" >&2
+exit 1