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

41 lines
1.0 KiB
Bash
Raw Normal View History

2014-03-20 15:30:12 +01:00
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/jenkins-bin/jenkins-bin-1.584.ebuild,v 1.1 2014/10/20 21:24:10 mrueg Exp $
2014-03-20 15:30:12 +01:00
EAPI=5
2014-03-20 15:30:12 +01:00
inherit user
2014-03-20 15:30:12 +01:00
DESCRIPTION="Extensible continuous integration server"
HOMEPAGE="http://jenkins-ci.org/"
LICENSE="MIT"
SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
RESTRICT="mirror"
2014-03-20 15:30:12 +01:00
SLOT="0"
KEYWORDS="~amd64 ~x86"
2014-03-20 15:30:12 +01:00
IUSE=""
DEPEND="media-fonts/dejavu"
RDEPEND="${DEPEND}
>=virtual/jdk-1.5"
2014-03-20 15:30:12 +01:00
S=${WORKDIR}
pkg_setup() {
enewgroup jenkins
enewuser jenkins -1 /bin/bash /var/lib/jenkins jenkins
}
src_install() {
keepdir /var/run/jenkins /var/log/jenkins
2014-03-20 15:30:12 +01:00
keepdir /var/lib/jenkins/home /var/lib/jenkins/backup
insinto /opt/jenkins
newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
2014-03-20 15:30:12 +01:00
newinitd "${FILESDIR}"${PN}.init jenkins
newconfd "${FILESDIR}"${PN}.confd jenkins
2014-03-20 15:30:12 +01:00
fowners jenkins:jenkins /var/run/jenkins /var/log/jenkins /var/lib/jenkins /var/lib/jenkins/home /var/lib/jenkins/backup
2014-03-20 15:30:12 +01:00
}