49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
$NetBSD: patch-src_Makefile.in,v 1.1 2014/02/17 11:21:55 fhajny Exp $
|
|
|
|
Use a reasonable db dir.
|
|
Install config file into examples.
|
|
--- src/Makefile.in.orig 2014-01-26 08:09:56.685201776 +0000
|
|
+++ src/Makefile.in
|
|
@@ -2230,6 +2230,7 @@ srcdir = @srcdir@
|
|
subdirs = @subdirs@
|
|
sys_symbol_underscore = @sys_symbol_underscore@
|
|
sysconfdir = @sysconfdir@
|
|
+egdir = @exec_prefix@/share/examples/@PACKAGE@
|
|
target_alias = @target_alias@
|
|
top_build_prefix = @top_build_prefix@
|
|
top_builddir = @top_builddir@
|
|
@@ -2239,7 +2240,7 @@ SUBDIRS = libcollectdclient $(am__append
|
|
AM_CPPFLAGS = -DPREFIX='"${prefix}"' \
|
|
-DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"' \
|
|
-DLOCALSTATEDIR='"${localstatedir}"' \
|
|
- -DPKGLOCALSTATEDIR='"${localstatedir}/lib/${PACKAGE_NAME}"' \
|
|
+ -DPKGLOCALSTATEDIR='"${localstatedir}/db/${PACKAGE_NAME}"' \
|
|
$(am__append_2) -DPLUGINDIR='"${pkglibdir}"' \
|
|
-DPKGDATADIR='"${pkgdatadir}"'
|
|
collectd_SOURCES = collectd.c collectd.h \
|
|
@@ -4856,13 +4857,8 @@ uninstall-man: uninstall-man1 uninstall-
|
|
@HAVE_PROTOC_C_TRUE@ protoc-c -I$(srcdir) --c_out . $(srcdir)/riemann.proto
|
|
|
|
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; \
|
|
+ $(mkinstalldirs) $(DESTDIR)$(egdir)
|
|
+ $(INSTALL) -m 0640 collectd.conf $(DESTDIR)$(egdir)/collectd.conf; \
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
|
$(INSTALL) -m 0644 $(srcdir)/types.db $(DESTDIR)$(pkgdatadir)/types.db;
|
|
$(INSTALL) -m 0644 $(srcdir)/postgresql_default.conf \
|
|
@@ -4870,7 +4866,7 @@ install-exec-hook:
|
|
|
|
uninstall-hook:
|
|
rm -f $(DESTDIR)$(pkgdatadir)/types.db;
|
|
- rm -f $(DESTDIR)$(sysconfdir)/collectd.conf
|
|
+ rm -f $(DESTDIR)$(egdir)/collectd.conf
|
|
rm -f $(DESTDIR)$(pkgdatadir)/postgresql_default.conf;
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|