fix deb to properly copy over sigar

This commit is contained in:
Shay Banon 2011-12-08 13:40:09 +02:00
parent 6d0b94b81b
commit 16c2c6b2c3
2 changed files with 44 additions and 29 deletions

15
pom.xml
View File

@ -435,7 +435,7 @@
<groupId>org.vafer</groupId>
<version>0.8</version>
<configuration>
<deb>${project.build.directory}/releases/${artifactId}-${version}.deb</deb>
<deb>${project.build.directory}/releases/${project.artifactId}-${project.version}.deb</deb>
</configuration>
<executions>
<execution>
@ -470,7 +470,7 @@
</data>
<data>
<src>${project.build.directory}/</src>
<includes>${project.build.finalName}.jar, ${project.basedir}/lib/sigar/*</includes>
<includes>${project.build.finalName}.jar</includes>
<type>directory</type>
<mapper>
<type>perm</type>
@ -479,6 +479,17 @@
<group>root</group>
</mapper>
</data>
<data>
<src>${project.basedir}/lib/sigar/</src>
<includes>sigar-*.jar, libsigar-*-linux.*</includes>
<type>directory</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/elasticsearch/lib/sigar</prefix>
<user>root</user>
<group>root</group>
</mapper>
</data>
<data>
<src>${project.build.directory}/lib</src>
<includes>lucene*, log4j*, jline*, jna*</includes>

View File

@ -28,6 +28,10 @@
</fileSet>
</fileSets>
<files>
<file>
<source>README.textile</source>
<outputDirectory>/</outputDirectory>
</file>
<file>
<source>LICENSE.txt</source>
<outputDirectory>/</outputDirectory>