summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1998-07-20 12:30:39 +0000
committerandreas <andreas@FreeBSD.org>1998-07-20 12:30:39 +0000
commit651bb8e729984374180da8ef5290bcfb12568c68 (patch)
treee916d76777206f1a3fdef0ac50c1c0bb99d8b46c /etc/mail
parentbde5ccb95a20e03f669924e0306b39e06acceab5 (diff)
downloadFreeBSD-src-651bb8e729984374180da8ef5290bcfb12568c68.zip
FreeBSD-src-651bb8e729984374180da8ef5290bcfb12568c68.tar.gz
Enter absolute path for the makemap command (which lives under /usr/sbin)
This makes it possible to run make from cron, i.e.: root's crontab: ( cd /etc/mail; make all install ) without the error: makemap hash /etc/mail/spamsites < /etc/mail/block_domains.txt makemap: not found *** Error code 127 If this solution is widely accepted, I'd like to merge it into -STABLE
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index e42c9c2..2371db3 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -31,13 +31,13 @@ default:
mv /etc/mail/block_domains.new /etc/mail/block_domains.txt
install:
- makemap hash /etc/mail/spamsites < /etc/mail/block_domains.txt
+ /usr/sbin/makemap hash /etc/mail/spamsites < /etc/mail/block_domains.txt
.if exists(/etc/mail/spamsites.local)
- makemap -o hash /etc/mail/spamsites < /etc/mail/spamsites.local
+ /usr/sbin/makemap -o hash /etc/mail/spamsites < /etc/mail/spamsites.local
.endif
- makemap hash /etc/mail/denyip < /etc/mail/block_ips.txt
+ /usr/sbin/makemap hash /etc/mail/denyip < /etc/mail/block_ips.txt
.if exists(/etc/mail/denyip.local)
- makemap -o hash /etc/mail/denyip < /etc/mail/denyip.local
+ /usr/sbin/makemap -o hash /etc/mail/denyip < /etc/mail/denyip.local
.endif
all: default install
OpenPOWER on IntegriCloud