base-directories: remove /run/pid dir, and symlink /var/run to /run directly.

This commit is contained in:
Juan RP 2011-05-20 14:25:36 +02:00
parent df7f341ba1
commit 070ecb37b7
2 changed files with 7 additions and 7 deletions

View file

@ -1,14 +1,14 @@
case "${ACTION}" in
post)
# Create compat symlinks for /run.
for d in tmp var/tmp var/run var/lock lib/rc/init.d; do
[ -d "$d" ] && rmdir "$d"
[ -h "$d" ] && rm -f "$d"
done
ln -sf /run/init.d lib/rc/init.d
[ -d tmp ] && rmdir tmp
ln -sf /run/tmp tmp
[ -d var/tmp ] && rmdir var/tmp
ln -sf /run/tmp var/tmp
[ -d var/run ] && rmdir var/run
ln -sf /run/pid var/run
[ -d var/lock ] && rmdir var/lock
ln -sf /run var/run
ln -sf /run/lock var/lock
;;
esac

View file

@ -1,6 +1,6 @@
# Template file for 'base-directories'
pkgname=base-directories
version=0.5
version=0.6
build_style=custom-install
short_desc="XBPS FHS Base System directories"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -57,7 +57,7 @@ do_install()
install -d ${DESTDIR}/lib/rc
for d in init.d pid udev; do
for d in init.d udev; do
install -d -m0755 ${DESTDIR}/run/${d}
done
for d in lock tmp shm; do