1 # Maintainer: Kim Silkebækken <kim.silkebaekken+archlinux@gmail.com>
2 # Contributor: Spider.007 <archPackage@spider007.net>
4 pkgname=cruisecontrol-bin
7 pkgdesc="A continuous integration tool and an extensible framework for creating a custom continuous build process."
9 url="http://sourceforge.net/projects/cruisecontrol/"
11 depends=("java-environment>=5")
12 install=${pkgname}.install
13 source=("http://downloads.sourceforge.net/project/cruisecontrol/CruiseControl/${pkgver}/cruisecontrol-bin-${pkgver}.zip"
15 md5sums=('8446c68c4df726dcb53e96bd3acf077a'
16 '4e38d34d62bfb6ae854e1f530846c683')
20 install -d ${pkgdir}/{opt,var/{log,run},etc/rc.d}
23 install -D -m755 ${srcdir}/cruisecontrol.init ${pkgdir}/etc/rc.d/cruisecontrol
26 cp -R ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/opt/cruisecontrol
28 # Create log and pid files
29 touch ${pkgdir}/var/log/cruisecontrol.log \
30 ${pkgdir}/var/run/cruisecontrol.pid
32 # Put PID file in /var/run
33 sed -i 's|echo $!.*|echo $! > /var/run/cruisecontrol.pid|1' ${pkgdir}/opt/cruisecontrol/cruisecontrol.sh