+++ /dev/null
-[Unit]
-Description=wpa_supplicant for %I.
-
-[Service]
-ExecStart=/usr/lib/network/helpers/wpa_supplicant %I
-ExecReload=/bin/kill -HUP $MAINPID
-PIDFile=/run/wpa_supplicant-%I.pid
-Restart=on-failure
-UtmpIdentifier=%I
-KillMode=process
name = wpa_supplicant
version = 2.9
-release = 1.1
+release = 2
groups = Sytem/Base
url = https://w1.fi/wpa_supplicant/
end
install
- mkdir -pv %{BUILDROOT}/etc/wpa_supplicant
- mkdir -pv %{BUILDROOT}/usr/sbin
+ mkdir -pv %{BUILDROOT}%{sysconfdir}/wpa_supplicant
+ mkdir -pv %{BUILDROOT}%{sbindir}
+ mkdir -pv %{BUILDROOT}%{unitdir}
# Install config file
install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant
# Install binaries
- install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}/usr/sbin
- install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}/usr/sbin
- install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}/usr/sbin
+ install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}%{sbindir}
+ install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}%{sbindir}
+ install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}%{sbindir}
+
+ # Install systemd unit file
+ install -v -m 644 wpa_supplicant/systemd/wpa_supplicant.service \
+ %{BUILDROOT}%{unitdir}
end
end
packages
package %{name}
- requires += network >= 005
-
script postin
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
end