summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpappy2017-12-28 02:45:43 +0200
committerpappy2017-12-28 02:45:43 +0200
commit565225a477f865bfc9296cf2b7c004c640b101a1 (patch)
tree7982e4e4606ac96178261cd89ec0bcad489006c8
downloadaur-565225a477f865bfc9296cf2b7c004c640b101a1.tar.gz
initial import
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD58
-rw-r--r--nexus-oss4
-rw-r--r--nexus-oss.install19
-rw-r--r--nexus-oss.service16
-rw-r--r--nexus-oss.sysusers2
-rw-r--r--nexus-oss.tmpfiles1
-rw-r--r--nexus-oss.vmoptions16
-rw-r--r--pref_jre.cfg1
10 files changed, 149 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b816994552e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = nexus-oss
+ pkgdesc = Nexus 3 Repository OSS
+ pkgver = 3.7.0.04
+ pkgrel = 1
+ url = http://nexus.sonatype.org
+ install = nexus-oss.install
+ arch = any
+ depends = jre8-openjdk-headless
+ provides = nexus-oss
+ source = http://download.sonatype.com/nexus/3/nexus-3.7.0-04-unix.tar.gz
+ source = nexus-oss
+ source = nexus-oss.install
+ source = nexus-oss.service
+ source = nexus-oss.sysusers
+ source = nexus-oss.tmpfiles
+ source = nexus-oss.vmoptions
+ source = pref_jre.cfg
+ sha256sums = 542912830cb804bc2cad1dc247d28440ecd14edd36684bf8bd55d6999b5e083f
+ sha256sums = 3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff
+ sha256sums = 1b5628130205db11429fc26527e38d3cd613f6c00d08cc19d49a6fe9c1a43d06
+ sha256sums = 0fa963f12b4f2d7da4b25cf7027ced34dc73a361e4c8ddc9b939c00faaeb531e
+ sha256sums = 77d699b5ccf6387fa2f69df2cd71cdb75b4ffbf46a10110dd6c0e2802783dbef
+ sha256sums = 32bfa3f82038f89d2f7140eada1faadf416ae835d5e5cb0573c528398249a63e
+ sha256sums = 70ea18f8567b7368c5799141e5f1cd0ca7658d6e4a4d29c52a9288446c7cf341
+ sha256sums = c55ed8e395f54d2374fd8e5fd3be90a044bd33701ad128e7516e905331b1adcc
+
+pkgname = nexus-oss
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6f72e81ab81
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+*.xz
+*.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fbef8d149b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: PAPPY <pappy _AT_ a s c e l i o n _DOT_ com>
+
+_version=3.7.0
+_patch=04
+
+pkgname=nexus-oss
+pkgver=${_version}.${_patch}
+pkgrel=1
+pkgdesc='Nexus 3 Repository OSS'
+arch=('any')
+url='http://nexus.sonatype.org'
+depends=('jre8-openjdk-headless')
+provides=('nexus-oss')
+source=("http://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.gz"
+ "$pkgname"
+ "$pkgname.install"
+ "$pkgname.service"
+ "$pkgname.sysusers"
+ "$pkgname.tmpfiles"
+ "$pkgname.vmoptions"
+ "pref_jre.cfg"
+ )
+sha256sums=(
+ "542912830cb804bc2cad1dc247d28440ecd14edd36684bf8bd55d6999b5e083f"
+ "3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff"
+ "1b5628130205db11429fc26527e38d3cd613f6c00d08cc19d49a6fe9c1a43d06"
+ "0fa963f12b4f2d7da4b25cf7027ced34dc73a361e4c8ddc9b939c00faaeb531e"
+ "77d699b5ccf6387fa2f69df2cd71cdb75b4ffbf46a10110dd6c0e2802783dbef"
+ "32bfa3f82038f89d2f7140eada1faadf416ae835d5e5cb0573c528398249a63e"
+ "70ea18f8567b7368c5799141e5f1cd0ca7658d6e4a4d29c52a9288446c7cf341"
+ "c55ed8e395f54d2374fd8e5fd3be90a044bd33701ad128e7516e905331b1adcc"
+ )
+
+install=$pkgname.install
+
+package() {
+ install -dm755 $pkgdir/usr/lib
+ install -dm750 $pkgdir/var/lib/$pkgname
+ install -dm750 $pkgdir/var/lib/$pkgname/log
+
+ cp -a $srcdir/nexus-$_version-$_patch $pkgdir/usr/lib/$pkgname
+ cp -a $srcdir/sonatype-work/nexus3/orient $pkgdir/var/lib/$pkgname
+
+ pushd $pkgdir/usr/lib/$pkgname
+ rm -rf bin/nexus.rc \
+ bin/contrib \
+ LICENSE.txt
+ popd
+
+ install -Dm644 $srcdir/nexus-$_version-$_patch/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname
+ install -Dm644 $srcdir/$pkgname.vmoptions $pkgdir/usr/lib/$pkgname/bin/nexus.vmoptions
+ install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ install -Dm644 $pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+ install -Dm644 $pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+ install -m644 pref_jre.cfg $pkgdir/usr/lib/$pkgname/.install4j
+}
+
diff --git a/nexus-oss b/nexus-oss
new file mode 100644
index 00000000000..12bfa60868d
--- /dev/null
+++ b/nexus-oss
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+exec /usr/lib/nexus-oss/bin/nexus "$@"
+
diff --git a/nexus-oss.install b/nexus-oss.install
new file mode 100644
index 00000000000..d1ca2b75cb8
--- /dev/null
+++ b/nexus-oss.install
@@ -0,0 +1,19 @@
+post_install()
+{
+ systemd-sysusers nexus-oss.conf
+ chown -R nexus:nexus var/lib/nexus-oss
+ chmod -R o-rwx var/lib/nexus-oss
+ systemd-tmpfiles --create nexus-oss.conf
+}
+
+post_upgrade()
+{
+ systemctl daemon-reload
+}
+
+post_remove()
+{
+ systemctl stop nexus-oss
+ userdel -r nexus >/dev/null 2>&1
+}
+
diff --git a/nexus-oss.service b/nexus-oss.service
new file mode 100644
index 00000000000..ed0fb0d1e03
--- /dev/null
+++ b/nexus-oss.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Nexus 3 Repository OSS
+After=network.target
+
+[Service]
+Type=forking
+LimitNOFILE=65536
+User=nexus
+Group=nexus
+ExecStart=/usr/bin/nexus-oss start
+ExecStop=/usr/bin/nexus-oss start
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/nexus-oss.sysusers b/nexus-oss.sysusers
new file mode 100644
index 00000000000..62925b8fde5
--- /dev/null
+++ b/nexus-oss.sysusers
@@ -0,0 +1,2 @@
+u nexus - "Nexus OSS" /var/lib/nexus-oss
+g nexus -
diff --git a/nexus-oss.tmpfiles b/nexus-oss.tmpfiles
new file mode 100644
index 00000000000..c76e36675e8
--- /dev/null
+++ b/nexus-oss.tmpfiles
@@ -0,0 +1 @@
+d /var/run/nexus-oss 0755 nexus nexus -
diff --git a/nexus-oss.vmoptions b/nexus-oss.vmoptions
new file mode 100644
index 00000000000..61314d5575f
--- /dev/null
+++ b/nexus-oss.vmoptions
@@ -0,0 +1,16 @@
+-Xms1200M
+-Xmx1200M
+-XX:MaxDirectMemorySize=2G
+-XX:+UnlockDiagnosticVMOptions
+-XX:+UnsyncloadClass
+-XX:+LogVMOutput
+-XX:LogFile=/var/lib/nexus-oss/log/jvm.log
+-XX:-OmitStackTraceInFastThrow
+-Djava.net.preferIPv4Stack=true
+-Dkaraf.home=.
+-Dkaraf.base=.
+-Dkaraf.etc=etc/karaf
+-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
+-Dkaraf.data=/var/lib/nexus-oss
+-Djava.io.tmpdir=/var/run/nexus-oss
+-Dkaraf.startLocalConsole=false
diff --git a/pref_jre.cfg b/pref_jre.cfg
new file mode 100644
index 00000000000..e06c99071ba
--- /dev/null
+++ b/pref_jre.cfg
@@ -0,0 +1 @@
+/usr/lib/jvm/default