Remove the architecture in the RPM and Debian artifacts

Logstash will now generate theses filenames instead:

```
logstash-5.0.0.rpm
logstash-5.0.0.deb
```
Fixes #5249

Fixes #5262
This commit is contained in:
Pier-Hugues Pellerin 2016-05-09 15:05:21 -04:00
parent c375ec1e48
commit 6ea07db5d9

View file

@ -224,10 +224,12 @@ namespace "artifact" do
dir.input("#{empty}/=/etc/logstash/conf.d")
end
# produce: logstash-5.0.0-alpha1.deb"
# produce: logstash-5.0.0-alpha1.rpm
package_filename = "logstash-#{LOGSTASH_VERSION}.TYPE"
case platform
when "redhat", "centos"
# produce: logstash-5.0.0-alpha1.noarch.rpm
package_filename = "logstash-#{LOGSTASH_VERSION}.ARCH.TYPE"
File.join(basedir, "pkg", "logrotate.conf").tap do |path|
dir.input("#{path}=/etc/logrotate.d/logstash")
@ -249,9 +251,6 @@ namespace "artifact" do
out.config_files << "etc/logrotate.d/logstash"
out.config_files << "/etc/init.d/logstash"
when "debian", "ubuntu"
# produce: logstash-5.0.0-alpha1_all.deb"
package_filename = "logstash-#{LOGSTASH_VERSION}_ARCH.TYPE"
File.join(basedir, "pkg", "logstash.default").tap do |path|
dir.input("#{path}=/etc/default/logstash")
end