base-directories: create /run dirs and symlinks at post INSTALL time.
This commit is contained in:
parent
8f58b12226
commit
ba2205d461
|
@ -0,0 +1,14 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
# Create compat symlinks for /run.
|
||||
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/lock var/lock
|
||||
;;
|
||||
esac
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'base-directories'
|
||||
pkgname=base-directories
|
||||
version=0.4
|
||||
version=0.5
|
||||
build_style=custom-install
|
||||
short_desc="XBPS FHS Base System directories"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -54,4 +54,13 @@ do_install()
|
|||
cd ${DESTDIR} && ln -s lib lib64
|
||||
cd ${DESTDIR}/usr && ln -s lib lib64
|
||||
fi
|
||||
|
||||
install -d ${DESTDIR}/lib/rc
|
||||
|
||||
for d in init.d pid udev; do
|
||||
install -d -m0755 ${DESTDIR}/run/${d}
|
||||
done
|
||||
for d in lock tmp shm; do
|
||||
install -d -m1777 ${DESTDIR}/run/${d}
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue