base-directories: improve switch to /usr.
This commit is contained in:
@@ -30,7 +30,7 @@ make_system_dirs()
|
|||||||
|
|
||||||
# Create /bin, /sbin and /lib symlinks to /usr.
|
# Create /bin, /sbin and /lib symlinks to /usr.
|
||||||
for d in bin sbin lib; do
|
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!"
|
echo "/${d} must not be a directory, exiting!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -43,7 +43,7 @@ make_system_dirs()
|
|||||||
|
|
||||||
# Create /var/run and /var/lock symlinks.
|
# Create /var/run and /var/lock symlinks.
|
||||||
for d in run lock; do
|
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!"
|
echo "/${d} must not be a directory, exiting!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Template file for 'base-directories'
|
# Template file for 'base-directories'
|
||||||
pkgname=base-directories
|
pkgname=base-directories
|
||||||
version=0.16
|
version=0.17
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
@@ -13,8 +13,8 @@ long_desc="
|
|||||||
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."
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir var/db/xbps/$pkgname
|
vmkdir var/db/xbps/metadata/$pkgname
|
||||||
touch ${DESTDIR}/var/db/xbps/$pkgname/.owned
|
touch ${DESTDIR}/var/db/xbps/metadata/$pkgname/.owned
|
||||||
}
|
}
|
||||||
|
|
||||||
post_stow() {
|
post_stow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user