Commit 24fc3c54 authored by Beniamino Galvani's avatar Beniamino Galvani

build: meson: fix install script

Fix directory paths and modes.

Fixes: 98b4a19a
parent dcfddeef
......@@ -928,7 +928,7 @@ meson.add_install_script(
nm_bindir,
nm_pkgconfdir,
nm_pkglibdir,
nm_localstatedir,
nm_pkgstatedir,
enable_docs ? 'install_docs' : '',
nm_mandir
)
......
......@@ -4,7 +4,7 @@ datadir=$1
bindir=$2
pkgconfdir=$3
pkglibdir=$4
localstatedir=$5
pkgstatedir=$5
[ -n "$DESTDIR" ] && DESTDIR=${DESTDIR%%/}/
......@@ -26,12 +26,15 @@ for dir in "${pkgconfdir}/conf.d" \
"${pkgconfdir}/dispatcher.d/pre-up.d" \
"${pkgconfdir}/dnsmasq.d" \
"${pkgconfdir}/dnsmasq-shared.d" \
"${pkgconfdir}/conf.d" \
"${pkgconfdir}/VPN" \
"${localstatedir}/lib/NetworkManager"; do
"${pkglibdir}/conf.d" \
"${pkglibdir}/VPN"; do
mkdir -p "${DESTDIR}${dir}"
chmod 0755 "${DESTDIR}${dir}"
done
mkdir -p "${DESTDIR}${pkgstatedir}"
chmod 0700 "${DESTDIR}${pkgstatedir}"
if [ "$6" = install_docs ]; then
mandir=$7
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment