summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-08-11 11:22:44 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-08-11 11:22:44 +0200
commit866246d28fb8ca978519104f9cd0c606b1b49c39 (patch)
tree3f2628116a0df08d6ee5e0bd203b959734aee447 /dev-util/jenkins-bin/jenkins-bin-2.251.ebuild
parentmedia-sound/jack-audio-connection-kit: add zita support (diff)
downloadgentoo-866246d28fb8ca978519104f9cd0c606b1b49c39.tar.gz
gentoo-866246d28fb8ca978519104f9cd0c606b1b49c39.tar.bz2
gentoo-866246d28fb8ca978519104f9cd0c606b1b49c39.zip
dev-util/jenkins-bin: bump to v2.251
Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-util/jenkins-bin/jenkins-bin-2.251.ebuild')
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.251.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.251.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.251.ebuild
new file mode 100644
index 00000000000..e3e0cd1a4ed
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.251.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 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
+}