aboutsummaryrefslogtreecommitdiff
path: root/development/nexus
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2019-03-13 23:19:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-16 06:53:24 +0700
commit03fa7bb056f2b6e4c923c1e8ba3ed1ce85f1af7b (patch)
treeb7a014ee9aa8990b6caf92afc7e202ac83886737 /development/nexus
parent04d6bd90beea253c7b9c9495c7095d4593f12f9e (diff)
development/nexus: Updated for version 3.15.2_01.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nexus')
-rw-r--r--development/nexus/doinst.sh2
-rw-r--r--development/nexus/nexus.SlackBuild18
-rw-r--r--development/nexus/nexus.info8
3 files changed, 18 insertions, 10 deletions
diff --git a/development/nexus/doinst.sh b/development/nexus/doinst.sh
index 9eae89b92844..75c3b4b27cda 100644
--- a/development/nexus/doinst.sh
+++ b/development/nexus/doinst.sh
@@ -22,4 +22,4 @@ preserve_perms() {
config $NEW
}
-#preserve_perms etc/rc.d/rc.nexus.new
+# preserve_perms etc/rc.d/rc.nexus
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild
index 16d62272a7a4..12bb12ed357c 100644
--- a/development/nexus/nexus.SlackBuild
+++ b/development/nexus/nexus.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Sonatype Nexus Repository OSS
-# Copyright 2017 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
+# Copyright 2019 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nexus
-VERSION=${VERSION:-3.6.1_02}
+VERSION=${VERSION:-3.15.2_01}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCVERSION=$(echo $VERSION | tr _ -)
@@ -65,6 +65,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVERSION
+rm -rf sonatype-work
tar xvf $CWD/$PRGNAM-$SRCVERSION-unix.tar.gz
cd $PRGNAM-$SRCVERSION
chown -R root:root .
@@ -84,9 +85,14 @@ cd $PKG/etc
ln -sf ../usr/share/$PRGNAM/etc $PRGNAM
cd $PKG/usr/share/$PRGNAM
ln -sf ../../../var/lib/$PRGNAM data
-cd data
-ln -sf /../../../var/log/$PRGNAM log
-ln -sf /../../../var/tmp/$PRGNAM tmp
+cd $PKG/var/lib/$PRGNAM
+ln -sf ../../log/$PRGNAM log
+ln -sf ../../tmp/$PRGNAM tmp
+cd $TMP
+cp sonatype-work/nexus3/log/.placeholder $PKG/var/log/$PRGNAM
+cp sonatype-work/nexus3/tmp/.placeholder $PKG/var/tmp/$PRGNAM
+cp -r sonatype-work/nexus3/orient $PKG/var/lib/$PRGNAM
+cp sonatype-work/nexus3/clean_cache $PKG/var/lib/$PRGNAM
# Fix configuration files
sed -i $PKG/usr/share/$PRGNAM/bin/$PRGNAM.rc \
@@ -97,6 +103,8 @@ sed -i $PKG/usr/share/$PRGNAM/bin/$PRGNAM.vmoptions \
-e "s\-XX:LogFile=../sonatype-work/nexus3/log/jvm.log\-XX:LogFile=/var/lib/nexus/log/jvm.log\g" \
-e "s:-Dkaraf.data=../sonatype-work/nexus3:-Dkaraf.data=/var/lib/nexus:g" \
-e "s:-Djava.io.tmpdir=../sonatype-work/nexus3/tmp:-Djava.io.tmpdir=/var/lib/nexus/tmp:g"
+sed -i $PKG/usr/share/$PRGNAM/.install4j/i4jparams.conf \
+-e "s:<variable name=\"nexus.dataDir\" value=\"../sonatype-work/nexus3\" />:<variable name=\"nexus.dataDir\" value=\"/var/lib/nexus\" />:g"
cd $PKG/etc/rc.d
ln -sf ../../usr/share/$PRGNAM/bin/$PRGNAM rc.$PRGNAM
diff --git a/development/nexus/nexus.info b/development/nexus/nexus.info
index a51c134ba89f..3c817fde7cf6 100644
--- a/development/nexus/nexus.info
+++ b/development/nexus/nexus.info
@@ -1,10 +1,10 @@
PRGNAM="nexus"
-VERSION="3.6.1_02"
+VERSION="3.15.2_01"
HOMEPAGE="https://www.sonatype.com/nexus-repository-oss"
-DOWNLOAD="https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.6.1-02-unix.tar.gz"
-MD5SUM="caeaf3b68f5b7d01c031b9cd6242d7bb"
+DOWNLOAD="https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.15.2-01-unix.tar.gz"
+MD5SUM="cd032359593564ee75e5c78c74001c7b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="jdk"
+REQUIRES="openjdk8"
MAINTAINER="Giorgio Peron"
EMAIL="giorgio.peron@gmail.com"