Skip to content

Commit

Permalink
Making deb installable by being lintian compatible
Browse files Browse the repository at this point in the history
According to elastic#2515 the ubuntu software center does not allow to install
debian packages which are not lintian compatible

I worked on the package and made it lintian compatible by doing

* Ignoring errors about arch dependent binaries as we will not split
  this package. The arch dependent libraries are used correctly.
* Fixed permissions
* Added a copyright file pointing to the apache license in debian

Closes elastic#2515
Closes elastic#2320
  • Loading branch information
spinscale committed Jun 7, 2013
1 parent 8016d32 commit 6d0df41
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
-->
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>0.9</version>
<version>1.0.1</version>
<configuration>
<deb>${project.build.directory}/releases/${project.artifactId}-${project.version}.deb</deb>
</configuration>
Expand All @@ -518,6 +518,7 @@
<data>
<src>${project.basedir}/</src>
<includes>*.txt, *.textile</includes>
<excludes>LICENSE.txt, .DS_Store</excludes>
<type>directory</type>
<mapper>
<type>perm</type>
Expand Down Expand Up @@ -606,6 +607,22 @@
<group>root</group>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/lintian</src>
<type>directory</type>
<excludes>.DS_Store</excludes>
<mapper>
<type>perm</type>
<prefix>/usr/share/lintian/overrides</prefix>
<user>root</user>
<group>root</group>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/copyright</src>
<dst>/usr/share/doc/elasticsearch/copyright</dst>
<type>file</type>
</data>
</dataSet>

</configuration>
Expand Down
17 changes: 17 additions & 0 deletions src/deb/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright 2013 Elasticsearch <info@elasticsearch.org>

License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
4 changes: 2 additions & 2 deletions src/deb/init.d/elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#
### BEGIN INIT INFO
# Provides: elasticsearch
# Required-Start: $network $named
# Required-Stop: $network $named
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts elasticsearch
Expand Down
8 changes: 8 additions & 0 deletions src/deb/lintian/elasticsearch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore arch dependent warnings, we chose the right libs on start
elasticsearch binary: arch-independent-package-contains-binary-or-object
# Not stripping external libraries
elasticsearch binary: unstripped-binary-or-object
# Ignore arch dependent warnings, we chose the right libs on start
elasticsearch binary: arch-dependent-file-in-usr-share
# Please check our changelog at http://www.elasticsearch.org/downloads/
elasticsearch binary: changelog-file-missing-in-native-package

0 comments on commit 6d0df41

Please sign in to comment.