base-files: install var/mail instead of var/spool/mail, per hier(7)
This commit is contained in:
parent
f819b18960
commit
cb3dcc1495
|
@ -8,7 +8,12 @@ make_system_dirs() {
|
||||||
done
|
done
|
||||||
|
|
||||||
[ ! -d root ] && install -dm750 root
|
[ ! -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 \
|
for d in local local/bin local/sbin local/include local/lib \
|
||||||
bin include lib src; do
|
bin include lib src; do
|
||||||
|
@ -68,7 +73,7 @@ make_system_dirs() {
|
||||||
cd var
|
cd var
|
||||||
ln -sf ../run .
|
ln -sf ../run .
|
||||||
ln -sf ../run/lock .
|
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
|
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.
|
# Get rid of broken symlink created by older versions of base-files.
|
||||||
rm spool/mail/mail
|
rm spool/mail/mail
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.139
|
version=0.139
|
||||||
revision=11
|
revision=12
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="xbps-triggers"
|
depends="xbps-triggers"
|
||||||
short_desc="Void Linux base system files"
|
short_desc="Void Linux base system files"
|
||||||
|
|
Loading…
Reference in New Issue