From e64fbdf42365f09b52113b1d1066a03987d4de7e Mon Sep 17 00:00:00 2001 From: "Markus M. May" Date: Wed, 4 Nov 2009 21:35:05 +0100 Subject: [PATCH] fixes IssueId #374 Initial commit of the Hudson stuff. It can be run, but there are still some minor issues, in that the whole package is run inside the /opt/hudson directory and no files are stored outside (e.g. logs and config-files). --- hudson/PKGBUILD | 9 +++++---- hudson/java-hudson.install | 46 ++++++++++++++++++++++++++++++++++++++++++++++ hudson/wrapper.conf | 2 +- 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 hudson/java-hudson.install diff --git a/hudson/PKGBUILD b/hudson/PKGBUILD index 5f15669..b4a890d 100644 --- a/hudson/PKGBUILD +++ b/hudson/PKGBUILD @@ -24,7 +24,7 @@ noextract=(hudson.war) md5sums=('5da579ffa3dd4c051fbd2a4f3ef63faa' '009ea0881c321108ab6bb64e33d758a3' - '4de4751327634a26809f8e892ca52485' + '9b03e60373363e3e3cdaee48a420098a' '4da54cb4116c2088951a2fac99e1af31') build() { @@ -37,6 +37,9 @@ build() { install -d $pkgdir/opt/hudson/bin/lib install -d $pkgdir/opt/hudson/lib install -d $pkgdir/opt/hudson/conf + install -d $pkgdir/opt/hudson/tmp + + install -d $pkgdir/etc/rc.d # prepare wrapper if [ $CARCH = 'x86_64' ]; then @@ -52,7 +55,5 @@ build() { install $srcdir/wrapper.conf $pkgdir/opt/hudson/conf install $srcdir/hudson $pkgdir/opt/hudson/bin - # copy the source to the final directory -# cp -a $srcdir/nexus-webapp-${pkgver}/* $pkgdir/opt/nexus || return 1 - + ln -s $pkgdir/opt/hudson/bin/hudson $pkgdir/etc/rc.d/hudson } diff --git a/hudson/java-hudson.install b/hudson/java-hudson.install new file mode 100644 index 0000000..205c43c --- /dev/null +++ b/hudson/java-hudson.install @@ -0,0 +1,46 @@ +#!/bin/sh +# $Id$ +# vim:set ts=2 sw=2 et: + +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + cat << EOF +>>> +>>> This package is part of the ArchLinux Development Stack, vist +>>> http://openpario.mime.oregonstate.edu:3000/projects/archdevstack for +>>> more information. +>>> Hudson can now be started via /opt/hudson/bin/hudson or via +>>> /etc/rc.d/hudson. +>>> Hudson is running by default on port 8070 and is bound to all interfaces, +>>> you can change this in the /opt/hudson/conf/wrapper.properties as well. +>>> For additional information please visit http://hudson-ci.org +EOF +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + /bin/true +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + diff --git a/hudson/wrapper.conf b/hudson/wrapper.conf index a5d3b24..f7101ed 100755 --- a/hudson/wrapper.conf +++ b/hudson/wrapper.conf @@ -20,7 +20,7 @@ wrapper.java.command=java # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. -wrapper.java.mainclass=org.tanukisoftware.wrapper.test.Main +wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 -- 2.11.4.GIT