summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammadreza Abdollahzadeh2017-08-08 12:48:51 +0430
committerMohammadreza Abdollahzadeh2017-08-08 12:48:51 +0430
commitd94dc5df54618381fbddf5da173bb5f688e89847 (patch)
treea749893214e0d96361c26c9730986ae18c7ab421
downloadaur-d94dc5df54618381fbddf5da173bb5f688e89847.tar.gz
initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD25
-rw-r--r--glassfish5.service12
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6090e25f569
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue Aug 8 08:18:35 UTC 2017
+pkgbase = glassfish5
+ pkgdesc = The Open Source Java EE 8 Reference Implementation.
+ pkgver = 5.0_b18_08_07_2017
+ pkgrel = 1
+ url = https://javaee.github.io/glassfish/
+ arch = any
+ license = CDDL
+ depends = java-environment>=8
+ provides = glassfish5
+ conflicts = glassfish5
+ options = !strip
+ source = http://download.oracle.com/glassfish/5.0_b18_08_07_2017/nightly/glassfish-5.0-b18-08_07_2017.zip
+ source = glassfish5.service
+ sha256sums = 790b3395da69934059b3e099993dfd92e4e7381437edec715221109de1c93233
+ sha256sums = 9be6b53df62a719e4cac1b54703f0abcc6c22389d1b46e3e85ed38d6f1453cdc
+
+pkgname = glassfish5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d55c33bc6b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
+
+pkgname=glassfish5
+pkgver=5.0_b18_08_07_2017
+_oraver=5.0-b18-08_07_2017
+pkgrel=1
+pkgdesc="The Open Source Java EE 8 Reference Implementation."
+url="https://javaee.github.io/glassfish/"
+license=("CDDL")
+provides=("glassfish5")
+conflicts=("glassfish5")
+depends=("java-environment>=8")
+arch=("any")
+options=(!strip)
+source=("http://download.oracle.com/glassfish/${pkgver}/nightly/glassfish-${_oraver}.zip"
+ "glassfish5.service")
+
+sha256sums=('790b3395da69934059b3e099993dfd92e4e7381437edec715221109de1c93233'
+ '9be6b53df62a719e4cac1b54703f0abcc6c22389d1b46e3e85ed38d6f1453cdc')
+
+package() {
+ install -d $pkgdir/opt
+ cp -a glassfish5 $pkgdir/opt/glassfish5
+ install -D glassfish5.service $pkgdir/usr/lib/systemd/system/glassfish5.service
+}
diff --git a/glassfish5.service b/glassfish5.service
new file mode 100644
index 00000000000..bd368cb02bb
--- /dev/null
+++ b/glassfish5.service
@@ -0,0 +1,12 @@
+[Unit]
+Description = GlassFish Server v5
+After = syslog.target network.target
+
+[Service]
+ExecStart = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar start-domain
+ExecStop = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar stop-domain
+ExecReload = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar restart-domain
+Type = forking
+
+[Install]
+WantedBy = multi-user.target