From 75f7415ee2df5df783fe7ea1166d073a0cd42a9d Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Fri, 25 Mar 2011 19:40:39 +0000 Subject: [PATCH] Import Jenkins, community fork of Hudson, looks ok to sthen@ --- devel/jenkins/Makefile | 45 ++++++++++++++++++++++++++++++++++++ devel/jenkins/distinfo | 5 ++++ devel/jenkins/pkg/DESCR | 6 +++++ devel/jenkins/pkg/PLIST | 14 +++++++++++ devel/jenkins/pkg/README | 22 ++++++++++++++++++ devel/jenkins/pkg/SECURITY | 12 ++++++++++ devel/jenkins/pkg/jenkins.rc | 15 ++++++++++++ 7 files changed, 119 insertions(+) create mode 100644 devel/jenkins/Makefile create mode 100644 devel/jenkins/distinfo create mode 100644 devel/jenkins/pkg/DESCR create mode 100644 devel/jenkins/pkg/PLIST create mode 100644 devel/jenkins/pkg/README create mode 100644 devel/jenkins/pkg/SECURITY create mode 100644 devel/jenkins/pkg/jenkins.rc diff --git a/devel/jenkins/Makefile b/devel/jenkins/Makefile new file mode 100644 index 0000000000..dbef28074c --- /dev/null +++ b/devel/jenkins/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2011/03/25 19:40:39 ian Exp $ + +COMMENT = continuous integration server + +VERSION = 1.401 +DISTNAME = jenkins +PKGNAME = jenkins-${VERSION} +DIST_SUBDIR = jenkins-${VERSION} + +CATEGORIES = devel + +HOMEPAGE = http://jenkins-ci.org/ + +MAINTAINER= Ian Darwin + +# Code under MIT license, Artwork under Creative Commons +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MASTER_SITES = http://mirrors.jenkins-ci.org/war/${VERSION}/ +EXTRACT_ONLY = +EXTRACT_SUFX = .war + +MODULES = java +MODJAVA_VER = 1.6+ +MODJAVA_JRE = yes + +RUN_DEPENDS = java/javaPathHelper + +NO_BUILD = Yes +NO_REGRESS = Yes + +HOMEDIR = /var/jenkins +WARDIR = ${PREFIX}/share/jenkins +BINDIR = ${PREFIX}/bin + +SUBST_VARS += HOMEDIR + +do-install: + ${INSTALL_DATA_DIR} ${WARDIR} + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/jenkins.war ${WARDIR} + +.include diff --git a/devel/jenkins/distinfo b/devel/jenkins/distinfo new file mode 100644 index 0000000000..e8625ab402 --- /dev/null +++ b/devel/jenkins/distinfo @@ -0,0 +1,5 @@ +MD5 (jenkins-1.401/jenkins.war) = QbLrYN3yMbuLRbpS8cCxDw== +RMD160 (jenkins-1.401/jenkins.war) = fkUbnznYHBuJezZPQG7kfG/RLwE= +SHA1 (jenkins-1.401/jenkins.war) = I8cdtlcniajhaDMpuEr1vFOayT4= +SHA256 (jenkins-1.401/jenkins.war) = ZJpOqGvyYRa1e/aK4OwDVThZzIgy7+J82Xm7yMfAx6c= +SIZE (jenkins-1.401/jenkins.war) = 36652345 diff --git a/devel/jenkins/pkg/DESCR b/devel/jenkins/pkg/DESCR new file mode 100644 index 0000000000..5d9177e2e7 --- /dev/null +++ b/devel/jenkins/pkg/DESCR @@ -0,0 +1,6 @@ +Jenkins is a community continuation of Hudson, the continuous +integration (CI) server (for information on CI see +http://www.martinfowler.com/articles/continuousIntegration.html). +Written in Java and with a web-based configuration interface, Jenkins +can be run standalone (contains its own tiny web server) or in any +standard Java-capable web server or application server. diff --git a/devel/jenkins/pkg/PLIST b/devel/jenkins/pkg/PLIST new file mode 100644 index 0000000000..79c42816de --- /dev/null +++ b/devel/jenkins/pkg/PLIST @@ -0,0 +1,14 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/25 19:40:39 ian Exp $ +@conflict hudson-* +@newgroup _jenkins:666 +@newuser _jenkins:666:_jenkins:daemon:Jenkins Account:${HOMEDIR}:/sbin/nologin +@extraunexec rm -rf ${HOMEDIR} +@owner _jenkins +@group _jenkins +@sample ${HOMEDIR}/ +@owner +@group +share/doc/pkg-readmes/${FULLPKGNAME} +share/jenkins/ +share/jenkins/jenkins.war +@rcscript ${RCDIR}/jenkins diff --git a/devel/jenkins/pkg/README b/devel/jenkins/pkg/README new file mode 100644 index 0000000000..1460e793e0 --- /dev/null +++ b/devel/jenkins/pkg/README @@ -0,0 +1,22 @@ +$OpenBSD: README,v 1.1.1.1 2011/03/25 19:40:39 ian Exp $ + +Running Jenkins on OpenBSD. + +To arrange for the standalone Jenkins server to run automatically +on reboot, add "jenkins" to "rc_scripts" in /etc/rc.conf.local, e.g.: + +rc_scripts="${rc_scripts} jenkins" + +NOTE: This script runs Jenkins on port 8000, not 8080, since most +Java application servers run on port 8080. + +To run Jenkins in another Java web/application server, copy the war +file from ${TRUEPREFIX}/share/jenkins to your server's deploy +directory, or read more at ${HOMEPAGE}. + +To use the email notifications, you will have to configure a valid +sending address (and SMTP server, if not localhost) under +Manage Jenkins -> Email Configuration. + +The Jenkins data files are in the home directory (/var/jenkins), +under the "hidden" directory ".jenkins". diff --git a/devel/jenkins/pkg/SECURITY b/devel/jenkins/pkg/SECURITY new file mode 100644 index 0000000000..4cfaf903dd --- /dev/null +++ b/devel/jenkins/pkg/SECURITY @@ -0,0 +1,12 @@ +Jenkins runs external processes such as CVS, Ant, Make and so on, +whose path is configurable from the web menu system. + +Please make very sure to enable login restriction under Manage +Jenkins -> Enable Security if your server is reachable from any +(untrusted) network! If you only run it on localhost, be sure to +block access to the HTTP port using pf(8). + +Take these steps before you start the server the first time! + +See more information at +http://wiki.jenkins-ci.org/display/JENKINS/Securing+Jenkins diff --git a/devel/jenkins/pkg/jenkins.rc b/devel/jenkins/pkg/jenkins.rc new file mode 100644 index 0000000000..8a4395755c --- /dev/null +++ b/devel/jenkins/pkg/jenkins.rc @@ -0,0 +1,15 @@ +#!/bin/sh + +JENKINS_HOME=/var/jenkins +PORT=8000 + +daemon=$(${TRUEPREFIX}/bin/javaPathHelper -c jenkins) +daemon_flags="-jar ${TRUEPREFIX}/share/jenkins/jenkins.war --httpPort=${PORT}" +daemon_user="_jenkins" + +. /etc/rc.d/rc.subr + +rc_bg=YES +rc_reload=NO + +rc_cmd $1