mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
375a225ec3
commit
8b509cdf7d
1 changed files with 8 additions and 2 deletions
|
@ -111,6 +111,9 @@ namespace "artifact" do
|
|||
File.join(basedir, "pkg", "logstash.default").tap do |path|
|
||||
dir.input("#{path}=/etc/sysconfig/logstash")
|
||||
end
|
||||
File.join(basedir, "pkg", "logstash.sysv").tap do |path|
|
||||
dir.input("#{path}=/etc/init.d/logstash")
|
||||
end
|
||||
require "fpm/package/rpm"
|
||||
out = dir.convert(FPM::Package::RPM)
|
||||
out.license = "ASL 2.0" # Red Hat calls 'Apache Software License' == ASL
|
||||
|
@ -119,20 +122,23 @@ namespace "artifact" do
|
|||
out.attributes[:rpm_group] = "root"
|
||||
out.config_files << "etc/sysconfig/logstash"
|
||||
out.config_files << "etc/logrotate.d/logstash"
|
||||
out.config_files << "/etc/init.d/logstash"
|
||||
when "debian", "ubuntu"
|
||||
File.join(basedir, "pkg", "logstash.default").tap do |path|
|
||||
dir.input("#{path}=/etc/default/logstash")
|
||||
end
|
||||
File.join(basedir, "pkg", "logstash.sysv").tap do |path|
|
||||
dir.input("#{path}=/etc/init.d/logstash")
|
||||
end
|
||||
require "fpm/package/deb"
|
||||
out = dir.convert(FPM::Package::Deb)
|
||||
out.license = "Apache 2.0"
|
||||
out.attributes[:deb_user] = "root"
|
||||
out.attributes[:deb_group] = "root"
|
||||
out.attributes[:deb_suggests] = "java7-runtime-headless"
|
||||
# TODO(sissel): this file should go away once pleaserun is implemented.
|
||||
out.config_files << "/etc/default/logstash"
|
||||
|
||||
out.config_files << "/etc/logrotate.d/logstash"
|
||||
out.config_files << "/etc/init.d/logstash"
|
||||
end
|
||||
|
||||
# Packaging install/removal scripts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue