void-packages/srcpkgs/jenkins/template

25 lines
690 B
Bash

# Template file for 'jenkins'
pkgname=jenkins
version=2.109
revision=1
build_style=fetch
depends="virtual?java-runtime"
short_desc="Open source automation server"
maintainer="Renato Aguiar <renato@renag.me>"
license="MIT"
homepage="https://jenkins.io/"
distfiles="http://mirrors.jenkins-ci.org/war/${version}/jenkins.war"
checksum=90ecc4fa84e6d78182d9616aa567164f29741a8025d159c71bad37fe2ac6aed4
# 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
}