summaryrefslogtreecommitdiff
path: root/mail/nmh/patches/patch-ca
blob: d10d3bccd1a0bd70ed328d04d32f9da142ae1786 (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
$NetBSD: patch-ca,v 1.3 2000/03/02 00:23:15 hubertf Exp $

Use ${INSTALL_SCRIPT} to install scripts
Install configuration files as <conf-file>.dist

--- etc/Makefile.in.orig	Thu Jan  6 22:30:07 2000
+++ etc/Makefile.in	Thu Mar  2 00:46:18 2000
@@ -21,6 +21,7 @@
 INSTALL         = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA    = @INSTALL_DATA@
+INSTALL_SCRIPT	= ${BSD_INSTALL_SCRIPT}
 
 # Path to search for programs to handle MIME
 # content.  Used to create mhn.defaults
@@ -80,16 +81,16 @@
 	  $(INSTALL_DATA) $(srcdir)/$$file $(etcdir)/$$file; \
 	done
 	for file in $(GEN_FILES); do \
-	  if [ -f $(etcdir)/$$file ]; then \
-	    mv $(etcdir)/$$file $(etcdir)/$$file.old; \
+	  if [ -f $(etcdir)/$$file.dist ]; then \
+	    mv $(etcdir)/$$file.dist $(etcdir)/$$file.old; \
 	  fi; \
-	  $(INSTALL_DATA) $$file $(etcdir)/$$file; \
+	  $(INSTALL_DATA) $$file $(etcdir)/$$file.dist; \
 	done
 
 install-scripts:
 	$(top_srcdir)/mkinstalldirs $(bindir)
 	for script in $(SCRIPTS); do \
-	  $(INSTALL_PROGRAM) $(srcdir)/$$script $(bindir)/$$script; \
+	  $(INSTALL_SCRIPT) $(srcdir)/$$script $(bindir)/$$script; \
 	done
 
 uninstall: uninstall-files uninstall-scripts