elastic/logstash

Delete batch files from deb (and rpm) packages

Aberta

#2.844 aberto em 18 de mar. de 2015

 (2 comentários) (0 reação) (0 responsável)Ruby (3.496 forks)batch import
buggood first issuehacktoberfestpackaging

Métricas do repositório

Stars
 (14.197 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

I noticed on my Linux system, when using the package that it is also installing .bat files (for Windows) along with the bash scripts to run the script.

Here is a patch that should take care of removing them before building the package (untested):

diff --git a/pkg/build.sh b/pkg/build.sh
index 8ad876b..0d56ab4 100755
--- a/pkg/build.sh
+++ b/pkg/build.sh
@@ -41,6 +41,9 @@ fi

 tar -C $destdir/$prefix --strip-components 1 -zxpf $tar

+# Delete batch files
+rm -f $destdir/opt/logstash/bin/*.bat
+
 case $os@$release in
  centos@*|fedora@*|el6@*|sl6@*)
     mkdir -p $destdir/etc/logrotate.d

Guia do colaborador