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
This commit is contained in:
Andreas Klemm 1998-07-20 12:30:39 +00:00
parent 519e76df7c
commit d0db3de488
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37776

View File

@ -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