From 040074adf6bd6328e432e1617edd2608e3ffa6bc Mon Sep 17 00:00:00 2001 From: gshapiro Date: Mon, 14 Aug 2000 02:49:39 +0000 Subject: 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. --- etc/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/Makefile') 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 \ -- cgit v1.1