2013-09-26 17:14:40 +02:00

56 lines
2.3 KiB
Plaintext

$NetBSD: patch-ak,v 1.3 2012/10/17 23:27:35 asau Exp $
Install configuration files into example directory.
--- ompi/etc/Makefile.in.orig 2012-08-22 14:24:34.000000000 +0000
+++ ompi/etc/Makefile.in
@@ -35,6 +35,7 @@
#
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
+sysconfexampledir = $(pkgdatadir)/examples
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
@@ -1303,19 +1304,19 @@ uninstall-am: uninstall-local
# details why the mkdir is in install-data-local.
install-data-local:
- $(MKDIR_P) $(DESTDIR)$(sysconfdir)
+ $(MKDIR_P) $(DESTDIR)$(sysconfexampledir)
@ p="$(ompi_config_files)"; \
for file in $$p; do \
- if test -f $(DESTDIR)$(sysconfdir)/$$file; then \
+ if test -f $(DESTDIR)$(sysconfexampledir)/$$file; then \
echo "******************************* WARNING ************************************"; \
echo "*** Not installing new $$file over existing file in:"; \
- echo "*** $(DESTDIR)$(sysconfdir)/$$file"; \
+ echo "*** $(DESTDIR)$(sysconfexampledir)/$$file"; \
echo "******************************* WARNING ************************************"; \
else \
if test -f "$$file"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$file | sed -e 's|^.*/||'`"; \
- echo " $(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfdir)/$$f"; \
- $(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfdir)/$$f; \
+ echo " $(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfexampledir)/$$f"; \
+ $(INSTALL_DATA) $$d$$file $(DESTDIR)$(sysconfexampledir)/$$f; \
fi; \
done
@@ -1326,11 +1327,11 @@ install-data-local:
uninstall-local:
@ p="$(ompi_config_files)"; \
for file in $$p; do \
- if test -f "$(DESTDIR)$(sysconfdir)/$$file"; then \
+ if test -f "$(DESTDIR)$(sysconfexampledir)/$$file"; then \
if test -f "$$file"; then d=; else d="$(srcdir)/"; fi; \
- if diff "$(DESTDIR)$(sysconfdir)/$$file" "$$d$$file" > /dev/null 2>&1 ; then \
- echo "rm -f $(DESTDIR)$(sysconfdir)/$$file" ; \
- rm -f "$(DESTDIR)$(sysconfdir)/$$file" ; \
+ if diff "$(DESTDIR)$(sysconfexampledir)/$$file" "$$d$$file" > /dev/null 2>&1 ; then \
+ echo "rm -f $(DESTDIR)$(sysconfexampledir)/$$file" ; \
+ rm -f "$(DESTDIR)$(sysconfexampledir)/$$file" ; \
fi ; \
fi ; \
done