development/nexus: Updated for version 3.15.2_01.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giorgio Peron 2019-03-13 23:19:51 +07:00 committed by Willy Sudiarto Raharjo
parent 04d6bd90be
commit 03fa7bb056
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 18 additions and 10 deletions

View file

@ -22,4 +22,4 @@ preserve_perms() {
config $NEW
}
#preserve_perms etc/rc.d/rc.nexus.new
# preserve_perms etc/rc.d/rc.nexus

View file

@ -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

View file

@ -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"