summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
author Giorgio Peron <giorgio.peron@gmail.com>2016-07-28 06:53:22 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-30 06:04:10 +0700
commit30dc0f4782d744d2861e7be7ff81511461d4c7e7 (patch)
treee1129f6ec7c9b18f73c18f310d383432491ef0f2 /development
parentd447c46e3fc42e5180bd90d7cead93cf1f4b596e (diff)
downloadslackbuilds-30dc0f4782d744d2861e7be7ff81511461d4c7e7.tar.gz
slackbuilds-30dc0f4782d744d2861e7be7ff81511461d4c7e7.tar.xz
development/nexus: Updated for version 3.0.1_01.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/nexus/README4
-rw-r--r--development/nexus/doinst.sh4
-rw-r--r--development/nexus/nexus.SlackBuild90
-rw-r--r--development/nexus/nexus.info6
-rw-r--r--development/nexus/slack-desc10
5 files changed, 42 insertions, 72 deletions
diff --git a/development/nexus/README b/development/nexus/README
index fedf5bd17b..3b1bce4ba0 100644
--- a/development/nexus/README
+++ b/development/nexus/README
@@ -8,3 +8,7 @@ SlackBuild script. Examples:
# groupadd -g 252 nexus
# useradd -u 252 -s /bin/sh -d /dev/null -g nexus nexus
+Should I Use 3.0 Or 2.x?
+We are advising that you use Nexus Repository 3.0 if you are planning to use npm, Bower, NuGet or Docker.
+If you are using Maven, we suggest that you continue to use Nexus Repository 2.x as we are still building
+features for 3.0 that many Maven folks will find handy.
diff --git a/development/nexus/doinst.sh b/development/nexus/doinst.sh
index a9e443fb0e..9eae89b928 100644
--- a/development/nexus/doinst.sh
+++ b/development/nexus/doinst.sh
@@ -22,6 +22,4 @@ preserve_perms() {
config $NEW
}
-preserve_perms etc/rc.d/rc.nexus.new
-config etc/nexus/nexus.properties.new
-config etc/nexus/wrapper.conf.new
+#preserve_perms etc/rc.d/rc.nexus.new
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild
index fae62f8aaa..7caa7b2256 100644
--- a/development/nexus/nexus.SlackBuild
+++ b/development/nexus/nexus.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for Sonatype Nexus
+# Slackware build script for Sonatype Nexus Repository OSS
-# Copyright 2014 Giorgio Peron Campodarsego, PD, Italy giorgio.peron@gmail.com
+# Copyright 2016 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,39 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nexus
-VERSION=${VERSION:-2.11.1_01}
+VERSION=${VERSION:-3.0.1_01}
+ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-
SRCVERSION=$(echo $VERSION | tr _ -)
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- NEXUS_ARCH="linux-x86-32"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- NEXUS_ARCH="linux-x86-32"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- NEXUS_ARCH="linux-x86-64"
- LIBDIRSUFFIX="64"
-else
- echo "ARCH $ARCH not supported"
- exit 1
-fi
-
set -e
# Check if the 'nexus' user & group exist:
@@ -70,7 +48,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVERSION
-tar xvf $CWD/$PRGNAM-$SRCVERSION-bundle.tar.gz
+tar xvf $CWD/$PRGNAM-$SRCVERSION-unix.tar.gz
cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
@@ -79,48 +57,38 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/usr/share/$PRGNAM/bin/jsw/lib
-mv lib $PKG/usr/share/$PRGNAM
-mv $PRGNAM $PKG/usr/share/$PRGNAM/
-mv bin/jsw/license $PKG/usr/share/$PRGNAM/bin/jsw
-mv bin/jsw/lib/*.jar $PKG/usr/share/$PRGNAM/bin/jsw/lib
-mv bin/jsw/lib/libwrapper-$NEXUS_ARCH.so $PKG/usr/share/$PRGNAM/bin/jsw/lib
-mv bin/jsw/$NEXUS_ARCH $PKG/usr/share/$PRGNAM/bin/jsw
-
-mkdir -p $PKG/etc/$PRGNAM
-mv conf/* $PKG/etc/$PRGNAM
-mv bin/jsw/conf/* $PKG/etc/$PRGNAM
-
-mkdir -p $PKG/var/{lib,log,run,tmp}/$PRGNAM
-ln -sf /etc/$PRGNAM $PKG/usr/share/$PRGNAM/conf
-ln -sf /etc/$PRGNAM $PKG/usr/share/$PRGNAM/bin/jsw/conf
-ln -sf /var/tmp/$PRGNAM $PKG/usr/share/$PRGNAM/tmp
-ln -sf /var/log/$PRGNAM $PKG/usr/share/$PRGNAM/logs
-
+mkdir -p $PKG/usr/share/$PRGNAM
mkdir -p $PKG/etc/rc.d
-mv bin/$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
+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
+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
# Fix configuration files
-sed -i $PKG/etc/rc.d/rc.$PRGNAM.new \
- -e "s:NEXUS_HOME=\"..\":NEXUS_HOME=\"/usr/share/$PRGNAM\":g" \
- -e "s:#RUN_AS_USER=:RUN_AS_USER=nexus:g" \
- -e "s:#PIDDIR=\".\":PIDDIR=\"/var/run/$PRGNAM\":g" \
- -e "s:DIST_ARCH=\`uname -p:DIST_ARCH=\`uname -m:g"
-sed -i \
- "s:nexus-work=\${bundleBasedir}/../sonatype-work/nexus:nexus-work=/var/lib/$PRGNAM:g" \
- $PKG/etc/$PRGNAM/$PRGNAM.properties
-sed -i $PKG/etc/$PRGNAM/wrapper.conf \
- -e "s:wrapper.working.dir=../../..:wrapper.working.dir=/usr/share/$PRGNAM:g" \
- -e "s:wrapper.java.command=java:wrapper.java.command=/usr/lib$LIBDIRSUFFIX/java/bin/java:g"
+sed -i $PKG/usr/share/$PRGNAM/bin/$PRGNAM.rc \
+ -e "s:#run_as_user=\"\":run_as_user=\"nexus\":g"
-mv $PKG/etc/$PRGNAM/$PRGNAM.properties{,.new}
-mv $PKG/etc/$PRGNAM/wrapper.conf{,.new}
+cd $PKG/etc/rc.d
+ln -sf ../../usr/share/$PRGNAM/bin/$PRGNAM rc.$PRGNAM
+cd $PKG
# Fix ownership of some dirs
-chown -R nexus:nexus $PKG/var/{lib,log,run,tmp}/$PRGNAM
+chown -R nexus:nexus $PKG/var/{lib,log,tmp}/$PRGNAM
+chown -R nexus:nexus $PKG/usr/share/$PRGNAM/etc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/$PRGNAM/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/nexus/nexus.info b/development/nexus/nexus.info
index 169327f2c6..c4b98f5390 100644
--- a/development/nexus/nexus.info
+++ b/development/nexus/nexus.info
@@ -1,8 +1,8 @@
PRGNAM="nexus"
-VERSION="2.11.1_01"
+VERSION="3.0.1_01"
HOMEPAGE="http://nexus.sonatype.org"
-DOWNLOAD="http://www.sonatype.org/downloads/nexus-2.11.1-01-bundle.tar.gz"
-MD5SUM="269bd464397215717a8591a3817f5f00"
+DOWNLOAD="http://download.sonatype.com/nexus/3/nexus-3.0.1-01-unix.tar.gz"
+MD5SUM="7c58c668f1c96b98ac14b785aba19022"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jdk"
diff --git a/development/nexus/slack-desc b/development/nexus/slack-desc
index 53e531475c..f116c9d668 100644
--- a/development/nexus/slack-desc
+++ b/development/nexus/slack-desc
@@ -8,11 +8,11 @@
|-----handy-ruler------------------------------------------------------|
nexus: Nexus (Maven repository manager)
nexus:
-nexus: Nexus manages software artifacts required for development, deployment,
-nexus: and provisioning. If you develop software, Nexus can help you share
-nexus: those artifacts with other developers and end-users.
-nexus: Nexus greatly simplifies the maintenance of your own internal
-nexus: repositories and access to external repositories.
+nexus: Nexus Repository OSS is the single warehouse that reliably serves
+nexus: components to every part of your software supply chain.
+nexus: It is a universal repository manager with support for all major
+nexus: package formats and types: Maven, Docker, NuGet, npm, Bower
+nexus:
nexus:
nexus: Homepage: http://nexus.sonatype.org
nexus: