summaryrefslogtreecommitdiff
path: root/sysutils/goaccess/files
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2019-01-03 21:08:51 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2019-01-03 21:08:51 +0000
commit5064a2cad433480faa6c6cfd302b01f51813b415 (patch)
tree5c2e528cf14b6bc781fda6d7003329d2200c363d /sysutils/goaccess/files
parentmail/imapfilter: Update version 2.6.11=>2.6.12 (diff)
Update goaccess to 1.3.
With this release: - The config file has moved from PREFIX/etc to ETCDIR - The web assets are no longer installed separately (they are compiled into the binary so this should not affect end-users) - NLS support (and OPTION) added pkg-message and UPDATING entry added for conf file location change. Changes: https://goaccess.io/release-notes PR: 234047 Approved by: maintainer (sbz)
Notes
Notes: svn path=/head/; revision=489224
Diffstat (limited to 'sysutils/goaccess/files')
-rw-r--r--sysutils/goaccess/files/patch-src_gholder.c10
-rw-r--r--sysutils/goaccess/files/patch-src_goaccess.c13
-rw-r--r--sysutils/goaccess/files/patch-src_labels.h20
-rw-r--r--sysutils/goaccess/files/pkg-message.in8
4 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/goaccess/files/patch-src_gholder.c b/sysutils/goaccess/files/patch-src_gholder.c
new file mode 100644
index 000000000000..75d6f2a4c049
--- /dev/null
+++ b/sysutils/goaccess/files/patch-src_gholder.c
@@ -0,0 +1,10 @@
+--- src/gholder.c.orig 2018-12-16 00:54:24 UTC
++++ src/gholder.c
+@@ -34,6 +34,7 @@
+ #include <string.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
++#include <sys/socket.h>
+
+ #ifdef HAVE_LIBTOKYOCABINET
+ #include "tcabdb.h"
diff --git a/sysutils/goaccess/files/patch-src_goaccess.c b/sysutils/goaccess/files/patch-src_goaccess.c
new file mode 100644
index 000000000000..5674a3134797
--- /dev/null
+++ b/sysutils/goaccess/files/patch-src_goaccess.c
@@ -0,0 +1,13 @@
+--- src/goaccess.c.orig 2018-12-16 01:14:48 UTC
++++ src/goaccess.c
+@@ -1202,8 +1202,10 @@ set_locale (void)
+ char *loc_ctype;
+
+ setlocale (LC_ALL, "");
++#ifdef ENABLE_NLS
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
++#endif
+
+ loc_ctype = getenv ("LC_CTYPE");
+ if (loc_ctype != NULL)
diff --git a/sysutils/goaccess/files/patch-src_labels.h b/sysutils/goaccess/files/patch-src_labels.h
new file mode 100644
index 000000000000..88f5cfed5489
--- /dev/null
+++ b/sysutils/goaccess/files/patch-src_labels.h
@@ -0,0 +1,20 @@
+--- src/labels.h.orig 2018-11-23 02:16:45 UTC
++++ src/labels.h
+@@ -30,11 +30,17 @@
+ #ifndef LABELS_H_INCLUDED
+ #define LABELS_H_INCLUDED
+
++#ifdef ENABLE_NLS
+ #include <libintl.h>
+
+ #define _(String) dgettext (PACKAGE , String)
+ #define gettext_noop(String) String
+ #define N_(String) gettext_noop (String)
++#else
++#define _(String) String
++#define gettext_noop(String) String
++#define N_(String) String
++#endif
+
+ /* global lang attribute */
+ #define DOC_LANG _( "en")
diff --git a/sysutils/goaccess/files/pkg-message.in b/sysutils/goaccess/files/pkg-message.in
new file mode 100644
index 000000000000..6dcd29550b12
--- /dev/null
+++ b/sysutils/goaccess/files/pkg-message.in
@@ -0,0 +1,8 @@
+====================================================================
+
+The goaccess.conf location has changed for goaccess-1.3. To preserve
+your settings, you must move your goaccess.conf to the new location:
+
+ mv %%PREFIX%%/etc/goaccess.conf %%ETCDIR%%/goaccess.conf
+
+====================================================================