diff options
author | Giorgio Peron <giorgio.peron@gmail.com> | 2015-12-17 04:07:48 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-18 09:19:29 +0700 |
commit | 8a25fd8e8a43733ac5d3cfc304213090967a3c0c (patch) | |
tree | cb644bdb1007bc98a9f03f7c65707e68a83a72f0 /system/jenkins/jenkins.SlackBuild | |
parent | 0479cb745427ace2c7b625276cef57d0ca9b753d (diff) |
system/jenkins: Updated for version 1.641.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/jenkins/jenkins.SlackBuild')
-rw-r--r-- | system/jenkins/jenkins.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/system/jenkins/jenkins.SlackBuild b/system/jenkins/jenkins.SlackBuild index ad4c79d7a17d4..9b714713f5410 100644 --- a/system/jenkins/jenkins.SlackBuild +++ b/system/jenkins/jenkins.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for jenkins -# Copyright 2014 Giorgio Peron Campodarsego, PD, Italy giorgio.peron@gmail.com +# Copyright 2015 Giorgio Peron Campodarsego, PD, Italy giorgio.peron@gmail.com # 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=jenkins -VERSION=${VERSION:-1.552} +VERSION=${VERSION:-1.641} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,6 +55,7 @@ cd $PKG mkdir -p $PKG/usr/share/$PRGNAM cp $CWD/$PRGNAM.war $PKG/usr/share/$PRGNAM/$PRGNAM.war +chown -R jenkins.jenkins $PKG/usr/share/$PRGNAM mkdir -p $PKG/usr/bin cat $CWD/files/jenkins.bin.sh > $PKG/usr/bin/jenkins @@ -63,6 +64,8 @@ chmod 0755 $PKG/usr/bin/* mkdir -p $PKG/etc/$PRGNAM cp $CWD/files/$PRGNAM.conf $PKG/etc/$PRGNAM/$PRGNAM.conf.new +JAVAEXEC=`which java` +sed -i "s|#JAVA=/usr/lib/java/bin/java|#JAVA=${JAVAEXEC}|" $PKG/etc/$PRGNAM/$PRGNAM.conf.new mkdir -p $PKG/etc/logrotate.d cp $CWD/files/logrotate.$PRGNAM $PKG/etc/logrotate.d/$PRGNAM.new @@ -71,18 +74,18 @@ mkdir -p $PKG/etc/rc.d cp $CWD/files/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new mkdir -p $PKG/var/lib/$PRGNAM/apps -chown jenkins.jenkins $PKG/var/lib/jenkins +chown jenkins.jenkins $PKG/var/lib/$PRGNAM mkdir -p $PKG/var/log/$PRGNAM -touch $PKG/var/log/jenkins/jenkins.log.new -touch $PKG/var/log/jenkins/jenkins_console.log.new -chown -R jenkins.jenkins $PKG/var/log/jenkins +touch $PKG/var/log/$PRGNAM/jenkins.log.new +touch $PKG/var/log/$PRGNAM/jenkins_console.log.new +chown -R jenkins.jenkins $PKG/var/log/$PRGNAM # We can't depend on this directory persisting across reboots, since /var/run # is often on tmpfs (or even linked to /run), so we'll create this in the # init script's start() function too... --rworkman -mkdir -p $PKG/var/run/jenkins -chown jenkins:jenkins $PKG/var/run/jenkins +mkdir -p $PKG/var/run/$PRGNAM +chown jenkins:jenkins $PKG/var/run/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README |