summaryrefslogtreecommitdiff
path: root/development/nexus/nexus.SlackBuild
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/nexus.SlackBuild
parent04d6bd90beea253c7b9c9495c7095d4593f12f9e (diff)
downloadslackbuilds-03fa7bb056f2b6e4c923c1e8ba3ed1ce85f1af7b.tar.gz
development/nexus: Updated for version 3.15.2_01.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nexus/nexus.SlackBuild')
-rw-r--r--development/nexus/nexus.SlackBuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild
index 16d62272a7..12bb12ed35 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