base-files: install var/mail instead of var/spool/mail, per hier(7)

This commit is contained in:
maxice8 2018-12-13 15:46:53 -02:00 committed by maxice8
parent f819b18960
commit cb3dcc1495
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,12 @@ make_system_dirs() {
done
[ ! -d root ] && install -dm750 root
[ ! -d var/spool/mail ] && install -dm1777 var/spool/mail
# Don't try to create var/mail in the correct place if the user
# is updating from an old system that has var/mail as a symlink
[ ! -L var/mail ] && [ ! -d var/mail ] && install -dm1777 var/mail
[ ! -d var/spool ] && install -d var/spool
for d in local local/bin local/sbin local/include local/lib \
bin include lib src; do
@ -68,7 +73,7 @@ make_system_dirs() {
cd var
ln -sf ../run .
ln -sf ../run/lock .
ln -sfn spool/mail mail
[ ! -d spool/mail ] && ln -sfn ../mail spool/mail
if [ -L spool/mail/mail -a "$(readlink spool/mail/mail)" = spool/mail ]; then
# Get rid of broken symlink created by older versions of base-files.
rm spool/mail/mail

View File

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.139
revision=11
revision=12
bootstrap=yes
depends="xbps-triggers"
short_desc="Void Linux base system files"