patch-etc_Makefile_in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $OpenBSD: patch-etc_Makefile_in,v 1.5 2016/11/23 12:27:47 sthen Exp $
  2. --- etc/Makefile.in.orig Tue Sep 6 17:12:39 2016
  3. +++ etc/Makefile.in Wed Nov 16 03:51:28 2016
  4. @@ -70,7 +70,7 @@ am__make_running_with_option = \
  5. test $$has_opt = yes
  6. am__make_dryrun = (target_option=n; $(am__make_running_with_option))
  7. am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
  8. -pkgdatadir = $(datadir)/@PACKAGE@
  9. +pkgdatadir = $(datadir)/examples/@PACKAGE@
  10. pkgincludedir = $(includedir)/@PACKAGE@
  11. pkglibdir = $(libdir)/@PACKAGE@
  12. pkglibexecdir = $(libexecdir)/@PACKAGE@
  13. @@ -534,30 +534,10 @@ uninstall-am: uninstall-pkgdataDATA uninstall-sysconfD
  14. install-data-local: all
  15. - @if test "$(DO_CONF_INSTALL)" = "yes"; then \
  16. - if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \
  17. - echo ""; \
  18. - echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists. See "; \
  19. - echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \
  20. - echo " *** examples."; \
  21. - echo ""; \
  22. - else \
  23. - $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
  24. - fi; \
  25. - if test ! -f $(DESTDIR)$(sysconfdir)/rancid.types.conf ; then \
  26. - $(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)/rancid.types.conf; \
  27. - fi; \
  28. - if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
  29. - echo ""; \
  30. - echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists. See "; \
  31. - echo " *** $(pkgdatadir)/lg.conf.sample for new"; \
  32. - echo " *** examples."; \
  33. - echo ""; \
  34. - else \
  35. - $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
  36. - fi; \
  37. - fi; \
  38. - $(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)/rancid.types.base
  39. + test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
  40. + $(INSTALL_DATA) ../cloginrc.sample $(DESTDIR)$(pkgdatadir)/cloginrc.sample; \
  41. + $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(pkgdatadir)/rancid.conf.sample; \
  42. + $(INSTALL_DATA) rancid.types.base $(DESTDIR)$(pkgdatadir)/rancid.types.base
  43. lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in
  44. rm -f lg.conf.sample lg.conf.sample.tmp; \