mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 10:18:09 -04:00
63 lines
2.9 KiB
Plaintext
63 lines
2.9 KiB
Plaintext
$NetBSD: patch-aj,v 1.4 2015/12/12 22:41:19 asau Exp $
|
|
|
|
Install configuration files into example directory.
|
|
|
|
--- opal/etc/Makefile.in.orig 2013-01-15 14:43:13.000000000 +0100
|
|
+++ opal/etc/Makefile.in 2013-01-24 12:34:41.090709828 +0100
|
|
@@ -51,6 +51,7 @@
|
|
test $$am__dry = yes; \
|
|
}
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
+sysconfexampledir = $(pkgdatadir)/examples
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
|
@@ -1535,24 +1536,24 @@
|
|
# details why the mkdir is in install-data-local.
|
|
|
|
install-data-local:
|
|
- $(MKDIR_P) $(DESTDIR)$(sysconfdir)
|
|
+ $(MKDIR_P) $(DESTDIR)$(sysconfexampledir)
|
|
@ p="$(opal_config_files)"; \
|
|
if test "$(opal_file_from_platform)" = "yes"; then \
|
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
|
- echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sysconfdir)/openmpi-mca-params.conf"; \
|
|
- $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sysconfdir)/openmpi-mca-params.conf; \
|
|
+ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sysconfexampledir)/openmpi-mca-params.conf"; \
|
|
+ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sysconfexampledir)/openmpi-mca-params.conf; \
|
|
else \
|
|
for file in $$p; do \
|
|
- if test -f $(DESTDIR)$(sysconfdir)/openmpi-mca-params.conf; then \
|
|
+ if test -f $(DESTDIR)$(sysconfexampledir)/openmpi-mca-params.conf; 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 \
|
|
fi;
|
|
@@ -1564,11 +1565,11 @@
|
|
uninstall-local:
|
|
@ p="$(opal_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
|