DIST jenkins-bin-2.154.war 76032730 BLAKE2B ce107d6afd617c0335f0ec13e004f72fb497ed8a9cd7859169e049f1f62cff34dbffa7bc59b536afabde3dead439a4d3e4cbb4f71107b1752b29451997ab5c77 SHA512 d86723dd0b10a26c7d8764c0717114d990de49b2ade3e8b7af163c13350b55f8ec11e479f4743641d9a6530ffc6e98903d9fac20e964ca70b4795aa26202b720
DIST jenkins-bin-2.155.war 76037370 BLAKE2B 69ca351fe0322564899bc7866174c1d2334c1881cffe49bce06273143b4f5303d544d77d8c372ec5c5380c045bf60566c77b1b9f6be5f9e1e58744d90ff6807d SHA512 b7ce35de687094161d55d50522ccf8f80d8369e383ba97bd2de2082b5b03eea5385ae5d8aa46d80112c4f3df30584c9ba7ab2e58542c9c9c0ce7c2b2e17b481e
DIST jenkins-bin-2.156.war 76055382 BLAKE2B f02e8b92eea995a66dce9bf2cc8278f6af84cbdcf03ce78ac00601537ded97789f7458c4313c429c4e90abe2b21cc9201e5b9e12b0af5c5bb7b7a2e232bd61b3 SHA512 f9299241ec5e122ea47d7fe6671d13abb66e98c41cc31a47d8363f2ea1845270ab41a100bd5debfd195e24e335253bc2545feaebec976c59a98e8018b31322ef
+DIST jenkins-bin-2.158.war 76009057 BLAKE2B 7ec77f5e6e11fdc354c6a0be0a821e2814b3b442bbecb6410c3be45b4edbbaa62f2992d77a397d109d14827fed243ede42530cc66083f0c9efd4b0365096ba21 SHA512 4ccc8b900cd95ee3b1355401399fdb462c9b38680945015e77ba338004e4c3bf83be9ccfac0539d1b5c8befb19bfc0ac99d4d41ca233c4dd42ab888b16e95a6c
--- /dev/null
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="https://jenkins.io/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.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}.service2 jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}