From 654644ac0fc2046cf3c2aac63c3004ce494bfb81 Mon Sep 17 00:00:00 2001 From: Micha Glave Date: Tue, 12 Apr 2011 10:24:12 +0200 Subject: [PATCH] improved nexus. --- dev-java/nexus/Manifest | 2 +- dev-java/nexus/nexus-1.9.0.2.ebuild | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-java/nexus/Manifest b/dev-java/nexus/Manifest index 0a66a4d..f34cded 100644 --- a/dev-java/nexus/Manifest +++ b/dev-java/nexus/Manifest @@ -1,3 +1,3 @@ AUX nexus.init 15022 RMD160 fa43eceee0de9fc1ce52e07a5052dc3394fae423 SHA1 848b94860861c46d4a986d38d6ba584b5660b574 SHA256 8426a084371a1110a35294fecb3b0d22162509663e42b7b8167b7c897f6a7e3f DIST nexus-oss-webapp-1.9.0.2-bundle.tar.gz 27416107 RMD160 10b53fc44acfd50189464670ab4657d0b8b73511 SHA1 86d05c788808a2c32858e0121d92782148363f2a SHA256 53d41ba0da03869221902e4e259a6fd3e06ff5fbf5896343f354b64a5d141646 -EBUILD nexus-1.9.0.2.ebuild 1796 RMD160 efcd2c44c6240e8bf82728a4f0654d170bdf0413 SHA1 28b6908aec5e4d27dca145d43788f0b384f75177 SHA256 573cf741f271b2d9fa87e6bbc8385f2e5aa144e11e44698c9e8e0fd49383cf31 +EBUILD nexus-1.9.0.2.ebuild 2040 RMD160 3c23046fdbd39a3cd972c6090268ed8765336c66 SHA1 1bd77a1b75f76c20a2b9ac79f75b98565857365b SHA256 cd8afbc4b3d21b19eb26211cb38467009aa930f2f09957b27e5fe87da913b9a6 diff --git a/dev-java/nexus/nexus-1.9.0.2.ebuild b/dev-java/nexus/nexus-1.9.0.2.ebuild index d981058..4d46f91 100644 --- a/dev-java/nexus/nexus-1.9.0.2.ebuild +++ b/dev-java/nexus/nexus-1.9.0.2.ebuild @@ -32,7 +32,7 @@ src_install() { amd64) F_ARCH="linux-x86-64" ;; *) die "This ebuild doesn't support ${ARCH}." ;; esac - ls | grep -v $F_ARCH | xargs rm -vR || die "remove failed" + ls | grep -v -E "($F_ARCH|conf|lib)" | xargs rm -vR || die "remove failed" dodir ${NEXUS_HOME} @@ -52,8 +52,14 @@ src_install() { # working-dir aendern sed -i -e 's:nexus-work=\${basedir}/../sonatype-work/nexus:nexus-work=/var/lib/nexus:' "${S}"/conf/plexus.properties + sed -i -e \ + "s:wrapper.working.dir=../../..:wrapper.working.dir=${NEXUS_HOME}:" \ + "${S}"/bin/jsw/conf/wrapper.conf + cd "${S}" chown -R nexus:nexus bin/* runtime/* + mv bin/jsw/conf/wrapper.conf "${D}/etc/nexus" && rmdir bin/jsw/conf || die "failed to move + wrapper.conf" cp -pPR bin runtime "${D}${NEXUS_HOME}" || die "failed to copy runtime" cp -pPR conf/* "${D}/etc/nexus" || die "failed to copy conf"