summaryrefslogtreecommitdiff
path: root/dev-util/jenkins-bin/jenkins-bin-1.638.ebuild
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2015-11-12 22:28:55 +0100
committerManuel Rüger <mrueg@gentoo.org>2015-11-12 22:28:55 +0100
commitcf042de7e487dad381a8f28fe4433ff7bbafa9b3 (patch)
tree58592bb7c3b124229965baf51019570d2d126258 /dev-util/jenkins-bin/jenkins-bin-1.638.ebuild
parentbd02f22a29fc352388f0f5682ec3cc0f507517e9 (diff)
downloadgentoo-cf042de7e487dad381a8f28fe4433ff7bbafa9b3.tar.gz
gentoo-cf042de7e487dad381a8f28fe4433ff7bbafa9b3.tar.xz
dev-util/jenkins-bin: Version bump
Package-Manager: portage-2.2.24
Diffstat (limited to 'dev-util/jenkins-bin/jenkins-bin-1.638.ebuild')
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-1.638.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/jenkins-bin-1.638.ebuild b/dev-util/jenkins-bin/jenkins-bin-1.638.ebuild
new file mode 100644
index 00000000000..37fc0847772
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-1.638.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user systemd
+
+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"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.7.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}