From 651bb8e729984374180da8ef5290bcfb12568c68 Mon Sep 17 00:00:00 2001 From: andreas Date: Mon, 20 Jul 1998 12:30:39 +0000 Subject: 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 --- etc/mail/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/mail') 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 -- cgit v1.1