summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/makefile7
-rw-r--r--tools/tcprules.make4
2 files changed, 6 insertions, 5 deletions
diff --git a/tools/makefile b/tools/makefile
index d1c91ae..256fa6e 100644
--- a/tools/makefile
+++ b/tools/makefile
@@ -28,13 +28,10 @@ install:
install qmail-tls-check_certs /var/qmail/bin/
install spamassassin /etc/init.d/
install spamassassin.default /etc/default/spamassassin
+ install tcprules.make /etc/tcpserver/makefile
/etc/tcpserver/smtp.rules :
- ./mk_smtp_rules
-
-tcprules : /etc/tcpserver/smtp.rules
- < $< tcprules /etc/tcpserver/smtp.cdb /etc/tcpserver/smtp.tmp
-
+ ./mk_smtp_rules $@
ALWAYS:
@echo ...
diff --git a/tools/tcprules.make b/tools/tcprules.make
new file mode 100644
index 0000000..35cc605
--- /dev/null
+++ b/tools/tcprules.make
@@ -0,0 +1,4 @@
+PPID := $(shell echo $$$$)
+
+smtp.cdb : smtp.rules
+ < $< tcprules $@ /tmp/smtp-$(PPID).tmp