base-directories: improve switch to /usr.
This commit is contained in:
parent
b752d5403e
commit
6ae0a0671c
|
@ -30,7 +30,7 @@ make_system_dirs()
|
|||
|
||||
# Create /bin, /sbin and /lib symlinks to /usr.
|
||||
for d in bin sbin lib; do
|
||||
if [ -d "$d" ]; then
|
||||
if [ ! -h "$d" -a -d "$d" ]; then
|
||||
echo "/${d} must not be a directory, exiting!"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -43,7 +43,7 @@ make_system_dirs()
|
|||
|
||||
# Create /var/run and /var/lock symlinks.
|
||||
for d in run lock; do
|
||||
if [ -d var/${d} ]; then
|
||||
if [ ! -h "var/$d" -a -d var/${d} ]; then
|
||||
echo "/${d} must not be a directory, exiting!"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'base-directories'
|
||||
pkgname=base-directories
|
||||
version=0.16
|
||||
version=0.17
|
||||
revision=1
|
||||
noarch=yes
|
||||
bootstrap=yes
|
||||
|
@ -13,8 +13,8 @@ long_desc="
|
|||
installed by any other package and are required on any GNU/Linux system."
|
||||
|
||||
do_install() {
|
||||
vmkdir var/db/xbps/$pkgname
|
||||
touch ${DESTDIR}/var/db/xbps/$pkgname/.owned
|
||||
vmkdir var/db/xbps/metadata/$pkgname
|
||||
touch ${DESTDIR}/var/db/xbps/metadata/$pkgname/.owned
|
||||
}
|
||||
|
||||
post_stow() {
|
||||
|
|
Loading…
Reference in New Issue