SF.net SVN: gar:[24978] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri May 15 21:06:44 CEST 2015


Revision: 24978
          http://sourceforge.net/p/gar/code/24978
Author:   dmichelsen
Date:     2015-05-15 19:06:43 +0000 (Fri, 15 May 2015)
Log Message:
-----------
logstash: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/logstash/
    csw/mgar/pkg/logstash/Makefile
    csw/mgar/pkg/logstash/branches/
    csw/mgar/pkg/logstash/tags/
    csw/mgar/pkg/logstash/trunk/
    csw/mgar/pkg/logstash/trunk/Makefile
    csw/mgar/pkg/logstash/trunk/checksums
    csw/mgar/pkg/logstash/trunk/files/
    csw/mgar/pkg/logstash/trunk/files/0001-Use-correct-grep.patch
    csw/mgar/pkg/logstash/trunk/files/logstash

Added: csw/mgar/pkg/logstash/Makefile
===================================================================
--- csw/mgar/pkg/logstash/Makefile	                        (rev 0)
+++ csw/mgar/pkg/logstash/Makefile	2015-05-15 19:06:43 UTC (rev 24978)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/logstash/trunk
===================================================================
--- csw/mgar/pkg/logstash/trunk	2015-05-15 16:50:26 UTC (rev 24977)
+++ csw/mgar/pkg/logstash/trunk	2015-05-15 19:06:43 UTC (rev 24978)

Property changes on: csw/mgar/pkg/logstash/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/logstash/trunk/Makefile
===================================================================
--- csw/mgar/pkg/logstash/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/logstash/trunk/Makefile	2015-05-15 19:06:43 UTC (rev 24978)
@@ -0,0 +1,48 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = logstash
+VERSION = 1.4.2
+GARTYPE = v2
+
+DESCRIPTION = A tool for managing events and logs
+
+MASTER_SITES = https://download.elasticsearch.org/logstash/logstash/
+DISTFILES += $(DISTNAME).tar.gz
+DISTFILES += logstash
+
+PATCHFILES += 0001-Use-correct-grep.patch
+
+NOGITPATCH = 1
+
+VENDOR_URL = http://www.logstash.net
+
+PACKAGES += CSWlogstash
+SPKG_DESC_CSWlogstash = A tool for managing events and logs
+# PKGFILES is catchall
+ARCHALL_CSWlogstash = 1
+RUNTIME_DEP_PKGS_CSWlogstash += CSWjre8
+
+# Reorganizing is difficult, delay for now
+CHECKPKG_OVERRIDES_CSWlogstash += discouraged-path-in-pkgmap
+
+# We use JRuby, so this is ok
+CHECKPKG_OVERRIDES_CSWlogstash += missing-dependency|CSWlibruby1-9-1-1|or|CSWruby|or|CSWruby18|or|CSWruby191
+
+# This can not be tracked with checkpkg
+CHECKPKG_OVERRIDES_CSWlogstash += surplus-dependency|CSWjre8
+
+LICENSE = LICENSE
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+install-custom:
+	ginstall -D -m 0755 $(WORKDIR)/logstash $(DESTDIR)$(bindir)/logstash
+	ginstall -d -m 0755 $(DESTDIR)$(sharedstatedir)/logstash
+	cd $(WORKSRC) && tar cf - . | (cd $(DESTDIR)$(sharedstatedir)/logstash; tar xf -)
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/logstash/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/logstash/trunk/checksums
===================================================================
--- csw/mgar/pkg/logstash/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/logstash/trunk/checksums	2015-05-15 19:06:43 UTC (rev 24978)
@@ -0,0 +1 @@
+6e6be734392e8c7d6d55e23d0bd8d2b3  logstash-1.4.2.tar.gz

Added: csw/mgar/pkg/logstash/trunk/files/0001-Use-correct-grep.patch
===================================================================
--- csw/mgar/pkg/logstash/trunk/files/0001-Use-correct-grep.patch	                        (rev 0)
+++ csw/mgar/pkg/logstash/trunk/files/0001-Use-correct-grep.patch	2015-05-15 19:06:43 UTC (rev 24978)
@@ -0,0 +1,32 @@
+From 1fbc72d8acbe47f7958470cc5e70a319f5b2b821 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Mon, 4 May 2015 11:46:02 +0200
+Subject: [PATCH] Use correct grep
+
+---
+ bin/logstash | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/bin/logstash b/bin/logstash
+index b4b2801..89b450f 100755
+--- a/bin/logstash
++++ b/bin/logstash
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ # Run logstash from source
+ #
+ # This is most useful when done from a git checkout.
+@@ -18,6 +18,9 @@
+ # Defaults you can override with environment variables
+ LS_HEAP_SIZE="${LS_HEAP_SIZE:=500m}"
+ 
++# We need GNU grep as 'grep'
++PATH=/opt/csw/gnu:$PATH
++
+ unset CDPATH
+ basedir=$(cd `dirname $0`/..; pwd)
+ . "${basedir}/bin/logstash.lib.sh"
+-- 
+2.3.3
+

Added: csw/mgar/pkg/logstash/trunk/files/logstash
===================================================================
--- csw/mgar/pkg/logstash/trunk/files/logstash	                        (rev 0)
+++ csw/mgar/pkg/logstash/trunk/files/logstash	2015-05-15 19:06:43 UTC (rev 24978)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+JAVA_HOME=/opt/csw/java/jre/jre8
+export JAVA_HOME
+
+cd /opt/csw/share/logstash
+exec bin/logstash "$@"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list