jenkins-bin-2.32.2.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit user systemd
  5. DESCRIPTION="Extensible continuous integration server"
  6. HOMEPAGE="http://jenkins-ci.org/"
  7. LICENSE="MIT"
  8. SRC_URI="http://mirrors.jenkins-ci.org/war-stable/${PV}/${PN/-bin/}.war -> ${P}.war"
  9. RESTRICT="mirror"
  10. SLOT="lts"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux"
  12. IUSE=""
  13. RDEPEND="media-fonts/dejavu
  14. media-libs/freetype
  15. !dev-util/jenkins-bin:0
  16. >=virtual/jre-1.7.0"
  17. S=${WORKDIR}
  18. JENKINS_DIR=/var/lib/jenkins
  19. pkg_setup() {
  20. enewgroup jenkins
  21. enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
  22. }
  23. src_install() {
  24. keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
  25. insinto /opt/jenkins
  26. newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
  27. insinto /etc/logrotate.d
  28. newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
  29. newinitd "${FILESDIR}"/${PN}.init2 jenkins
  30. newconfd "${FILESDIR}"/${PN}.confd jenkins
  31. systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
  32. fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
  33. }