summaryrefslogtreecommitdiffstats
path: root/etc/Makefile
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2000-08-14 02:49:39 +0000
committergshapiro <gshapiro@FreeBSD.org>2000-08-14 02:49:39 +0000
commit040074adf6bd6328e432e1617edd2608e3ffa6bc (patch)
tree68a553fb007282942090e13945617ac53514c4aa /etc/Makefile
parent34bd54827a2aee706e7df9f17e57db13707ad412 (diff)
downloadFreeBSD-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/Makefile')
-rw-r--r--etc/Makefile5
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 \
OpenPOWER on IntegriCloud