summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-02 09:29:29 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-02 09:30:08 +0100
commit646c77d1dc71d7858ba32412c9edaab9abb8b620 (patch)
treeb82477c3489b2815bc9532ec854e0068cf3ddb85 /dev-util/jenkins-bin
parentdev-util/jenkins-bin: drop 2.361.1, 2.361.2 (diff)
downloadgentoo-646c77d1dc71d7858ba32412c9edaab9abb8b620.tar.gz
gentoo-646c77d1dc71d7858ba32412c9edaab9abb8b620.tar.bz2
gentoo-646c77d1dc71d7858ba32412c9edaab9abb8b620.zip
dev-util/jenkins-bin: add 2.375, 2.375.1
Closes: https://bugs.gentoo.org/883963 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-util/jenkins-bin')
-rw-r--r--dev-util/jenkins-bin/Manifest2
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin-r1.confd52
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin-r3.init50
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin-r3.service2
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin-r4.service11
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.375.1.ebuild45
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.375.ebuild45
7 files changed, 206 insertions, 1 deletions
diff --git a/dev-util/jenkins-bin/Manifest b/dev-util/jenkins-bin/Manifest
index 440d8decc692..7cdb4adb16e2 100644
--- a/dev-util/jenkins-bin/Manifest
+++ b/dev-util/jenkins-bin/Manifest
@@ -1,3 +1,5 @@
DIST jenkins-bin-2.361.3.war 93501786 BLAKE2B 36c5bafd70689603b84ad5ca86b407778b1bf686ea57d4d96566d5dcd22fa7e23f47d9f38048ec6cdf192e839f7588108c221625a94da687d8e74c079cbd1cc4 SHA512 3d0d9ad8c38a514789a8e074f3055e2ba6c8781cf333b95dd74f861011acd8d49ef3c4151f3c2646aba9007d6475304e31a85b39daaa7bb4c955beb2373c64f8
DIST jenkins-bin-2.361.4.war 93501813 BLAKE2B 92decc0eb48ec1bbb7acf4d6e0ce568bd793c3f45cb6f68673db041ff029fddce014217f269b36645db7f2f3bac614fd3ef7de8ccc4a57bc697b28e776298bbe SHA512 ad4b91acf79ca156e456ddfefb5ac6290263aeebf16780bf886a0b1fde27e208e2ed61d45268fb7f5a74549fcf362439f819f616e916520b211f85d015753f53
DIST jenkins-bin-2.363.war 93462629 BLAKE2B 7c35594bc03dfd97e93f75b7e05389919ee1634ec2e3a1a4934a2f6215de2420652aaed79ebcde5e7ce9a5e2d8ed7d9495e36f3ee77bcbf6a6d996c2a767c7bb SHA512 4b6207fbd166f6c336181ff224b717b154fbd97a4899e86b94b8e5f3b26d53bb2e3742086a839774edbf6fd56a1d037b14e455474fca7d6f189bb9591b42168c
+DIST jenkins-bin-2.375.1.war 93555446 BLAKE2B 23fcc5d1faa438ac6a9b20b0dc5ed2b2475e87996b8bb604c2ad1214c2d9e528f5b2fdbbfc3fc7226d9c008f4120d8bd3d831dcb6c878ecd0031817787a2d9d0 SHA512 dc7bb525b222f0fd0216304c97b8a1e84fb6c1bafbea46e83261e9db0c8cf4378fd9b621822667eaaa627d970c5e7fd88cd1b6706f1dc478d2b0fc7b9629369f
+DIST jenkins-bin-2.375.war 93552663 BLAKE2B 5a84efee01a15067a0e963f992ee4cc4a3773419c0dbe5d834e2a220f1b8e39f918526f1ccab2a0c10c77609b07e5a33b45d8cdd152b352a9ca37f670f4b4b65 SHA512 9ffdbbb53e6156f5d7c77a8db9a3969834b912e89d22580bb7502c94c6a7898a303500f4a5071c3d16253f2141495c2c57c3c2c1fb56a91e6c48549faa7d4f5b
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r1.confd b/dev-util/jenkins-bin/files/jenkins-bin-r1.confd
new file mode 100644
index 000000000000..6bb38f3e6ce3
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin-r1.confd
@@ -0,0 +1,52 @@
+# Config file for /etc/init.d/jenkins
+
+#
+# Directory where Jenkins store its configuration and working
+# files (checkouts, build reports, artifacts, ...).
+#
+JENKINS_HOME="/var/lib/jenkins/home"
+
+#
+# Options to pass to java when running Jenkins.
+#
+JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
+
+#
+# Port Jenkins is listening on.
+#
+JENKINS_PORT="8080"
+
+#
+# Debug level for logs -- the higher the value, the more verbose.
+# 5 is INFO.
+#
+JENKINS_DEBUG_LEVEL="5"
+
+#
+# Whether to enable access logging or not.
+#
+JENKINS_ENABLE_ACCESS_LOG="no"
+
+#
+# Pass arbitrary arguments to Jenkins.
+# Eg.: --httpListenAddress=127.0.0.1 --prefix=/jenkins
+# Full option list: java -jar jenkins.war --help
+#
+JENKINS_ARGS=""
+
+#
+# User
+#
+JENKINS_USER=jenkins
+
+
+
+#
+# Pid File
+#
+JENKINS_PIDFILE="/var/run/jenkins.pid"
+
+#
+# War File
+#
+JENKINS_WAR="/opt/jenkins/jenkins.war"
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r3.init b/dev-util/jenkins-bin/files/jenkins-bin-r3.init
new file mode 100644
index 000000000000..96ddbc1fd421
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin-r3.init
@@ -0,0 +1,50 @@
+#!/sbin/openrc-run
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+checkconfig() {
+ if [ ! -n "$JENKINS_HOME" ] ; then
+ eerror "JENKINS_HOME not configured"
+ return 1
+ fi
+ if [ ! -d "$JENKINS_HOME" ] ; then
+ checkpath -q -d -o jenkins:jenkins -m 0755 "$JENKINS_HOME" || return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ JAVA_HOME=`java-config --jre-home`
+ COMMAND=$JAVA_HOME/bin/java
+
+ JAVA_PARAMS="$JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR"
+
+ # Don't use --daemon here, because in this case stop will not work
+ PARAMS="--logfile=/var/log/jenkins/jenkins.log"
+ [ -n "$JENKINS_PORT" ] && PARAMS="$PARAMS --httpPort=$JENKINS_PORT"
+ [ -n "$JENKINS_DEBUG_LEVEL" ] && PARAMS="$PARAMS --debug=$JENKINS_DEBUG_LEVEL"
+ [ -n "$JENKINS_HANDLER_STARTUP" ] && PARAMS="$PARAMS --handlerCountStartup=$JENKINS_HANDLER_STARTUP"
+ [ -n "$JENKINS_ARGS" ] && PARAMS="$PARAMS $JENKINS_ARGS"
+
+ if [ "$JENKINS_ENABLE_ACCESS_LOG" = "yes" ]; then
+ PARAMS="$PARAMS --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log"
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile $JENKINS_PIDFILE \
+ --user ${JENKINS_USER} \
+ --exec "${COMMAND}" -- $JAVA_PARAMS $PARAMS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile $JENKINS_PIDFILE
+ eend $?
+}
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r3.service b/dev-util/jenkins-bin/files/jenkins-bin-r3.service
index 520a052f43f1..dfe0d174f365 100644
--- a/dev-util/jenkins-bin/files/jenkins-bin-r3.service
+++ b/dev-util/jenkins-bin/files/jenkins-bin-r3.service
@@ -4,7 +4,7 @@ Description=Jenkins Daemon
[Service]
EnvironmentFile=/etc/conf.d/jenkins
Type=simple
-ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -DJENKINS_HOME=${JENKINS_HOME} -jar ${JENKINS_WAR} --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=${JENKINS_PORT} --debug=${JENKINS_DEBUG_LEVEL} --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log ${JENKINS_ARGS}
+ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -DJENKINS_HOME=${JENKINS_HOME} -jar ${JENKINS_WAR} --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=${JENKINS_PORT} --debug=${JENKINS_DEBUG_LEVEL} --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log ${JENKINS_ARGS}
User=jenkins
[Install]
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r4.service b/dev-util/jenkins-bin/files/jenkins-bin-r4.service
new file mode 100644
index 000000000000..520a052f43f1
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin-r4.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Jenkins Daemon
+
+[Service]
+EnvironmentFile=/etc/conf.d/jenkins
+Type=simple
+ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -DJENKINS_HOME=${JENKINS_HOME} -jar ${JENKINS_WAR} --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=${JENKINS_PORT} --debug=${JENKINS_DEBUG_LEVEL} --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log ${JENKINS_ARGS}
+User=jenkins
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.375.1.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.375.1.ebuild
new file mode 100644
index 000000000000..b3ee52691487
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.375.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 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}-r2.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
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.375.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.375.ebuild
new file mode 100644
index 000000000000..76690ca69050
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.375.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 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/${PV}/${PN/-bin/}.war -> ${P}.war"
+SLOT="0"
+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:lts
+ || ( 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}-r2.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
+}