shadow: disable creating mailbox files and use /var/mail instead.
--HG-- extra : convert_revision : abd5e24ab085b0efbaf0c52f5afede8add835d48
This commit is contained in:
parent
e0ece941e0
commit
2ff413127b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user