diff --git a/wpa_supplicant-2.10.tar.gz b/wpa_supplicant-2.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..74236a8c9ed4ce3d4710623516e416fc35fa3b03 Binary files /dev/null and b/wpa_supplicant-2.10.tar.gz differ diff --git a/wpa_supplicant.conf b/wpa_supplicant.conf new file mode 100644 index 0000000000000000000000000000000000000000..65ad645fd1ddbdd7fb89157788ce10684b58e8d6 --- /dev/null +++ b/wpa_supplicant.conf @@ -0,0 +1,3 @@ +ctrl_interface=/var/run/wpa_supplicant +ctrl_interface_group=wheel + diff --git a/wpa_supplicant.logrotate b/wpa_supplicant.logrotate new file mode 100644 index 0000000000000000000000000000000000000000..bd7ef91cc361a55850c64c6142bf07b7c3743f30 --- /dev/null +++ b/wpa_supplicant.logrotate @@ -0,0 +1,6 @@ +/var/log/wpa_supplicant.log { + missingok + notifempty + size 30k + create 0600 root root +} diff --git a/wpa_supplicant.service b/wpa_supplicant.service new file mode 100644 index 0000000000000000000000000000000000000000..97d42962a2d639c11312e3d37916d7e3e7f1a9eb --- /dev/null +++ b/wpa_supplicant.service @@ -0,0 +1,15 @@ +[Unit] +Description=WPA supplicant +Before=network.target +Wants=network.target +After=dbus.service + +[Service] +Type=dbus +BusName=fi.w1.wpa_supplicant1 +EnvironmentFile=-/etc/sysconfig/wpa_supplicant +ExecStart=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u $INTERFACES $DRIVERS $OTHER_ARGS + +[Install] +WantedBy=multi-user.target + diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec new file mode 100644 index 0000000000000000000000000000000000000000..7ebb06f388902ad9518e4a16f5a2fa7932ee9b23 --- /dev/null +++ b/wpa_supplicant.spec @@ -0,0 +1,156 @@ +%define anolis_release 1 +%global _hardened_build 1 + +Summary: WPA/WPA2/IEEE 802.1X Supplicant +Name: wpa_supplicant +Epoch: 1 +Version: 2.10 +Release: %{anolis_release}%{?dist} +License: BSD +Source0: http://w1.fi/releases/%{name}-%{version}.tar.gz +Source1: wpa_supplicant.conf +Source2: wpa_supplicant.service +Source3: wpa_supplicant.sysconfig +Source4: wpa_supplicant.logrotate + +# distro specific customization and not suitable for upstream, +# Fedora-specific updates to defconfig +#Patch0: wpa_supplicant-config.patch +# works around busted drivers +#Patch1: wpa_supplicant-assoc-timeout.patch +# ensures that debug output gets flushed immediately to help diagnose driver +# bugs, not suitable for upstream +#Patch2: wpa_supplicant-flush-debug-output.patch +# quiet an annoying and frequent syslog message +#Patch3: wpa_supplicant-quiet-scan-results-message.patch +# distro specific customization for Qt4 build tools, not suitable for upstream +#Patch4: wpa_supplicant-gui-qt4.patch + +URL: http://w1.fi/wpa_supplicant/ + +BuildRequires: openssl-devel +BuildRequires: readline-devel +BuildRequires: dbus-devel +BuildRequires: libnl3-devel +BuildRequires: systemd-units +BuildRequires: docbook-utils +BuildRequires: gcc +Requires(post): systemd-sysv +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +# libeap used to be built from wpa_supplicant with some fairly horrible +# hackery, solely for use by WiMAX. We dropped all WiMAX support around +# F21. This is here so people don't wind up with obsolete libeap packages +# lying around. If it's ever resurrected for any reason, this needs +# dropping. +Obsoletes: libeap < %{epoch}:%{version}-%{release} +Obsoletes: libeap-devel < %{epoch}:%{version}-%{release} + +%description +wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support +for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA +component that is used in the client stations. It implements key negotiation +with a WPA Authenticator and it controls the roaming and IEEE 802.11 +authentication/association of the wlan driver. + +%prep +%autosetup -p1 -n %{name}-%{version} + + +%build +pushd wpa_supplicant + cp defconfig .config + export CFLAGS="${CFLAGS:-%optflags} -fPIE -DPIE" + export CXXFLAGS="${CXXFLAGS:-%optflags} -fPIE -DPIE" + export LDFLAGS="${LDFLAGS:-%optflags} -pie -Wl,-z,now" + # yes, BINDIR=_sbindir + export BINDIR="%{_sbindir}" + export LIBDIR="%{_libdir}" + make %{_smp_mflags} V=1 + make eapol_test V=1 + make -C doc/docbook man V=1 + rm doc/docbook/wpa_gui.8 +popd + + +%install +# config +install -D -m 0600 %{SOURCE1} %{buildroot}/%{_sysconfdir}/wpa_supplicant/wpa_supplicant.conf + +# init scripts +install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/wpa_supplicant.service +install -D -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/wpa_supplicant +install -D -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/logrotate.d/wpa_supplicant + +# binary +install -d %{buildroot}/%{_sbindir} +install -m 0755 wpa_supplicant/wpa_passphrase %{buildroot}/%{_sbindir} +install -m 0755 wpa_supplicant/wpa_cli %{buildroot}/%{_sbindir} +install -m 0755 wpa_supplicant/wpa_supplicant %{buildroot}/%{_sbindir} +install -m 0755 wpa_supplicant/eapol_test %{buildroot}/%{_sbindir} +install -D -m 0644 wpa_supplicant/dbus/dbus-wpa_supplicant.conf \ + %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf +install -D -m 0644 wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service \ + %{buildroot}/%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service + +# man pages +install -d %{buildroot}%{_mandir}/man{5,8} +install -m 0644 wpa_supplicant/doc/docbook/*.8 %{buildroot}%{_mandir}/man8 +install -m 0644 wpa_supplicant/doc/docbook/*.5 %{buildroot}%{_mandir}/man5 + +# some cleanup in docs and examples +rm -f wpa_supplicant/doc/.cvsignore +rm -rf wpa_supplicant/doc/docbook +chmod -R 0644 wpa_supplicant/examples/*.py + + +%post +%systemd_post wpa_supplicant.service + + +%preun +%systemd_preun wpa_supplicant.service + +%triggerun -- wpa_supplicant < 0.7.3 +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply wpa_supplicant +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save wpa_supplicant >/dev/null 2>&1 ||: + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del wpa_supplicant >/dev/null 2>&1 || : +/bin/systemctl try-restart wpa_supplicant.service >/dev/null 2>&1 || : + + +%files +%config(noreplace) %{_sysconfdir}/wpa_supplicant/wpa_supplicant.conf +%config(noreplace) %{_sysconfdir}/sysconfig/wpa_supplicant +%dir %{_sysconfdir}/logrotate.d +%config(noreplace) %{_sysconfdir}/logrotate.d/wpa_supplicant +%{_unitdir}/wpa_supplicant.service +%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf +%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service +%{_sbindir}/wpa_passphrase +%{_sbindir}/wpa_supplicant +%{_sbindir}/wpa_cli +%{_sbindir}/eapol_test +%dir %{_sysconfdir}/wpa_supplicant +%{_mandir}/man8/wpa_supplicant.8.gz +%{_mandir}/man8/wpa_priv.8.gz +%{_mandir}/man8/wpa_passphrase.8.gz +%{_mandir}/man8/wpa_cli.8.gz +%{_mandir}/man8/wpa_background.8.gz +%{_mandir}/man8/eapol_test.8.gz +%{_mandir}/man5/* +%doc README +%doc wpa_supplicant/ChangeLog +%doc wpa_supplicant/eap_testing.txt +%doc wpa_supplicant/todo.txt +%doc wpa_supplicant/wpa_supplicant.conf +%doc wpa_supplicant/examples +%license COPYING + +%changelog +* Sat Jan 22 2022 Fedora Release Engineering - 1:2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/wpa_supplicant.sysconfig b/wpa_supplicant.sysconfig new file mode 100644 index 0000000000000000000000000000000000000000..33bd7af13513159193f19c64e3006e1f56da268a --- /dev/null +++ b/wpa_supplicant.sysconfig @@ -0,0 +1,11 @@ +# Use the flag "-i" before each of your interfaces, like so: +# INTERFACES="-ieth1 -iwlan0" +INTERFACES="" + +# Use the flag "-D" before each driver, like so: +# DRIVERS="-Dwext" +DRIVERS="" + +# Other arguments +# -s Use syslog logging backend +OTHER_ARGS="-s"