diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/jenkins-bin | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/jenkins-bin')
-rw-r--r-- | dev-util/jenkins-bin/Manifest | 4 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate | 17 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.confd | 62 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.init2 | 52 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.service | 10 | ||||
-rw-r--r-- | dev-util/jenkins-bin/jenkins-bin-1.609.1.ebuild | 47 | ||||
-rw-r--r-- | dev-util/jenkins-bin/jenkins-bin-1.609.2.ebuild | 47 | ||||
-rw-r--r-- | dev-util/jenkins-bin/jenkins-bin-1.620.ebuild | 47 | ||||
-rw-r--r-- | dev-util/jenkins-bin/jenkins-bin-1.622.ebuild | 47 | ||||
-rw-r--r-- | dev-util/jenkins-bin/metadata.xml | 12 |
10 files changed, 345 insertions, 0 deletions
diff --git a/dev-util/jenkins-bin/Manifest b/dev-util/jenkins-bin/Manifest new file mode 100644 index 000000000000..e0ecc56e46cf --- /dev/null +++ b/dev-util/jenkins-bin/Manifest @@ -0,0 +1,4 @@ +DIST jenkins-bin-1.609.1.war 68908995 SHA256 7e150cc9dd3d9089d82fecbf5b1d0ffa5cc33782637338c418c324715e329bd5 SHA512 909496a0b3757c8187cf9bad6374ea4faf57979eafcd91d9793d57bcc3bfc7e821755fbc321a104b14acc2ddbd319c30e40cc52fb0456eeea4ad2f23d9d6ae1c WHIRLPOOL 951f2307d439c22b202082614b16df201b61ca0478eb2666aaba9a1140a6323eee3193dc38586c222424ea1d63431e8aee228523714837a5889f1703620ca932 +DIST jenkins-bin-1.609.2.war 68976099 SHA256 60e775b1d5df417370a1768496fa3ccc9d17f9a093bf87f543765f9d4e401578 SHA512 f8d58fc5d8bb094932823ec40e53ef71412c44de2a82478fbc53c9f87e724597ab5afcba79fb776e69a42dd66529f0c31e875fafc305d411533dfb33afeb1948 WHIRLPOOL 107f47e16f91d98119564545d4b6c078d343690da558c7080471d4f0e3633b954257c290cc85200500165e2f145e7742509a27aa82cf2c9ea279ef27af3461d6 +DIST jenkins-bin-1.620.war 63264175 SHA256 94f71bb1f08e73262ff40b412303b03558ba21ca106251d1ed1f77791f6ab728 SHA512 056d81a9a5cce862d37578ec5fbba3ba31a6987ce133d6421b2ed930b3d877fc5d022d32e7ed8cc1be794938ae559cd9bb5abb2890353b16e9e32634733c8605 WHIRLPOOL 731e612d52e3aa0d6ca9c250ec98e06047adc00b23c7b27adc80df7e136e782c61185d8d4b2d53e3442154255b2e7b25f1577538daa39d76c9682c31d95da608 +DIST jenkins-bin-1.622.war 62881823 SHA256 e219546e9db0bdf913ceee04ab3f79fcbbb27ac7ca27619d184b82f93457b899 SHA512 7ff6be395527dc3f512ad8fb1c1d8a5294aac9108ead851e7a8479cac58ab9b2ee28e0c0f87a70896be62096e92cdb8843d529d62ac73ce22a23f259a7106368 WHIRLPOOL b29ed678c8da5a1004a54b3cd3e7e93c4d9a7bcf834670d01d7a347ec7f102f4ebe0894753bd98a6dc6badd8a69c909b05826c68d928bafa59387b8c4017670b diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate b/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate new file mode 100644 index 000000000000..33b16600452e --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate @@ -0,0 +1,17 @@ +/var/log/jenkins/jenkins.log /var/log/jenkins/access_log { + compress + dateext + maxage 365 + rotate 99 + size=+4096k + notifempty + missingok + create 644 + postrotate + [ -r /etc/conf.d/jenkins ] && . /etc/conf.d/jenkins + if [ -s /var/run/jenkins.pid ]; then + JPID=$(cat /var/run/jenkins.pid) + test -n "$(find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null)" && kill -s ALRM $JPID || : + fi + endscript +} diff --git a/dev-util/jenkins-bin/files/jenkins-bin.confd b/dev-util/jenkins-bin/files/jenkins-bin.confd new file mode 100644 index 000000000000..f84e3463e359 --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin.confd @@ -0,0 +1,62 @@ +# 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" + +# +# Maximum number of HTTP worker threads. +# +JENKINS_HANDLER_MAX="100" + +# +# Maximum number of idle HTTP worker threads. +# +JENKINS_HANDLER_IDLE="20" + +# +# 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.init2 b/dev-util/jenkins-bin/files/jenkins-bin.init2 new file mode 100644 index 000000000000..9e326a569350 --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin.init2 @@ -0,0 +1,52 @@ +#!/sbin/runscript + +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_HANDLER_MAX" ] && PARAMS="$PARAMS --handlerCountMax=$JENKINS_HANDLER_MAX" + [ -n "$JENKINS_HANDLER_IDLE" ] && PARAMS="$PARAMS --handlerCountMaxIdle=$JENKINS_HANDLER_IDLE" + [ -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.service b/dev-util/jenkins-bin/files/jenkins-bin.service new file mode 100644 index 000000000000..5edaac7da40a --- /dev/null +++ b/dev-util/jenkins-bin/files/jenkins-bin.service @@ -0,0 +1,10 @@ +[Unit] +Description=Jenkins Daemon + +[Service] +Type=forking +ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log +User=jenkins + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/jenkins-bin/jenkins-bin-1.609.1.ebuild b/dev-util/jenkins-bin/jenkins-bin-1.609.1.ebuild new file mode 100644 index 000000000000..b3839a98bae8 --- /dev/null +++ b/dev-util/jenkins-bin/jenkins-bin-1.609.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 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-stable/${PV}/${PN/-bin/}.war -> ${P}.war" +RESTRICT="mirror" +SLOT="lts" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-fonts/dejavu + media-libs/freetype + !dev-util/jenkins-bin:0 + virtual/jre" + +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 +} diff --git a/dev-util/jenkins-bin/jenkins-bin-1.609.2.ebuild b/dev-util/jenkins-bin/jenkins-bin-1.609.2.ebuild new file mode 100644 index 000000000000..b3839a98bae8 --- /dev/null +++ b/dev-util/jenkins-bin/jenkins-bin-1.609.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 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-stable/${PV}/${PN/-bin/}.war -> ${P}.war" +RESTRICT="mirror" +SLOT="lts" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-fonts/dejavu + media-libs/freetype + !dev-util/jenkins-bin:0 + virtual/jre" + +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 +} diff --git a/dev-util/jenkins-bin/jenkins-bin-1.620.ebuild b/dev-util/jenkins-bin/jenkins-bin-1.620.ebuild new file mode 100644 index 000000000000..37fc08477727 --- /dev/null +++ b/dev-util/jenkins-bin/jenkins-bin-1.620.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 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 +} diff --git a/dev-util/jenkins-bin/jenkins-bin-1.622.ebuild b/dev-util/jenkins-bin/jenkins-bin-1.622.ebuild new file mode 100644 index 000000000000..37fc08477727 --- /dev/null +++ b/dev-util/jenkins-bin/jenkins-bin-1.622.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 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 +} diff --git a/dev-util/jenkins-bin/metadata.xml b/dev-util/jenkins-bin/metadata.xml new file mode 100644 index 000000000000..858224bb4838 --- /dev/null +++ b/dev-util/jenkins-bin/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata> |