debian/0000775000000000000000000000000011760375103007173 5ustar debian/compat0000664000000000000000000000000211753751133010374 0ustar 9 debian/changelog0000664000000000000000000000063211760375103011046 0ustar grok (1.20110708.1-1ubuntu1) quantal; urgency=low * debian/patches/ld-as-needed.diff: Fix linking with ld --as-needed by moving the libraries from LDFLAGS to LIBS. -- Michael Bienia Sun, 27 May 2012 11:55:38 +0200 grok (1.20110708.1-1) unstable; urgency=low * Initial Release (Closes: #672777) -- Stig Sandbeck Mathisen Sun, 13 May 2012 17:24:56 +0200 debian/watch0000664000000000000000000000036111753751133010227 0ustar version=3 opts=\ downloadurlmangle=s|.*[?]name=(.*?)&.*|http://semicomplete.googlecode.com/files/$1|,\ filenamemangle=s|[^/]+[?]name=(.*?)&.*|$1| \ http://code.google.com/p/semicomplete/downloads/detail[?]name=grok-(\d+\.\d+\.\d+).tar.gz&.* debian/copyright0000664000000000000000000000345111753751133011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: 2007, Jordan Sissel License: BSD-3-Clause Files: conf.tab.c conf.tab.h Copyright: 1984-2010 Free Software Foundation, Inc. License: GPL-3+ See /usr/share/common-licenses/GPL-3 Files: debian/* Copyright: 2012 Stig Sandbeck Mathisen License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/rules0000775000000000000000000000210511753751133010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # Provide DEB_HOST_* and DEB_BUILD_* variables include /usr/share/dpkg/architecture.mk %: dh $@ override_dh_auto_install: dh_auto_install # Move the library install -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) mv debian/tmp/usr/lib/libgrok.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgrok.so.1 override_dh_install: dh_install chmod 644 debian/grok/usr/share/grok/patterns/base override_dh_installchangelogs: dh_installchangelogs -- CHANGELIST override_dh_installexamples: dh_installexamples sed -i s,patterns/base,/usr/share/grok/patterns/base, debian/grok/usr/share/doc/grok/examples/*.grok override_dh_strip: dh_strip --dbg-package=grok-dbg debian/grok.manpages0000664000000000000000000000000711753751133011652 0ustar grok.1 debian/libgrok-dev.install0000664000000000000000000000002111753751133012764 0ustar /usr/include/*.h debian/grok.examples0000664000000000000000000000001211753751133011671 0ustar samples/* debian/patches/0000775000000000000000000000000011760375025010625 5ustar debian/patches/ld-as-needed.diff0000664000000000000000000000246511760375025013710 0ustar Index: grok-1.20110708.1/Makefile =================================================================== --- grok-1.20110708.1.orig/Makefile 2011-07-02 04:04:53.000000000 +0200 +++ grok-1.20110708.1/Makefile 2012-05-27 11:55:26.000000000 +0200 @@ -28,7 +28,7 @@ # For linux, we need libdl for dlopen() # On FreeBSD, comment this line out. ifeq ($(PLATFORM), GNULinux) -LDFLAGS+=-ldl +LIBS+=-ldl endif # ############################################# @@ -42,7 +42,7 @@ #LDFLAGS+=-g CFLAGS+=-pipe -fPIC -I. -O2 -LDFLAGS+=-lpcre -levent -rdynamic -ltokyocabinet +LIBS+=-lpcre -levent -rdynamic -ltokyocabinet LIBSUFFIX=$(shell sh $(BASE)/platform.sh libsuffix) VERLIBSUFFIX=$(shell sh $(BASE)/platform.sh libsuffix $(MAJOR)) @@ -160,16 +160,16 @@ #$(MAKE) -C test test # Binary creation -grok: LDFLAGS+=-levent +grok: LIBS+=-levent grok: $(GROKOBJ) conf.tab.o conf.yy.o main.o grok_config.o - $(CC) $(LDFLAGS) $^ -o $@ + $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) discogrok: $(GROKOBJ) discover_main.o - $(CC) $(LDFLAGS) $^ -o $@ + $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) libgrok.$(LIBSUFFIX): libgrok.$(LIBSUFFIX): $(GROKOBJ) - $(CC) $(LDFLAGS) -fPIC $(DYNLIBFLAG) $(LIBNAMEFLAG) $^ -o $@ + $(CC) $(LDFLAGS) -fPIC $(DYNLIBFLAG) $(LIBNAMEFLAG) $^ -o $@ $(LIBS) libgrok.$(VERLIBSUFFIX): libgrok.$(LIBSUFFIX); ln -s $< $@ debian/patches/series0000664000000000000000000000002211760374565012044 0ustar ld-as-needed.diff debian/control0000664000000000000000000000427611760375106010612 0ustar Source: grok Section: misc Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Stig Sandbeck Mathisen Build-Depends: bison, ctags, debhelper (>= 9), dpkg-dev (>= 1.16.1~), flex, gperf, libevent-dev, libpcre3-dev, libtokyocabinet-dev, Standards-Version: 3.9.3 Homepage: http://code.google.com/p/semicomplete/wiki/Grok Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/grok.git Vcs-Git: git://anonscm.debian.org/collab-maint/grok.git Package: grok Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, Description: powerful pattern-matching and reacting tool The grok program can parse log data and program output. You can match any number of complex patterns on any number of inputs (processes and files) and have custom reactions. . Grok is simple software that allows you to easily parse logs and other files. With grok, you can turn unstructured log and event data into structured data. Package: libgrok1 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Description: shared libraries for grok The grok library provides the pattern matching features of grok in your own tools. There are currently C and Ruby APIs. . Grok is simple software that allows you to easily parse logs and other files. With grok, you can turn unstructured log and event data into structured data. Package: libgrok-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, Provides: libgrok-dev Conflicts: libgrok-dev Description: development files for grok Development files for the grok pattern matcher . Grok is simple software that allows you to easily parse logs and other files. With grok, you can turn unstructured log and event data into structured data. Package: grok-dbg Section: debug Architecture: any Depends: ${misc:Depends}, libgrok1 (= ${binary:Version}), Description: debugging symbols for grok This package contains the detached debugging symbols for grok. . Grok is simple software that allows you to easily parse logs and other files. With grok, you can turn unstructured log and event data into structured data. debian/grok.install0000664000000000000000000000005111753751133011524 0ustar /usr/bin/grok /usr/share/grok/patterns/* debian/libgrok-dev.links0000664000000000000000000000011411753751133012441 0ustar /usr/lib/x86_64-linux-gnu/libgrok.so.1 /usr/lib/x86_64-linux-gnu/libgrok.so debian/source/0000775000000000000000000000000011753751133010476 5ustar debian/source/format0000664000000000000000000000001411753751133011704 0ustar 3.0 (quilt) debian/libgrok1.install0000664000000000000000000000002511753751133012275 0ustar /usr/lib/*/lib*.so.*