Grok version 20090928 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 20090928

      View the most recent changes for the grok port at: grok.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for grok.
      The raw portfile for grok 20090928 is located here:
      http://grok.darwinports.com/dports/sysutils/grok/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/grok


      The grok Portfile 58520 2009-09-30 06:28:37Z blb macports.org $

      PortSystem 1.0

      Name: grok
      Version: 20090928
      Category: sysutils
      Maintainers: org.geekdaily:jim openmaintainer
      Platform: darwin

      Description: Easily parse logs and other files.

      Long Description: Grok is simple software that allows you to easily parse logs and other files. You teach grok how to parse data through the config file. Grok is a system for reacting to events - those events being log entries.

      Homepage: http://www.semicomplete.com/projects/grok/

      Master Sites: http://semicomplete.googlecode.com/files/
      Checksums: md5 629465d284de11c37a644cab970be432 sha1 bfc8db7be17f1bb52f2b930dfe284a0db8595b35 rmd160 8b9f6f27e85700f7f227bd3a6f5b9925de82e8e9

      Patch Files: patch-Makefile.diff
      post-patch {
      reinplace "s| PREFIX |${prefix}|g" ${worksrcpath}/Makefile
      }

      depends_build port:bison port:flex port:gperf port:gmake

      depends_run port:libevent port:pcre port:db46

      use_configure no

      build.type gnu
      build.args CFLAGS="`pcre-config --cflags` -I${prefix}/include/db46" LDFLAGS="`pcre-config --libs` -L${prefix}/lib/db46 -levent -ldb -rdynamic"

      test.run yes

      destroot.args PREFIX=${destroot}${prefix} INSTALL_USER=${install.user} INSTALL_GROUP=${install.group}

      ### TODO: pre-build testing for these dependencies
      # Build dependencies:
      # bison >= 2.3
      # flex >= 2.5.35
      # gperf >= 3.0
      # GNU make >= 3.81
      #
      # Run dependencies:
      # libevent >= 1.3 (older versions may work)
      # libpcre >= 7.6
      # Berkeley DB >= 4.5
      #
      # Test suite dependencies:
      # CUnit >= 2.1

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/grok
      % sudo port install grok
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching grok
      ---> Verifying checksum for grok
      ---> Extracting grok
      ---> Configuring grok
      ---> Building grok with target all
      ---> Staging grok into destroot
      ---> Installing grok
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using grok with these commands:
      %  man grok
      % apropos grok
      % which grok
      % locate grok

     Where to find more information:

    Darwin Ports



    Lightbox this page.