diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-03-23 08:14:30 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-03-23 08:17:04 +0100 |
commit | f856067f2677a2a3a2eee5314ef460ebbfdb1987 (patch) | |
tree | c89cfd744ad011153f439e9266fa664e5ef8e88a /dev-util/jenkins-bin | |
parent | app-emacs/emacs-ccls: fix maintainer metadata name (diff) | |
download | gentoo-f856067f2677a2a3a2eee5314ef460ebbfdb1987.tar.gz gentoo-f856067f2677a2a3a2eee5314ef460ebbfdb1987.tar.bz2 gentoo-f856067f2677a2a3a2eee5314ef460ebbfdb1987.zip |
dev-util/jenkins-bin: fix logrotate for 2.387.x
Upstream removed support for SIGALRM in favor of using copytruncate.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-util/jenkins-bin')
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin-r3.logrotate | 11 | ||||
-rw-r--r-- | dev-util/jenkins-bin/jenkins-bin-2.387.1-r1.ebuild | 45 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r3.logrotate b/dev-util/jenkins-bin/files/jenkins-bin-r3.logrotate new file mode 100644 index 000000000000..4839e682c69e --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin-r3.logrotate @@ -0,0 +1,11 @@ +/var/log/jenkins/jenkins.log /var/log/jenkins/access_log { + compress + dateext + maxage 365 + rotate 99 + size 4M + notifempty + missingok + create 644 + copytruncate +} diff --git a/dev-util/jenkins-bin/jenkins-bin-2.387.1-r1.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.387.1-r1.ebuild new file mode 100644 index 000000000000..a6cffe5d8277 --- /dev/null +++ b/dev-util/jenkins-bin/jenkins-bin-2.387.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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" +SLOT="lts" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux" +IUSE="" + +DEPEND="acct-group/jenkins + acct-user/jenkins" + +RDEPEND="acct-group/jenkins + acct-user/jenkins + media-fonts/dejavu + media-libs/freetype + !dev-util/jenkins-bin:0 + || ( virtual/jre:17 virtual/jre:11 )" + +S="${WORKDIR}" + +src_install() { + local JENKINS_DIR=/var/lib/jenkins + + 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}-r3.logrotate ${PN/-bin/} + + newinitd "${FILESDIR}"/${PN}-r3.init jenkins + newconfd "${FILESDIR}"/${PN}-r1.confd jenkins + + systemd_newunit "${FILESDIR}"/${PN}-r4.service jenkins.service + + fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup +} |