summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/patches/patch-ai
blob: 246ed79be1df0bf9f12f37f82f66b64a4282bf21 (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.3 2005/03/07 11:29:28 wiz Exp $

--- fax/Makefile.orig	2003-10-09 14:38:49.000000000 +0200
+++ fax/Makefile
@@ -12,6 +12,9 @@ FAX_SCRIPTS=faxspool faxrunq faxq faxrm 
 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
 #
@@ -82,4 +85,4 @@ install: all
 #
 # faxspool.rules sample file
 #
-	$(INSTALL) -m 644 faxspool.rules $(CONFDIR)/faxspool.rules.sample
+	$(INSTALL) -m 644 faxspool.rules $(CONF_EXAMPLES_DIR)/faxspool.rules.sample