28f601c5bd
- Switch to dependency based OPTIONS list PR: ports/179663 Submitted by: Kimo <kimor79@yahoo.com> Approved by: Krzysztof Stryjek <ports@bsdserwis.com> (maintainer)
115 lines
3.7 KiB
Text
115 lines
3.7 KiB
Text
--- ./src/Makefile.am.orig 2013-04-10 15:34:36.000000000 +0000
|
|
+++ ./src/Makefile.am 2013-05-21 23:57:02.000000000 +0000
|
|
@@ -10,7 +10,7 @@
|
|
AM_CPPFLAGS = -DPREFIX='"${prefix}"'
|
|
AM_CPPFLAGS += -DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"'
|
|
AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"'
|
|
-AM_CPPFLAGS += -DPKGLOCALSTATEDIR='"${localstatedir}/lib/${PACKAGE_NAME}"'
|
|
+AM_CPPFLAGS += -DPKGLOCALSTATEDIR='"${localstatedir}/db/${PACKAGE_NAME}"'
|
|
if BUILD_FEATURE_DAEMON
|
|
AM_CPPFLAGS += -DPIDFILE='"${localstatedir}/run/${PACKAGE_NAME}.pid"'
|
|
endif
|
|
@@ -64,7 +64,7 @@
|
|
collectd_LDADD += -lpthread
|
|
endif
|
|
if BUILD_WITH_LIBKSTAT
|
|
-collectd_LDADD += -lkstat
|
|
+collectd_LDADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
collectd_LDADD += -ldevinfo
|
|
@@ -257,7 +257,7 @@
|
|
cpu_la_LDFLAGS = -module -avoid-version
|
|
cpu_la_LIBADD =
|
|
if BUILD_WITH_LIBKSTAT
|
|
-cpu_la_LIBADD += -lkstat
|
|
+cpu_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
cpu_la_LIBADD += -ldevinfo
|
|
@@ -355,7 +355,7 @@
|
|
disk_la_LDFLAGS = -module -avoid-version
|
|
disk_la_LIBADD =
|
|
if BUILD_WITH_LIBKSTAT
|
|
-disk_la_LIBADD += -lkstat
|
|
+disk_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
disk_la_LIBADD += -ldevinfo
|
|
@@ -462,7 +462,7 @@
|
|
interface_la_LIBADD += $(BUILD_WITH_LIBSTATGRAB_LDFLAGS)
|
|
else
|
|
if BUILD_WITH_LIBKSTAT
|
|
-interface_la_LIBADD += -lkstat
|
|
+interface_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
interface_la_LIBADD += -ldevinfo
|
|
@@ -667,7 +667,7 @@
|
|
collectd_LDADD += "-dlopen" memory.la
|
|
collectd_DEPENDENCIES += memory.la
|
|
if BUILD_WITH_LIBKSTAT
|
|
-memory_la_LIBADD += -lkstat
|
|
+memory_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
memory_la_LIBADD += -ldevinfo
|
|
@@ -796,7 +796,7 @@
|
|
pkglib_LTLIBRARIES += notify_email.la
|
|
notify_email_la_SOURCES = notify_email.c
|
|
notify_email_la_LDFLAGS = -module -avoid-version
|
|
-notify_email_la_LIBADD = -lesmtp -lssl -lcrypto -lpthread -ldl
|
|
+notify_email_la_LIBADD = -lesmtp -lssl -lcrypto -lpthread
|
|
collectd_LDADD += "-dlopen" notify_email.la
|
|
collectd_DEPENDENCIES += notify_email.la
|
|
endif
|
|
@@ -1061,7 +1061,7 @@
|
|
collectd_LDADD += "-dlopen" swap.la
|
|
collectd_DEPENDENCIES += swap.la
|
|
if BUILD_WITH_LIBKSTAT
|
|
-swap_la_LIBADD += -lkstat
|
|
+swap_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_LIBDEVINFO
|
|
swap_la_LIBADD += -ldevinfo
|
|
@@ -1115,7 +1115,7 @@
|
|
pkglib_LTLIBRARIES += tape.la
|
|
tape_la_SOURCES = tape.c
|
|
tape_la_LDFLAGS = -module -avoid-version
|
|
-tape_la_LIBADD = -lkstat -ldevinfo
|
|
+tape_la_LIBADD = $(BUILD_WITH_LIBKSTAT_LIBS) -ldevinfo
|
|
collectd_LDADD += "-dlopen" tape.la
|
|
collectd_DEPENDENCIES += tape.la
|
|
endif
|
|
@@ -1238,7 +1238,7 @@
|
|
uptime_la_LDFLAGS = -module -avoid-version
|
|
uptime_la_LIBADD =
|
|
if BUILD_WITH_LIBKSTAT
|
|
-uptime_la_LIBADD += -lkstat
|
|
+uptime_la_LIBADD += $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
endif
|
|
if BUILD_WITH_PERFSTAT
|
|
uptime_la_LIBADD += -lperfstat
|
|
@@ -1375,7 +1375,7 @@
|
|
zfs_arc_la_SOURCES = zfs_arc.c
|
|
zfs_arc_la_CFLAGS = $(AM_CFLAGS)
|
|
zfs_arc_la_LDFLAGS = -module -avoid-version
|
|
-zfs_arc_la_LIBADD = -lkstat
|
|
+zfs_arc_la_LIBADD = $(BUILD_WITH_LIBKSTAT_LIBS)
|
|
collectd_LDADD += "-dlopen" zfs_arc.la
|
|
collectd_DEPENDENCIES += zfs_arc.la
|
|
endif
|
|
@@ -1458,12 +1458,7 @@
|
|
|
|
install-exec-hook:
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
|
- if test -e $(DESTDIR)$(sysconfdir)/collectd.conf; \
|
|
- then \
|
|
- $(INSTALL) -m 0640 collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \
|
|
- else \
|
|
- $(INSTALL) -m 0640 collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \
|
|
- fi; \
|
|
+ $(INSTALL) -m 0640 collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.sample
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
|
$(INSTALL) -m 0644 $(srcdir)/types.db $(DESTDIR)$(pkgdatadir)/types.db;
|
|
$(INSTALL) -m 0644 $(srcdir)/postgresql_default.conf \
|