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