diff --git a/srcpkgs/iwd/files/net.connman.ead.service b/srcpkgs/iwd/files/net.connman.ead.service new file mode 100644 index 00000000000000..2cb053b393a8b7 --- /dev/null +++ b/srcpkgs/iwd/files/net.connman.ead.service @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=net.connman.ead +Exec=/usr/libexec/ead +User=root diff --git a/srcpkgs/iwd/files/net.connman.iwd.service b/srcpkgs/iwd/files/net.connman.iwd.service new file mode 100644 index 00000000000000..338ac43a6da865 --- /dev/null +++ b/srcpkgs/iwd/files/net.connman.iwd.service @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=net.connman.iwd +Exec=/usr/libexec/iwd +User=root diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template index 84aefcbee73146..2452e438193983 100644 --- a/srcpkgs/iwd/template +++ b/srcpkgs/iwd/template @@ -1,7 +1,7 @@ # Template file for 'iwd' pkgname=iwd version=3.12 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-systemd-service --enable-pie --enable-dbus-policy --enable-wired" @@ -26,4 +26,13 @@ make_check_pre="dbus-run-session" post_install() { vsv ead vsv iwd + # D-Bus activation files: upstream gates these behind the systemd-service + # build conditional, so they aren't installed when --disable-systemd-service + # is passed. Install them manually so NetworkManager (and other clients) + # can D-Bus-activate iwd/ead on demand without needing the runit services + # to be enabled. + vinstall ${FILESDIR}/net.connman.iwd.service 644 \ + usr/share/dbus-1/system-services + vinstall ${FILESDIR}/net.connman.ead.service 644 \ + usr/share/dbus-1/system-services }