summaryrefslogtreecommitdiff
path: root/parallel/mpi-ch/patches/patch-ac
blob: 21fd4e659b5cff634b66ac4e0ec8e0227238bd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-ac,v 1.6 2008/12/21 11:41:01 obache Exp $

Install sample configuration files in example directory.

--- src/mpe2/sbin/mpeinstall.in.orig	2008-10-24 20:56:05.000000000 +0400
+++ src/mpe2/sbin/mpeinstall.in	2008-12-20 18:17:51.000000000 +0300
@@ -40,13 +40,15 @@
 mandir=@mandir@
 # Since autoconf < 2.60 does not set docdir and htmldir,
 # check if they are set.  If not, set them accordingly.
-if [ "$docdir" = "@docdir@" ] ; then
-    docdir=${datadir}/doc/${PACKAGE}
+if [ "$docdir" = "@docdir@" ] ; then # don't override what we set.
+#    docdir=${datadir}/doc/${PACKAGE}
 fi
-if [ "$htmldir" = "@htmldir@" ] ; then
-    htmldir=${docdir}
+if [ "$htmldir" = "@htmldir@" ] ; then # don't override what we set.
+#    htmldir=${docdir}
 fi
 
+exampledir=${datadir}/examples
+
 # Assume PROF_LIBNAME=MPE_LIBNAME.
 PROF_LIBNAME=@MPE_LIBNAME@
 MPI_IMPL=@MPI_IMPL@
@@ -493,10 +495,10 @@
 if [ -n "$etcbuild_dir" ] ; then
     if [ -d $etcbuild_dir ] ; then
          echo "Installing $pkgname configuration files to $DESTDIR$sysconfdir"
-         InstallDirRecur $etcbuild_dir $sysconfdir $MODE
+         InstallDirRecur $etcbuild_dir $exampledir $MODE
          cd $etcbuild_dir && \
          for file in *.conf ; do \
-             FixInstallFile $file $sysconfdir/$file ; \
+             FixInstallFile $file $exampledir/$file ; \
          done
     fi
 fi