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-2.2.27
- Loading branch information
Showing
2 changed files
with
48 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,3 +1,4 @@ | ||
DIST jenkins-bin-1.625.3.war 63322455 SHA256 9964b10581414b5504921dd8a717b172c07bcdf5f9d1bae50595aca07ddacf20 SHA512 daa739c902d417949dd348780fe4c3d088d64917231273083638bbfe87a47c69007669298175d5bc60623aa7bb6c3ce19c250764b6108ae026e0622d968a3b26 WHIRLPOOL da0e99183bb22ef4b1475acd840c67c3d0e2cc2f3d998340ea0d6cbb0ce4cc4e26d60871d65aaf08d9af0026b51152274640c485592e6cb36cd95813848eddc6 | ||
DIST jenkins-bin-1.643.war 63664108 SHA256 b8c6387e56d04a0a4a7ec8d9dacd379fbd5d4001d01fdfcd443f9864809f9293 SHA512 a39c123b9ea9d5da64b9b1e6dde5987bc3968024bd17465aead3c037eef3e9a61e87dd360b77ba8eea30f4dde7db34a55a6a222a924a327e549148d7034d747f WHIRLPOOL f3ab5d4252a679740ba7517e357507e50efe1c8e1bb9576c8046e12bfc0ce9d7212ade685ecbded85356d16c133a61730f1eaa2926c51cd0dffa006872dff266 | ||
DIST jenkins-bin-1.644.war 63665223 SHA256 f4fe9c1faa682cbfa8dc6e7f3e64d78897dcb7332e8f513f12a3b845e3922eb0 SHA512 8a94569372048587af6cf763cd4aa2566413a9fca9adb868f874ccb4258b4c68548210d1f11d2f051785233355300649a3f376a3b338b742b2ef62e05f92b58e WHIRLPOOL 7a9e97469be7372048595825ed4679911d7ef1e044fa21855ef41559e5d4e8ecd42340c4d303e49a4f0212f1cc7055a0b933986ddc112b5a2768afbaba2a8b92 | ||
DIST jenkins-bin-1.645.war 63350272 SHA256 9ea1b6bc4fcdd930cdbfa3a3e97b4d923f68f7542b6978d090efbd4c38d69951 SHA512 684b6e86db19afc8fe92b2eb1d174623fbac74e446f28d2c62fb08db15549bf1fc15a86290b8e14bd1af64074fa08882125306eaea7e94ae88bdb589255167de WHIRLPOOL e2c24eef01c252f14d960f8edba2da55caa256b1128b2cd5093b9dee92ec6fc36802bca67ebdc22c939bf0a46a54b01cac4d87cb45c64a1ed70d7fade73b8eaf |
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,47 @@ | ||
# Copyright 1999-2016 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 | ||
} |