--- Makefile.am.orig 2020-03-08 15:57:09 UTC +++ Makefile.am @@ -188,7 +188,7 @@ AM_CPPFLAGS = \ -DPREFIX='"${prefix}"' \ -DCONFIGFILE='"${sysconfdir}/${PACKAGE_NAME}.conf"' \ -DLOCALSTATEDIR='"${localstatedir}"' \ - -DPKGLOCALSTATEDIR='"${cpkglocalstatedir}"' \ + -DPKGLOCALSTATEDIR='"/var/db/${PACKAGE_NAME}"' \ -DPLUGINDIR='"${cpkglibdir}"' \ -DPKGDATADIR='"${cpkgdatadir}"' if BUILD_WIN32 @@ -2377,15 +2377,10 @@ endif install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run - $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/$(PACKAGE_NAME) + $(mkinstalldirs) $(DESTDIR)/var/db/$(PACKAGE_NAME) $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log $(mkinstalldirs) $(DESTDIR)$(sysconfdir) - if test -e $(DESTDIR)$(sysconfdir)/collectd.conf; \ - then \ - $(INSTALL) -m 0640 $(builddir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \ - else \ - $(INSTALL) -m 0640 $(builddir)/src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \ - fi; \ + $(INSTALL) -m 0640 src/collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.sample $(mkinstalldirs) $(DESTDIR)$(cpkgdatadir) $(INSTALL) -m 0644 $(srcdir)/src/types.db $(DESTDIR)$(cpkgdatadir)/types.db; $(INSTALL) -m 0644 $(srcdir)/src/postgresql_default.conf \