pkgsrc-wip/openmpi/patches/patch-ai

56 lines
2.3 KiB
Plaintext

$NetBSD: patch-ai,v 1.6 2013/01/25 03:22:09 asau Exp $
Install configuration files into example directory.
--- orte/etc/Makefile.in.orig 2013-01-15 14:44:04.000000000 +0100
+++ orte/etc/Makefile.in 2013-01-24 12:33:12.118712233 +0100
@@ -1320,6 +1320,7 @@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
+sysconfexampledir = $(pkgdatadir)/examples
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
@@ -1536,19 +1537,19 @@
# details why the mkdir is in install-data-local.
install-data-local:
- $(MKDIR_P) $(DESTDIR)$(sysconfdir)
+ $(MKDIR_P) $(DESTDIR)$(sysconfexampledir)
@ p="$(orte_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
@@ -1559,11 +1560,11 @@
uninstall-local:
@ p="$(orte_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