openbsd-ports/sysutils/rancid/patches/patch-etc_Makefile_in
pea a811697c0c Update to 2.3.8
ok okan@
2012-06-08 13:59:08 +00:00

44 lines
1.7 KiB
Plaintext

$OpenBSD: patch-etc_Makefile_in,v 1.4 2012/06/08 13:59:08 pea Exp $
--- etc/Makefile.in.orig Thu Nov 17 22:10:11 2011
+++ etc/Makefile.in Tue May 29 13:19:25 2012
@@ -22,7 +22,7 @@
# permission and modified beyond recognition.
VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
+pkgdatadir = $(datadir)/examples/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
@@ -423,26 +423,10 @@ uninstall-am: uninstall-pkgdataDATA
install-data-local: all
- @if test "$(DO_CONF_INSTALL)" = "yes"; then \
- if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \
- echo ""; \
- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists. See "; \
- echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \
- echo " *** examples."; \
- echo ""; \
- else \
- $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
- fi; \
- if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
- echo ""; \
- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists. See "; \
- echo " *** $(pkgdatadir)/lg.conf.sample for new"; \
- echo " *** examples."; \
- echo ""; \
- else \
- $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
- fi; \
- fi
+ test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
+ $(INSTALL_DATA) ../cloginrc.sample $(DESTDIR)$(pkgdatadir)/cloginrc.sample; \
+ $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(pkgdatadir)/rancid.conf; \
+ $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(pkgdatadir)/lg.conf; \
lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in
rm -f lg.conf.sample lg.conf.sample.tmp; \