[dev-util/jenkins-bin] initial version
This commit is contained in:
parent
0fc737b673
commit
87478686bb
6
dev-util/jenkins-bin/Manifest
Normal file
6
dev-util/jenkins-bin/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
AUX conf 852 SHA256 48a12f86c8c7f425060a6b7e324ff2d41b3fbe72532904f991b8d20fa5a63113 SHA512 d19c21a18ab24d1fadbbc321f457f6b8379351a5086a1863d3d4db3a2884bf55dfb212d6c3967f6a15c0b72766d2760b5c19d4bec5ce2e2748615c84c0964157 WHIRLPOOL 1947d1f28c351867bbf8bd5952cd4fc0fc088523fbc858c5a49a75199a740fa89d4aed0f4ebbb432507704c2e02ed96248f5fb9e75ef25e2b0ca90bd1c7d1d6b
|
||||||
|
AUX init.sh 1793 SHA256 5bed163264d95d68c32ea8e4217c3000689cb7714ebde8a4c5305d76ca57e7be SHA512 ea0765af3ca6220a2543b8d64f1e2c095ef66ad31c3498279f6b798db57b4fe124f030c783b90d7169068c6fb69178eee1531b157a2239efc36b6f61477ea44d WHIRLPOOL 63025ab948e8fc953511b93a045734f9156a806d216466a0b429e4e6166c643563830fa175f637551ba2d0a0131b029315a30bd321913aeeda5ecb2aa3479fd9
|
||||||
|
DIST jenkins_1.532.2_all.deb 57948524 SHA256 cf418ce0a8ddfe5570f79f43595acb0cd474f70def224bd9d6959be2fa0a6da7 SHA512 35dc4a40502d20b99afcd5161de1443aaa3fccbd8d776f6626419bf440b36d6e0ee4928678b80f3df4f7c19c0de3440dbf2feab11e6f88aff07c8097181a38e4 WHIRLPOOL fbbd91cdc026b6cdca0bcf7706e16641365b1520326b0f4721c0cad8e28357169b92d21f060779602678772a151c37583165db5afe52a298625e34ee33153eea
|
||||||
|
DIST jenkins_1.555_all.deb 61170448 SHA256 2cc042323503d6ae191cc90007140eafcc818f528211e680a6be3d77a8ce2db2 SHA512 8bb395f7d48736bddd5158b8f4beae86e00a51baf0655f39f15e289e0a0f2e2a0db2a45f3318e227904e368acaa809d3f65facd6619913fbb47f4c08bb6f1c52 WHIRLPOOL c16da19c36195fba0b96f75585cbf3ad0ce43be23c65b25f67eb85bcd1202f8cb7c9b132ffeda524c6718565f1c3bef45224f24f8d656a84f8dc8bcdfaa297ec
|
||||||
|
EBUILD jenkins-bin-1.532.2.ebuild 991 SHA256 2f12cc63c438f0472d6f81d8b23f4cf8e27724df6286766cc9473170f361af6d SHA512 cb10f448fcd05c702757bf8a836fc81759e11a9fef97eb3815a43113353edc616b582aaafaf57c2e65865c5a17924fedb833c2f025e44704c5bfa021fea69d94 WHIRLPOOL 43909400559e01ed4e6dfd968ad19720afa001dd29bc870f83a3779e56c5e1eb5fdeac9bfbbda69c9f283aee4cbb842c9f86f3494b30520b5d2eec00b7505a89
|
||||||
|
EBUILD jenkins-bin-1.555.ebuild 986 SHA256 da813e1ee1d984e9209479fa1c3073f36901e76833ef8d301a41c04894981855 SHA512 b6659c3e816c8e5a19b746a13b7505aa68bb3d4f0515f5f4a03d06bb5151a29e16132aa4cca22eb10dbe1209c859c9a5664257e1cb9780745020598e7976715d WHIRLPOOL 9b71b7b32cb88efb79cce2abc10fedf9e8528e66af43f23b53ef9b972b336bee9341410857e71da73b005e57f771607faa537afc2831225af67f0a52e7b2527a
|
45
dev-util/jenkins-bin/files/conf
Normal file
45
dev-util/jenkins-bin/files/conf
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# 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=""
|
59
dev-util/jenkins-bin/files/init.sh
Normal file
59
dev-util/jenkins-bin/files/init.sh
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#!/sbin/runscript
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
use dns logger mysql postgresql
|
||||||
|
}
|
||||||
|
|
||||||
|
JENKINS_PIDFILE=/run/jenkins/jenkins.pid
|
||||||
|
JENKINS_WAR=/usr/lib/jenkins/jenkins.war
|
||||||
|
|
||||||
|
RUN_AS=jenkins
|
||||||
|
|
||||||
|
checkconfig() {
|
||||||
|
if [ ! -n "$JENKINS_HOME" ] ; then
|
||||||
|
eerror "JENKINS_HOME not configured"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
if [ ! -d "$JENKINS_HOME" ] ; then
|
||||||
|
eerror "JENKINS_HOME directory does not exist: $JENKINS_HOME"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
checkconfig || return 1
|
||||||
|
|
||||||
|
[ -d /var/run/jenkins ] || mkdir /var/run/jenkins
|
||||||
|
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 $RUN_AS \
|
||||||
|
--exec "${COMMAND}" -- $JAVA_PARAMS $PARAMS
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
ebegin "Stopping ${SVCNAME}"
|
||||||
|
start-stop-daemon --stop --quiet --pidfile $JENKINS_PIDFILE
|
||||||
|
eend $?
|
||||||
|
}
|
44
dev-util/jenkins-bin/jenkins-bin-1.532.2.ebuild
Normal file
44
dev-util/jenkins-bin/jenkins-bin-1.532.2.ebuild
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit java-pkg-2 unpacker user
|
||||||
|
|
||||||
|
DESCRIPTION="Extensible continuous integration server"
|
||||||
|
HOMEPAGE="http://jenkins-ci.org/"
|
||||||
|
SRC_URI="http://pkg.jenkins-ci.org/debian-stable/binary/jenkins_${PV}_all.deb"
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="x86 amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="media-fonts/dejavu"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
>=virtual/jdk-1.6"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup jenkins
|
||||||
|
enewuser jenkins -1 /bin/bash /var/lib/jenkins jenkins
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
keepdir /var/log/jenkins
|
||||||
|
keepdir /var/lib/jenkins/home /var/lib/jenkins/backup
|
||||||
|
|
||||||
|
insinto /usr/lib/jenkins
|
||||||
|
doins usr/share/jenkins/jenkins.war
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/init.sh" jenkins
|
||||||
|
newconfd "${FILESDIR}/conf" jenkins
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
doins etc/logrotate.d/jenkins
|
||||||
|
|
||||||
|
fowners jenkins:jenkins /var/log/jenkins /var/lib/jenkins /var/lib/jenkins/home /var/lib/jenkins/backup
|
||||||
|
}
|
44
dev-util/jenkins-bin/jenkins-bin-1.555.ebuild
Normal file
44
dev-util/jenkins-bin/jenkins-bin-1.555.ebuild
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit java-pkg-2 unpacker user
|
||||||
|
|
||||||
|
DESCRIPTION="Extensible continuous integration server"
|
||||||
|
HOMEPAGE="http://jenkins-ci.org/"
|
||||||
|
SRC_URI="http://pkg.jenkins-ci.org/debian/binary/jenkins_${PV}_all.deb"
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~x86 ~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="media-fonts/dejavu"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
>=virtual/jdk-1.6"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup jenkins
|
||||||
|
enewuser jenkins -1 /bin/bash /var/lib/jenkins jenkins
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
keepdir /var/log/jenkins
|
||||||
|
keepdir /var/lib/jenkins/home /var/lib/jenkins/backup
|
||||||
|
|
||||||
|
insinto /usr/lib/jenkins
|
||||||
|
doins usr/share/jenkins/jenkins.war
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/init.sh" jenkins
|
||||||
|
newconfd "${FILESDIR}/conf" jenkins
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
doins etc/logrotate.d/jenkins
|
||||||
|
|
||||||
|
fowners jenkins:jenkins /var/log/jenkins /var/lib/jenkins /var/lib/jenkins/home /var/lib/jenkins/backup
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user