nexus: replace patch with inreplace.
This commit is contained in:
parent
1754c51526
commit
8ee9000665
1 changed files with 4 additions and 18 deletions
|
@ -6,13 +6,12 @@ class Nexus < Formula
|
|||
version '2.6.2-01'
|
||||
sha1 '046c4b9ed27e4d05eec1be80b676f4ee25ba352a'
|
||||
|
||||
# Put the sonatype-work directory in the var directory, to persist across version updates
|
||||
def patches
|
||||
DATA
|
||||
end
|
||||
|
||||
def install
|
||||
rm_f Dir['bin/*.bat']
|
||||
# Put the sonatype-work directory in the var directory, to persist across version updates
|
||||
inreplace "nexus-#{version}/conf/nexus.properties",
|
||||
'nexus-work=${bundleBasedir}/../sonatype-work/nexus',
|
||||
"nexus-work=#{var}/nexus"
|
||||
libexec.install Dir["nexus-#{version}/*"]
|
||||
bin.install_symlink libexec/'bin/nexus'
|
||||
end
|
||||
|
@ -47,16 +46,3 @@ class Nexus < Formula
|
|||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/nexus-2.6.2-01/conf/nexus.properties b/nexus-2.6.2-01/conf/nexus.properties
|
||||
index df89251..23b536b 100644
|
||||
--- a/nexus-2.6.2-01/conf/nexus.properties
|
||||
+++ b/nexus-2.6.2-01/conf/nexus.properties
|
||||
@@ -22,5 +22,5 @@ nexus-webapp=${bundleBasedir}/nexus
|
||||
nexus-webapp-context-path=/nexus
|
||||
|
||||
# Nexus section
|
||||
-nexus-work=${bundleBasedir}/../sonatype-work/nexus
|
||||
+nexus-work=HOMEBREW_PREFIX/var/nexus
|
||||
runtime=${bundleBasedir}/nexus/WEB-INF
|
||||
|
|
Loading…
Reference in a new issue