diff options
author | Giorgio Peron <giorgio.peron@gmail.com> | 2017-08-22 23:25:55 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-26 07:19:44 +0700 |
commit | 8dbe1807abbea9a39e8475714ab70f192a6dfc6f (patch) | |
tree | 770d664deb40220452a83a46eb6f0e5cdcc3fafc /development | |
parent | 1f412f5bcd61c3aecae83ecda6204481ed10e1b8 (diff) |
development/nexus: Updated for version 3.5.0_02.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/nexus/nexus.SlackBuild | 33 | ||||
-rw-r--r-- | development/nexus/nexus.info | 6 |
2 files changed, 29 insertions, 10 deletions
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild index 7caa7b2256845..77d8672a38933 100644 --- a/development/nexus/nexus.SlackBuild +++ b/development/nexus/nexus.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Sonatype Nexus Repository OSS -# Copyright 2016 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy +# Copyright 2017 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,17 +23,34 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nexus -VERSION=${VERSION:-3.0.1_01} -ARCH=noarch +VERSION=${VERSION:-3.5.0_02} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCVERSION=$(echo $VERSION | tr _ -) +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + set -e # Check if the 'nexus' user & group exist: @@ -60,12 +77,8 @@ find -L . \ mkdir -p $PKG/usr/share/$PRGNAM mkdir -p $PKG/etc/rc.d mkdir -p $PKG/var/{lib,log,tmp}/$PRGNAM -mv data/tmp/.placeholder $PKG/var/tmp/$PRGNAM/ -rm -rf data/tmp -mv data/* $PKG/var/lib/$PRGNAM/ mv * $PKG/usr/share/$PRGNAM mv .install4j $PKG/usr/share/$PRGNAM -rm -rf $PKG/usr/share/$PRGNAM/data cd $PKG/etc ln -sf ../usr/share/$PRGNAM/etc $PRGNAM @@ -78,6 +91,12 @@ ln -sf /../../../var/tmp/$PRGNAM tmp # Fix configuration files sed -i $PKG/usr/share/$PRGNAM/bin/$PRGNAM.rc \ -e "s:#run_as_user=\"\":run_as_user=\"nexus\":g" +sed -i $PKG/usr/share/$PRGNAM/bin/$PRGNAM \ + -e "s:# INSTALL4J_JAVA_HOME_OVERRIDE=:INSTALL4J_JAVA_HOME_OVERRIDE=\"/usr/lib${LIBDIRSUFFIX}/java\":g" +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" 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 c4b98f539051c..cbc11edf1d222 100644 --- a/development/nexus/nexus.info +++ b/development/nexus/nexus.info @@ -1,8 +1,8 @@ PRGNAM="nexus" -VERSION="3.0.1_01" +VERSION="3.5.0_02" HOMEPAGE="http://nexus.sonatype.org" -DOWNLOAD="http://download.sonatype.com/nexus/3/nexus-3.0.1-01-unix.tar.gz" -MD5SUM="7c58c668f1c96b98ac14b785aba19022" +DOWNLOAD="http://download.sonatype.com/nexus/3/nexus-3.5.0-02-unix.tar.gz" +MD5SUM="12e92c23a17366c6a9838a4033d0e9e0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jdk" |