Skip to content
Browse files

support for configurable root directories

destRootDir
destVarDir
destVarLibDir
destEtcDir
destBinDir
destDocDir

example: mvn -DdestRootDir="" -DdestDocDir="/usr/local/share"
  • Loading branch information...
1 parent 692ecd0 commit 2988b7ad74e3c0c3ae48ecaebcaf7de684100bda @timkuijsten committed Dec 21, 2011
Showing with 15 additions and 8 deletions.
  1. +7 −0 pom.xml
  2. +8 −8 src/main/assembly/dist.xml
View
7 pom.xml
@@ -110,6 +110,13 @@
<tika-version>1.0</tika-version>
<jetty-version>6.1.20</jetty-version>
<http-version>4.0.1</http-version>
+ <env>default</env>
+ <destRootDir>/usr/local</destRootDir>
+ <destVarDir>${destRootDir}/var</destVarDir>
+ <destVarLibDir>${destVarDir}/lib</destVarLibDir>
+ <destEtcDir>${destRootDir}/etc</destEtcDir>
+ <destBinDir>${destRootDir}/bin</destBinDir>
+ <destDocDir>${destRootDir}/share/doc</destDocDir>
</properties>
<issueManagement>
<system>github</system>
View
16 src/main/assembly/dist.xml
@@ -7,7 +7,7 @@
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
- <outputDirectory>/usr/share/doc/couchdb-lucene</outputDirectory>
+ <outputDirectory>${destDocDir}/couchdb-lucene</outputDirectory>
<includes>
<include>README*</include>
<include>LICENSE*</include>
@@ -22,38 +22,38 @@
<file>
<source>${project.basedir}/src/main/bin/couchdb-lucene</source>
<fileMode>755</fileMode>
- <outputDirectory>/usr/local/bin</outputDirectory>
+ <outputDirectory>${destBinDir}</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/main/bin/kill_ppid</source>
<fileMode>755</fileMode>
- <outputDirectory>/usr/local/bin</outputDirectory>
+ <outputDirectory>${destVarLibDir}/couchdb-lucene</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/main/resources/couchdb-lucene.ini</source>
<fileMode>644</fileMode>
- <outputDirectory>/etc/couchdb-lucene</outputDirectory>
+ <outputDirectory>${destEtcDir}/couchdb-lucene</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/main/resources/log4j.xml</source>
<fileMode>644</fileMode>
- <outputDirectory>/etc/couchdb-lucene</outputDirectory>
+ <outputDirectory>${destEtcDir}/couchdb-lucene</outputDirectory>
</file>
<file>
<source>${project.basedir}/couchdb-external-hook.py</source>
<fileMode>755</fileMode>
- <outputDirectory>/usr/local/bin</outputDirectory>
+ <outputDirectory>${destBinDir}</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/main/tools/etc/init.d/couchdb-lucene</source>
<fileMode>755</fileMode>
- <outputDirectory>/etc/init.d</outputDirectory>
+ <outputDirectory>${destEtcDir}/init.d</outputDirectory>
</file>
</files>
<dependencySets>
<dependencySet>
<scope>runtime</scope>
- <outputDirectory>/lib/couchdb-lucene</outputDirectory>
+ <outputDirectory>${destVarLibDir}/couchdb-lucene</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>

0 comments on commit 2988b7a

Please sign in to comment.
Something went wrong with that request. Please try again.