summaryrefslogtreecommitdiff
path: root/mail/exim
diff options
context:
space:
mode:
authorad <ad@pkgsrc.org>2000-08-30 11:17:05 +0000
committerad <ad@pkgsrc.org>2000-08-30 11:17:05 +0000
commit22dac3361f7508894a8f79d0faf4846ecc4d4820 (patch)
tree595dfa682e3cfa31829b238452fc3bba32dd9232 /mail/exim
parentef955c272639fa9098c6ab1393f0509b3744dda2 (diff)
downloadpkgsrc-22dac3361f7508894a8f79d0faf4846ecc4d4820.tar.gz
Use either /etc/mail/aliases or /etc/aliases.
Diffstat (limited to 'mail/exim')
-rw-r--r--mail/exim/files/exim_newaliases12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/exim/files/exim_newaliases b/mail/exim/files/exim_newaliases
index 567e621f85a..591d31ab877 100644
--- a/mail/exim/files/exim_newaliases
+++ b/mail/exim/files/exim_newaliases
@@ -1,7 +1,13 @@
#!/bin/sh
#
-# $NetBSD: exim_newaliases,v 1.1 1999/09/18 20:26:00 ad Exp $
+# $NetBSD: exim_newaliases,v 1.2 2000/08/30 11:17:05 ad Exp $
#
-cd /etc
-echo -n '/etc/aliases: '
+if [ -f /etc/mail/aliases ]; then
+ ALIASDIR=/etc/mail
+else
+ ALIASDIR=/etc
+fi
+
+cd $ALIASDIR
+echo -n "$ALIASDIR/aliases: "
@PREFIX@/sbin/exim_dbmbuild aliases aliases.db