aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-07 00:05:08 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-07 00:05:08 +0000
commit996780cf16f2fdac356d13f2ad657cc43c23dba6 (patch)
tree308ebf50129298a228a09d3d9262f503d84eec83 /testing
parent3bafc48a148673e0d53fa976d2a5d5c350c5094d (diff)
downloadaports-996780cf16f2fdac356d13f2ad657cc43c23dba6.tar.bz2
aports-996780cf16f2fdac356d13f2ad657cc43c23dba6.tar.xz
testing/jenkins: move to community
Diffstat (limited to 'testing')
-rw-r--r--testing/jenkins/APKBUILD44
-rw-r--r--testing/jenkins/jenkins.confd11
-rw-r--r--testing/jenkins/jenkins.initd53
-rw-r--r--testing/jenkins/jenkins.logrotate17
-rw-r--r--testing/jenkins/jenkins.pre-install5
5 files changed, 0 insertions, 130 deletions
diff --git a/testing/jenkins/APKBUILD b/testing/jenkins/APKBUILD
deleted file mode 100644
index 24cb1399ae..0000000000
--- a/testing/jenkins/APKBUILD
+++ /dev/null
@@ -1,44 +0,0 @@
-# Contributor: Francesco Colista <fcolista@alpinelinux.org>
-# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=jenkins
-pkgver=2.73.2
-pkgrel=0
-pkgdesc="Extendable continuous integration server (stable version)"
-url="https://jenkins.io"
-arch="noarch"
-license="MIT"
-depends="openjdk8 openjdk8-jre openjdk8-jre-base
- freetype ttf-dejavu xvfb fontconfig"
-install="$pkgname.pre-install"
-options="!check"
-pkgusers="$pkgname"
-pkggroups="$pkgname"
-source="jenkins-$pkgver.war::http://mirrors.jenkins.io/war-stable/$pkgver/$pkgname.war
- $pkgname.logrotate
- $pkgname.initd
- $pkgname.confd"
-builddir="$srcdir/"
-
-build() {
- cd "$builddir"
- return 0
-}
-
-package() {
- cd "$builddir"
- install -Dm755 "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname
- install -Dm644 "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname
- install -Dm755 "$srcdir"/$pkgname-$pkgver.war \
- "$pkgdir"/usr/share/webapps/jenkins/$pkgname.war
- install -Dm644 "$srcdir"/$pkgname.logrotate \
- "$pkgdir"/etc/logrotate.d/$pkgname
- mkdir -p "$pkgdir"/var/log/jenkins
- chown -R $pkgusers:$pkggroups "$pkgdir"/var/log/jenkins
-}
-
-sha512sums="36fe7d2581f9a2f13b07c43ac9d5915d057bfede3522a17abc9376f19656166586c207c7516f46df7b2cef46ec67444ec44a97df0fc9af50ff41e9938465cebf jenkins-2.73.2.war
-74423d3c66e2312eb3a1590e0582ccd82fc01b410d3bfc0627bef56fe6f4e7f4ea01a7a2d92a7a0c4870a1a1c48e911fe7eab3073e14db4910b52158182e5856 jenkins.logrotate
-43686a537248c7a0a8fe53c3ca9577c8ffb50a141248de028d398d0fd3b3be8562b6cb2c63b44b3b0ac58d6431e8907790553791b2e125d1bfc2e3263ffaa83e jenkins.initd
-7247750a13fc2537dc1e405f6d8221ccdc80cfbaf40c47327ee04c206afa8607ada52e7b895c8eb3489dd9f6a94b42b8b38110b3120948a35dc4f197fe4c08ed jenkins.confd"
diff --git a/testing/jenkins/jenkins.confd b/testing/jenkins/jenkins.confd
deleted file mode 100644
index 0a76a098f3..0000000000
--- a/testing/jenkins/jenkins.confd
+++ /dev/null
@@ -1,11 +0,0 @@
-JENKINS_HOME="/var/lib/jenkins"
-JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
-JENKINS_PORT="8080"
-JENKINS_DEBUG_LEVEL="5"
-JENKINS_ENABLE_ACCESS_LOG="no"
-JENKINS_HANDLER_MAX="100"
-JENKINS_HANDLER_IDLE="20"
-JENKINS_ARGS=""
-JENKINS_USER=jenkins
-JENKINS_PIDFILE="/var/run/jenkins.pid"
-JENKINS_WAR="/usr/share/webapps/jenkins/jenkins.war"
diff --git a/testing/jenkins/jenkins.initd b/testing/jenkins/jenkins.initd
deleted file mode 100644
index 7520edabbd..0000000000
--- a/testing/jenkins/jenkins.initd
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/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="/usr/lib/jvm/default-jvm"
- 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/testing/jenkins/jenkins.logrotate b/testing/jenkins/jenkins.logrotate
deleted file mode 100644
index 33b1660045..0000000000
--- a/testing/jenkins/jenkins.logrotate
+++ /dev/null
@@ -1,17 +0,0 @@
-/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/testing/jenkins/jenkins.pre-install b/testing/jenkins/jenkins.pre-install
deleted file mode 100644
index 4db91f860f..0000000000
--- a/testing/jenkins/jenkins.pre-install
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-addgroup -S jenkins 2>/dev/null
-adduser -S -D -h /var/lib/jenkins -s /sbin/nologin -G jenkins -g jenkins jenkins 2>/dev/null
-exit 0
-