summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/patches/patch-ai
blob: d63849f20ceb56938fc4261a366045ac4f811dd1 (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
$NetBSD: patch-ai,v 1.2 2003/09/20 16:39:38 fredb Exp $

--- fax/Makefile.orig
+++ fax/Makefile
@@ -12,6 +12,9 @@
 zigzag: 
 	cd .. ; $(MAKE) subdirs
 
+CONFDIR=${MGETTY_CONFDIR}
+CONF_EXAMPLES_DIR=${PREFIX}/share/examples/mgetty+sendfax
+
 all: $(FAX_SCRIPTS) faxrunqd faxheader faxq-helper
 
 faxspool: faxspool.in ../sedscript
@@ -68,8 +71,8 @@ install: all
 #
 	$(INSTALL) -m 644 cour25.pbm $(LIBDIR)
 	$(INSTALL) -m 644 cour25n.pbm $(LIBDIR)
-	-test -f $(CONFDIR)/faxheader || \
-		$(INSTALL) -m 644 faxheader $(CONFDIR)
+	-test -f $(CONF_EXAMPLES_DIR)/faxheader || \
+		$(INSTALL) -m 644 faxheader $(CONF_EXAMPLES_DIR)
 #
 # /etc/magic
 #
@@ -67,4 +70,4 @@
 #
 # faxspool.rules sample file
 #
-	$(INSTALL) -m 644 faxspool.rules $(CONFDIR)/faxspool.rules.sample
+	$(INSTALL) -m 644 faxspool.rules $(CONF_EXAMPLES_DIR)/faxspool.rules.sample