base-directories: fixed tests for /run symlinks.

This commit is contained in:
Juan RP 2011-07-10 23:55:03 +02:00
parent c06015e248
commit ed968cb354
2 changed files with 9 additions and 3 deletions
srcpkgs/base-directories

View file

@ -43,10 +43,14 @@ make_system_dirs()
[ ! -d lib/rc ] && install -d lib/rc [ ! -d lib/rc ] && install -d lib/rc
for d in init.d udev; do for d in init.d udev; do
[ ! -d run/${d} ] && install -dm0755 run/${d} if [ ! -d run/${d} -a ! -h run/${d} ]; then
install -dm0755 run/${d}
fi
done done
for d in lock tmp shm; do for d in lock tmp shm; do
[ ! -d run/${d} ] && install -dm1777 run/${d} if [ ! -d run/${d} -a ! -h run/${d} ]; then
install -dm1777 run/${d}
fi
done done
} }

View file

@ -1,9 +1,11 @@
# Template file for 'base-directories' # Template file for 'base-directories'
pkgname=base-directories pkgname=base-directories
version=0.12 version=0.13
build_style=custom-install build_style=custom-install
short_desc="Vanilla GNU/Linux base system directories" short_desc="Vanilla GNU/Linux base system directories"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://vanilla.github.com"
license="Public domain"
long_desc=" long_desc="
This package installs the base system directories as specifed by FHS that aren't This package installs the base system directories as specifed by FHS that aren't
installed by any other package and are required on any GNU/Linux system." installed by any other package and are required on any GNU/Linux system."