Skip to content

Commit

Permalink
Merge from vendor branch FIX_VENDOR:
Browse files Browse the repository at this point in the history
Import Jenkins, community fork of Hudson, looks ok to sthen@
  • Loading branch information
IanDarwin committed Mar 25, 2011
2 parents ec82826 + 75f7415 commit 8996e27
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 0 deletions.
45 changes: 45 additions & 0 deletions devel/jenkins/Makefile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

# 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 <bsd.port.mk>
5 changes: 5 additions & 0 deletions devel/jenkins/distinfo
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions devel/jenkins/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 14 additions & 0 deletions devel/jenkins/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions devel/jenkins/pkg/README
Original file line number Diff line number Diff line change
@@ -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".
12 changes: 12 additions & 0 deletions devel/jenkins/pkg/SECURITY
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions devel/jenkins/pkg/jenkins.rc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8996e27

Please sign in to comment.