diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2000-08-14 02:49:39 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2000-08-14 02:49:39 +0000 |
commit | 040074adf6bd6328e432e1617edd2608e3ffa6bc (patch) | |
tree | 68a553fb007282942090e13945617ac53514c4aa /etc | |
parent | 34bd54827a2aee706e7df9f17e57db13707ad412 (diff) | |
download | FreeBSD-src-040074adf6bd6328e432e1617edd2608e3ffa6bc.zip FreeBSD-src-040074adf6bd6328e432e1617edd2608e3ffa6bc.tar.gz |
Upon installation, create a symbolic link for /etc/aliases pointing to
/etc/mail/aliases. This should both help users as well as other MTAs which
still use a default aliases path of /etc/aliases.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile index 1fdaa28..5fef3bf 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -111,6 +111,11 @@ distribution: ${PPPCF2} ${DESTDIR}/etc/ppp cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ ${ETCMAIL} ${DESTDIR}/etc/mail + @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ + ! -f ${DESTDIR}/etc/aliases ]; then \ + set -x; \ + ln -s mail/aliases ${DESTDIR}/etc/aliases; \ + fi ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ ${DESTDIR}/etc/dumpdates ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ |