wpa_supplicant: install d-bus conf correctly to share/dbus/system.d
Fixes 40dda7383b
which inadvertently installed to
a file as the directory didn't exist.
Also blocked up the postInstall script for readability.
This commit is contained in:
parent
0fd1df74be
commit
67effde499
@ -85,11 +85,13 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/share/man/man5 $out/share/man/man8
|
||||
cp -v "doc/docbook/"*.5 $out/share/man/man5/
|
||||
cp -v "doc/docbook/"*.8 $out/share/man/man8/
|
||||
mkdir -p $out/etc/dbus-1/system.d $out/share/dbus-1/system-services $out/etc/systemd/system
|
||||
|
||||
mkdir -p $out/share/dbus-1/system.d $out/share/dbus-1/system-services $out/etc/systemd/system
|
||||
cp -v "dbus/"*service $out/share/dbus-1/system-services
|
||||
sed -e "s@/sbin/wpa_supplicant@$out&@" -i "$out/share/dbus-1/system-services/"*
|
||||
cp -v dbus/dbus-wpa_supplicant.conf $out/share/dbus-1/system.d
|
||||
cp -v "systemd/"*.service $out/etc/systemd/system
|
||||
|
||||
rm $out/share/man/man8/wpa_priv.8
|
||||
install -Dm444 wpa_supplicant.conf $out/share/doc/wpa_supplicant/wpa_supplicant.conf.example
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user