wpa_supplicant: remove systemd build option (#1736).
This commit is contained in:
parent
5a9c58e638
commit
e2d43b87ba
|
@ -1 +0,0 @@
|
|||
d /run/wpa_supplicant 0755 root wheel -
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'wpa_supplicant'
|
||||
pkgname=wpa_supplicant
|
||||
version=2.4
|
||||
revision=3
|
||||
revision=4
|
||||
patch_args="-Np1"
|
||||
build_wrksrc=$pkgname
|
||||
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
||||
|
@ -15,7 +15,6 @@ build_pie=yes
|
|||
hostmakedepends="pkg-config"
|
||||
makedepends="libnl3-devel libressl-devel dbus-devel readline-devel"
|
||||
conf_files="/etc/sv/wpa_supplicant/conf /etc/sv/wpa_supplicant/log/run /etc/${pkgname}/${pkgname}.conf"
|
||||
build_options="systemd"
|
||||
|
||||
pre_build() {
|
||||
sed -i 's|/usr/local|$(PREFIX)|g' Makefile
|
||||
|
@ -43,17 +42,6 @@ do_install() {
|
|||
|
||||
rm ${DESTDIR}/usr/share/man/man8/wpa_gui.8
|
||||
|
||||
if [ "$build_option_systemd" ]; then
|
||||
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d 644 usr/lib/tmpfiles.d ${pkgname}.conf
|
||||
vmkdir usr/lib/systemd/system
|
||||
install -m644 systemd/*.service ${DESTDIR}/usr/lib/systemd/system
|
||||
# Fix wpa_supplicant@.service to respect instance name.
|
||||
sed -e 's,wpa_supplicant@wlan0.service,wpa_supplicant@%i.service,' -i \
|
||||
${DESTDIR}/usr/lib/systemd/system/wpa_supplicant@.service
|
||||
# Make wpa_supplicant@.service also work for wext (nl80211 is the default).
|
||||
sed -e 's|-i%I|& -Dnl80211,wext|' -i ${DESTDIR}/usr/lib/systemd/system/wpa_supplicant@.service
|
||||
fi
|
||||
|
||||
vlicense README
|
||||
vsv wpa_supplicant
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue