forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff <[email protected]>
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
DIST jenkins-bin-2.263.1.war 67270143 BLAKE2B 2c59b2d58632c741a0ce9ba66e4d177779899be01d3e0b9f7ba2e8fa5ff8bac667c2e2c98b9c199a8d55f9c873c1937b80f4aa6ea5f7ff6bbf256047c9a6ee94 SHA512 320dc0d4b365c0b9e11e76d6753b5ba3fbdf81e1acb9a7bbb4082fba1c57f22126810b75c563c4aa75ef3ff1633f2fe1a953c8aa1a25af5f3a0a9b2bc3a104d9 | ||
DIST jenkins-bin-2.263.2.war 67285886 BLAKE2B 6bb4922536370744b5e69ebc50b79937865bef13183d48b0cd725e78921bab4433fd63ab1a1a32d52903bd448c31acf29a47a3c03bda8ef2cc2fcdaed673d985 SHA512 f25158373963fd4dfa988381dbb6c84b16129899a596a447ae35dbce5ebed27a796d0b1aea0c4213032ee37a17df7b3dc50d393cf13156944813cbed1e598351 | ||
DIST jenkins-bin-2.263.3.war 67287051 BLAKE2B 376612f444d6827ad270f1121c2df3f134893eb9a501b919e2c1b506f0536b506a1158152541c46a211f55ecc62b39930024bf3457e2e550900e5aa98f368f39 SHA512 c8badbb4704ad60ede50d32b9df36ca8f78da7e4238e9277a26eaa90a16bd27106bf7e04497cf2bf2ef086befc8cfdb64db9af7f4ceccb1dc22d4e21e5898e68 | ||
DIST jenkins-bin-2.268.war 70969355 BLAKE2B e24424c8cd0535c04134cd22b8fc5e73de80c8eaa090e9fdf512dfeda4a9d029b0657e7ecaed4934ff996c1f5e8e59e9f10a7bfc31a313792cf759017780aeeb SHA512 b0e55310a21039fc57a7bdcc3b190ec61141f253d084a8279d279cff1778a3a4edc281bcc2cd1f872389d160a77dd2c9ebdf1b6cbc5d90272f2aedd66296535a | ||
DIST jenkins-bin-2.275.war 70809238 BLAKE2B 876d7215f55c80352336f4b3a8b47ff655930666e545bf81701c311e7b2ef756e9afbf286fdb8cc33d9dc64502dde3ec4d84c6b9c636d8503df79b8176ea8b9a SHA512 6c473e8d117ba99fa6a25820f0e0793f5b95f2d4c8ae2969c3e6c38fa076cbce91003d9d3e5c41c158a6d9ac69c192addbd3c0487af8b220878a1c08435b2a5a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 1999-2021 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-stable/${PV}/${PN/-bin/}.war -> ${P}.war" | ||
RESTRICT="mirror" | ||
SLOT="lts" | ||
KEYWORDS="~amd64 ~x86 ~amd64-linux" | ||
IUSE="" | ||
|
||
RDEPEND="media-fonts/dejavu | ||
media-libs/freetype | ||
!dev-util/jenkins-bin:0 | ||
>=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 | ||
} |