summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-08-08 10:42:40 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-08-08 10:47:29 +0200
commitb20e5bcafd9654a767ffb78eefd7494f73ca67c8 (patch)
treea3b60c61a2b50e63527e8dc8adf83730625c7c87
parentf19736e62f9ab5fba0ac5fe184a221c2a5d374c6 (diff)
downloadguix-b20e5bcafd9654a767ffb78eefd7494f73ca67c8.tar.gz
gnu: goaccess: Update to 1.7.2.
* gnu/packages/web.scm (goaccess): Update to 1.7.2.
[source]: Patch second timestamp in parser.c.
[arguments]: Enable geoip and utf8.
[inputs]: Add libmaxminddb and openssl.
-rw-r--r--gnu/packages/web.scm21
1 files changed, 13 insertions, 8 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 7cc563586b..45b4560e5a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -131,6 +131,7 @@
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gd)
+  #:use-module (gnu packages geo)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
@@ -5915,23 +5916,27 @@ config files---you only have to specify the www root.")
 (define-public goaccess
   (package
     (name "goaccess")
-    (version "1.5.2")
+    (version "1.7.2")
     (source (origin
               (method url-fetch)
               (uri (string-append "http://tar.goaccess.io/goaccess-"
                                   version ".tar.gz"))
               (sha256
                (base32
-                "12hwmd9cn7yy7vj92110skjaslpxkn05msb9wj228qmjjf9jzkm0"))
+                "0sqjkla4fjw5h49x675qibp860bk0haajc3i31m1q782kjiap6hf"))
               (modules '((guix build utils)))
-              (snippet '(begin
-                          (substitute* "src/error.h"
-                            (("__DATE__") "\"1970-01-01\"")
-                            (("__TIME__") "\"00:00:00\""))))))
+              (snippet '(substitute* '("src/error.h"
+                                       "src/parser.c")
+                          (("__DATE__") "\"1970-01-01\"")
+                          (("__TIME__") "\"00:00:00\"")))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      '(list "--enable-geoip=mmdb"
+             "--enable-utf8")))
     (inputs
-     ;; TODO: Add dependency on geoip-tools.
-     (list glib ncurses))
+     (list glib ncurses libmaxminddb openssl))
     (native-inputs
      (list pkg-config))
     (home-page "https://goaccess.io")