summaryrefslogtreecommitdiff
path: root/etc/mail/Makefile
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-04-02 10:21:09 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-04-02 10:21:09 +0000
commit66d858cadcdc7f2cdff9e71086035fade0fa39c7 (patch)
treec9003b546d03fc155b403a3d2186fe58de79db1e /etc/mail/Makefile
parent1c7cb8e4d51f9684990a889d00c67e7e5d2a0755 (diff)
restore previous behaviour and reach directly to libexec for
makemap as !sendmail versions of this binary are not valid here. pointed out by and ok sthen@
Diffstat (limited to 'etc/mail/Makefile')
-rw-r--r--etc/mail/Makefile27
1 files changed, 15 insertions, 12 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 52a2fd67a91..80d8fa6e42a 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -1,10 +1,13 @@
-# $OpenBSD: Makefile,v 1.6 2009/03/18 01:56:52 jacekm Exp $
+# $OpenBSD: Makefile,v 1.7 2009/04/02 10:21:08 jacekm Exp $
#
# Generate the various .db versions from their source files.
# The sendmail .mc files are not built here. They live in
# /usr/share/sendmail/cf and have their own Makefile.
#
+SENDMAIL= /usr/libexec/sendmail/sendmail
+MAKEMAP= /usr/libexec/sendmail/makemap
+
.for DB in access aliases genericstable mailertable virtusertable userdb
. if exists(${DB})
DB_FILES+= ${DB}.db
@@ -23,20 +26,20 @@ distribution:
${DESTDIR}/etc/mail/README
${INSTALL} -c -o root -g wheel -m 644 access \
${DESTDIR}/etc/mail/access
- makemap hash ${DESTDIR}/etc/mail/access < access
+ ${MAKEMAP} hash ${DESTDIR}/etc/mail/access < access
${INSTALL} -c -o root -g wheel -m 644 aliases \
${DESTDIR}/etc/mail/aliases
- /usr/libexec/sendmail/sendmail -C${DESTDIR}/etc/mail/sendmail.cf \
+ ${SENDMAIL} -C${DESTDIR}/etc/mail/sendmail.cf \
-bi -O AliasFile=${DESTDIR}/etc/mail/aliases \
-O DontBlameSendmail=mapinunsafedirpath
${INSTALL} -c -o root -g wheel -m 644 local-host-names \
${DESTDIR}/etc/mail/local-host-names
${INSTALL} -c -o root -g wheel -m 644 genericstable \
${DESTDIR}/etc/mail/genericstable
- makemap hash ${DESTDIR}/etc/mail/genericstable < genericstable
+ ${MAKEMAP} hash ${DESTDIR}/etc/mail/genericstable < genericstable
${INSTALL} -c -o root -g wheel -m 644 mailertable \
${DESTDIR}/etc/mail/mailertable
- makemap hash ${DESTDIR}/etc/mail/mailertable < mailertable
+ ${MAKEMAP} hash ${DESTDIR}/etc/mail/mailertable < mailertable
${INSTALL} -c -o root -g wheel -m 644 relay-domains \
${DESTDIR}/etc/mail/relay-domains
${INSTALL} -c -o root -g wheel -m 644 trusted-users \
@@ -47,29 +50,29 @@ distribution:
${DESTDIR}/etc/mail/spamd.conf
${INSTALL} -c -o root -g wheel -m 644 smtpd.conf \
${DESTDIR}/etc/mail/smtpd.conf
- makemap hash ${DESTDIR}/etc/mail/virtusertable < virtusertable
+ ${MAKEMAP} hash ${DESTDIR}/etc/mail/virtusertable < virtusertable
@for db in access.db aliases.db genericstable.db mailertable.db \
virtusertable.db; do \
chmod 644 ${DESTDIR}/etc/mail/$$db; \
done
access.db: access
- makemap hash ${.ALLSRC} < ${.ALLSRC}
+ ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
aliases.db: aliases
- sendmail -bi
+ ${SENDMAIL} -bi
genericstable.db: genericstable
- makemap hash ${.ALLSRC} < ${.ALLSRC}
+ ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
mailertable.db: mailertable
- makemap hash ${.ALLSRC} < ${.ALLSRC}
+ ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
virtusertable.db: virtusertable
- makemap hash ${.ALLSRC} < ${.ALLSRC}
+ ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
userdb.db: userdb
- makemap btree ${.ALLSRC} < ${.ALLSRC}
+ ${MAKEMAP} btree ${.ALLSRC} < ${.ALLSRC}
.PHONY: distribution
.include <bsd.own.mk>