
The `ifcfg-rh` meson build file installs a new post install script to create the `network-config` directory. This has been moved to the main post install file so it's easier to find because all post install steps are together and it avoids and extra post install script execution.
56 lines
1.7 KiB
Bash
Executable File
56 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
datadir=$1
|
|
bindir=$2
|
|
pkgconfdir=$3
|
|
pkglibdir=$4
|
|
pkgstatedir=$5
|
|
|
|
[ -n "$DESTDIR" ] && DESTDIR=${DESTDIR%%/}/
|
|
|
|
if [ -f "${DESTDIR}${datadir}/bash-completion/completions/nmcli-completion" ]; then
|
|
mv "${DESTDIR}${datadir}/bash-completion/completions/nmcli-completion" \
|
|
"${DESTDIR}${datadir}/bash-completion/completions/nmcli"
|
|
fi
|
|
|
|
if [ -x "${DESTDIR}${bindir}/nmtui" ]; then
|
|
for alias in nmtui-connect nmtui-edit nmtui-hostname; do
|
|
ln -sf nmtui "${DESTDIR}${bindir}/$alias"
|
|
done
|
|
fi
|
|
|
|
for dir in "${pkgconfdir}/conf.d" \
|
|
"${pkgconfdir}/system-connections" \
|
|
"${pkgconfdir}/dispatcher.d/no-wait.d" \
|
|
"${pkgconfdir}/dispatcher.d/pre-down.d" \
|
|
"${pkgconfdir}/dispatcher.d/pre-up.d" \
|
|
"${pkgconfdir}/dnsmasq.d" \
|
|
"${pkgconfdir}/dnsmasq-shared.d" \
|
|
"${pkglibdir}/conf.d" \
|
|
"${pkglibdir}/dispatcher.d/no-wait.d" \
|
|
"${pkglibdir}/dispatcher.d/pre-down.d" \
|
|
"${pkglibdir}/dispatcher.d/pre-up.d" \
|
|
"${pkglibdir}/system-connections" \
|
|
"${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
|
|
|
|
for alias in nmtui-connect nmtui-edit nmtui-hostname; do
|
|
ln -f "${DESTDIR}${mandir}/man1/nmtui.1" "${DESTDIR}${mandir}/man1/${alias}.1"
|
|
done
|
|
|
|
ln -f "${DESTDIR}${mandir}/man5/NetworkManager.conf.5" "${DESTDIR}${mandir}/man5/nm-system-settings.conf.5"
|
|
fi
|
|
|
|
if [ "$8" = create_network_scripts ]; then
|
|
sysconfdir=$9
|
|
mkdir -p "${DESTDIR}${sysconfdir}/sysconfig/network-scripts"
|
|
fi
|