shadow: disable creating mailbox files and use /var/mail instead.

--HG--
extra : convert_revision : abd5e24ab085b0efbaf0c52f5afede8add835d48
This commit is contained in:
Juan RP 2009-04-08 03:22:28 +02:00
parent e0ece941e0
commit 2ff413127b

View File

@ -29,6 +29,7 @@ pre_build()
cd $wrksrc && \
sed -i 's/groups$(EXEEXT) //' src/Makefile && \
find man -name Makefile -exec sed -i 's/groups\.1 / /' {}
sed -i -e 's@/var/spool/mail@/var/mail@' etc/login.defs
}
post_install()
@ -39,6 +40,9 @@ post_install()
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
done
# Disable creating mailbox files by default.
sed -i -e 's/yes/no/' $DESTDIR/etc/default/useradd
# Install the cron daily job.
install -D -m744 ${FILESDIR}/shadow.cron-daily \
${DESTDIR}/etc/cron.daily/shadow