aboutsummaryrefslogtreecommitdiff
path: root/development/nexus
diff options
context:
space:
mode:
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 9eae89b92844d..75c3b4b27cda3 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 16d62272a7a45..12bb12ed357c3 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 a51c134ba89f4..3c817fde7cf69 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"