gentoo/dev-util/jenkins-bin/jenkins-bin-1.532.2.ebuild

45 lines
991 B
Bash

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit java-pkg-2 unpacker user
DESCRIPTION="Extensible continuous integration server"
HOMEPAGE="http://jenkins-ci.org/"
SRC_URI="http://pkg.jenkins-ci.org/debian-stable/binary/jenkins_${PV}_all.deb"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
DEPEND="media-fonts/dejavu"
RDEPEND="${DEPEND}
>=virtual/jdk-1.6"
S=${WORKDIR}
pkg_setup() {
enewgroup jenkins
enewuser jenkins -1 /bin/bash /var/lib/jenkins jenkins
}
src_install() {
keepdir /var/log/jenkins
keepdir /var/lib/jenkins/home /var/lib/jenkins/backup
insinto /usr/lib/jenkins
doins usr/share/jenkins/jenkins.war
newinitd "${FILESDIR}/init.sh" jenkins
newconfd "${FILESDIR}/conf" jenkins
insinto /etc/logrotate.d
doins etc/logrotate.d/jenkins
fowners jenkins:jenkins /var/log/jenkins /var/lib/jenkins /var/lib/jenkins/home /var/lib/jenkins/backup
}