diff --git a/srcpkgs/jenkins/files/LICENSE b/srcpkgs/jenkins/files/LICENSE new file mode 100644 index 00000000000..b3249a138b5 --- /dev/null +++ b/srcpkgs/jenkins/files/LICENSE @@ -0,0 +1,22 @@ +The MIT License + +Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/srcpkgs/jenkins/files/jenkins/run b/srcpkgs/jenkins/files/jenkins/run new file mode 100755 index 00000000000..5ccc479d35f --- /dev/null +++ b/srcpkgs/jenkins/files/jenkins/run @@ -0,0 +1,11 @@ +#!/bin/sh +. /etc/profile +[ -r conf ] && . ./conf + +export JENKINS_USER=jenkins +export JENKINS_HOME=/var/lib/jenkins + +cd / +unset OLDPWD + +exec chpst -u jenkins:jenkins java -Xmx512m -jar /opt/jenkins/jenkins.war $OPTS diff --git a/srcpkgs/jenkins/template b/srcpkgs/jenkins/template new file mode 100644 index 00000000000..25d56190380 --- /dev/null +++ b/srcpkgs/jenkins/template @@ -0,0 +1,24 @@ +# Template file for 'jenkins' +pkgname=jenkins +version=2.65 +revision=1 +build_style=fetch +depends="virtual?java-runtime" +short_desc="Open source automation server" +maintainer="Renato Aguiar " +license="MIT" +homepage="https://jenkins.io/" +distfiles="http://mirrors.jenkins-ci.org/war/${version}/jenkins.war" +checksum=2652cd93906855be034d0c1cdd8ced4eacb158a70ec686bc789428b43343af79 +# Create 'jenkins' user +system_accounts="jenkins" +jenkins_homedir="/var/lib/jenkins" +jenkins_shell="/bin/sh" +jenkins_descr="Jenkins server user" +make_dirs="/var/lib/jenkins 0755 jenkins jenkins" + +do_install() { + vinstall jenkins.war 644 opt/jenkins + vsv jenkins + vlicense ${FILESDIR}/LICENSE +} diff --git a/srcpkgs/jenkins/update b/srcpkgs/jenkins/update new file mode 100644 index 00000000000..32550428264 --- /dev/null +++ b/srcpkgs/jenkins/update @@ -0,0 +1,2 @@ +site='http://mirrors.jenkins-ci.org/war/' +pattern=']*>\K[\d.]+(?=/)'