freebsd-ports/net-mgmt/collectd5/files/patch-src__daemon__collectd.h
Joseph Mingrone ff55205c69 net-mgmt/collectd5: Update to version 5.7.1.
Other Changes:
  - Remove unnecessary global BUILD_DEPENDS, LIB_DEPENDS and RUN_DEPENDS.
  - Redo patches to fix portlint warnings.
  - Fix linked library errors reported by poudriere.

Remaining issue:
  - When the XMMS option is selected, xmms.so is linked to libraries in
    devel/glib12 and x11-toolkits/gtk12, but adding
    XMMS_USE=GNOME=glib12,gtk12 causes a build error.

PR:	216670
Submitted by:	ports@bsdserwis.com (maintainer)
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9444
2017-02-09 00:44:42 +00:00

21 lines
527 B
C

--- src/daemon/collectd.h.orig 2017-01-23 07:53:57 UTC
+++ src/daemon/collectd.h
@@ -243,15 +243,15 @@ typedef int _Bool;
#endif
#ifndef LOCALSTATEDIR
-#define LOCALSTATEDIR PREFIX "/var"
+#define LOCALSTATEDIR "/var"
#endif
#ifndef PKGLOCALSTATEDIR
-#define PKGLOCALSTATEDIR PREFIX "/var/lib/" PACKAGE_NAME
+#define PKGLOCALSTATEDIR "/var/db/" PACKAGE_NAME
#endif
#ifndef PIDFILE
-#define PIDFILE PREFIX "/var/run/" PACKAGE_NAME ".pid"
+#define PIDFILE "/var/run/" PACKAGE_NAME ".pid"
#endif
#ifndef PLUGINDIR