From ac8872821b8c45ed03755244176250fe8b7f4d7e Mon Sep 17 00:00:00 2001 From: "Markus M. May" Date: Sun, 25 Oct 2009 21:07:31 +0100 Subject: [PATCH] Modification to copy the files to the correct locations --- sonar/PKGBUILD | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sonar/PKGBUILD b/sonar/PKGBUILD index e171609..4c73872 100644 --- a/sonar/PKGBUILD +++ b/sonar/PKGBUILD @@ -10,13 +10,19 @@ depends=('mysql' 'java-environment') optdepends=('apache: a full featured webserver' 'maven: a java project management and project comprehension tool') -source=(http://dist.sonar.codehaus.org/sonar-${pkgver}.zip) -md5sums=('8a10a9670ce03fbeb6002d4ac9de5069') install=java-sonar.install conflicts=('java-sonar') provides=('java-sonar') options=(!strip !docs) +source=(http://dist.sonar.codehaus.org/sonar-${pkgver}.zip + 'sonar.sh' + 'wrapper.conf') + +md5sums=('8a10a9670ce03fbeb6002d4ac9de5069' + 'c01d9318a3b6a32b3e8d48f3e66a5957' + 'a53255d8c68ed2c76918197dee21d2eb') + build() { cd ${srcdir} @@ -36,5 +42,14 @@ build() { # copy the source to the final directory cp -a $srcdir/sonar-${pkgver}/* $pkgdir/opt/sonar || return 1 - + + # install the additional config files to the desired destination + cp -a $srcdir/sonar.sh $pkgdir/opt/sonar || return 1 + + mkdir -p $startdir/pkg/etc/sonar || return 1 + install $srcdir/wrapper.conf $startdir/pkg/etc/sonar || return 1 + + mkdir -p $startdir/pkg/etc/rc.d || return 1 + ln -s $pkgdir/opt/sonar/bin/sonar.sh $startdir/pkg/etc/rc.d/sonar + } -- 2.11.4.GIT