forked from pool/hostapd
Accepting request 172687 from Base:System
Cleanup spec file, remove init support since package builds only for Factory (forwarded request 171368 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/172687 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hostapd?expand=0&rev=22
This commit is contained in:
commit
1959c95b51
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:002e9dcb7e46cf82b5900a2fcf92b30fc8cdfd32a72d7fd4488588f1c013dfcc
|
||||
size 1327943
|
3
hostapd-2.0.tar.gz
Normal file
3
hostapd-2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:262ce394b930bccc3d65fb99ee380f28d36444978f524c845a98e8e29f4e9d35
|
||||
size 1376203
|
@ -7,7 +7,7 @@ Index: hostapd-0.7.3/hostapd/hostapd.conf
|
||||
|
||||
# Dump file for state information (on SIGUSR1)
|
||||
-dump_file=/tmp/hostapd.dump
|
||||
+dump_file=/var/run/hostapd.dump
|
||||
+dump_file=/run/hostapd.dump
|
||||
|
||||
# Interface for separate control program. If this is specified, hostapd
|
||||
# will create this directory and a UNIX domain socket for listening to requests
|
||||
|
@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 18 08:05:13 UTC 2013 - aj@suse.com
|
||||
|
||||
- Do not package /etc/init.d
|
||||
- Do not install init file since package contains a service file and
|
||||
is only build for Factory
|
||||
- Cleanup spec file
|
||||
- Use /run instead of /var/run
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 16:14:02 UTC 2013 - cfarrell@suse.com
|
||||
|
||||
- license update: GPL-2.0 or BSD-3-Clause
|
||||
README makes it clear that this is a dual license - i.e. choice of either
|
||||
or
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 9 17:49:22 UTC 2013 - avm-xandry@yandex.ru
|
||||
|
||||
- update to version 2.0
|
||||
- fix corrected file name hostapd.dif to hostapd.diff
|
||||
- in default config includes all features (IEEE 802.11w, Hotspot 2.0, IEEE 802.11ac, WPS, etc.)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 6 04:41:17 UTC 2012 - crrodriguez@opensuse.org
|
||||
|
||||
|
64
hostapd.dif
64
hostapd.dif
@ -1,64 +0,0 @@
|
||||
---
|
||||
hostapd/defconfig | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
--- a/hostapd/defconfig
|
||||
+++ b/hostapd/defconfig
|
||||
@@ -13,7 +13,7 @@
|
||||
CONFIG_DRIVER_HOSTAP=y
|
||||
|
||||
# Driver interface for wired authenticator
|
||||
-#CONFIG_DRIVER_WIRED=y
|
||||
+CONFIG_DRIVER_WIRED=y
|
||||
|
||||
# Driver interface for madwifi driver
|
||||
#CONFIG_DRIVER_MADWIFI=y
|
||||
@@ -30,7 +30,7 @@ CONFIG_DRIVER_NL80211=y
|
||||
#LIBS_c += -L/usr/local/lib
|
||||
|
||||
# Driver interface for no driver (e.g., RADIUS server only)
|
||||
-#CONFIG_DRIVER_NONE=y
|
||||
+CONFIG_DRIVER_NONE=y
|
||||
|
||||
# IEEE 802.11F/IAPP
|
||||
CONFIG_IAPP=y
|
||||
@@ -69,7 +69,7 @@ CONFIG_EAP_GTC=y
|
||||
CONFIG_EAP_TTLS=y
|
||||
|
||||
# EAP-SIM for the integrated EAP server
|
||||
-#CONFIG_EAP_SIM=y
|
||||
+CONFIG_EAP_SIM=y
|
||||
|
||||
# EAP-AKA for the integrated EAP server
|
||||
#CONFIG_EAP_AKA=y
|
||||
@@ -79,10 +79,10 @@ CONFIG_EAP_TTLS=y
|
||||
#CONFIG_EAP_AKA_PRIME=y
|
||||
|
||||
# EAP-PAX for the integrated EAP server
|
||||
-#CONFIG_EAP_PAX=y
|
||||
+CONFIG_EAP_PAX=y
|
||||
|
||||
# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
|
||||
-#CONFIG_EAP_PSK=y
|
||||
+CONFIG_EAP_PSK=y
|
||||
|
||||
# EAP-pwd for the integrated EAP server (secure authentication with a password)
|
||||
#CONFIG_EAP_PWD=y
|
||||
@@ -121,7 +121,7 @@ CONFIG_PKCS12=y
|
||||
|
||||
# RADIUS authentication server. This provides access to the integrated EAP
|
||||
# server from external hosts using RADIUS.
|
||||
-#CONFIG_RADIUS_SERVER=y
|
||||
+CONFIG_RADIUS_SERVER=y
|
||||
|
||||
# Build IPv6 support for RADIUS operations
|
||||
CONFIG_IPV6=y
|
||||
@@ -134,7 +134,7 @@ CONFIG_IPV6=y
|
||||
#CONFIG_DRIVER_RADIUS_ACL=y
|
||||
|
||||
# IEEE 802.11n (High Throughput) support
|
||||
-#CONFIG_IEEE80211N=y
|
||||
+CONFIG_IEEE80211N=y
|
||||
|
||||
# Remove debugging code that is printing out debug messages to stdout.
|
||||
# This can be used to reduce the size of the hostapd considerably if debugging
|
162
hostapd.diff
Normal file
162
hostapd.diff
Normal file
@ -0,0 +1,162 @@
|
||||
--- hostapd/defconfig 2013-01-12 21:42:53.000000000 +0600
|
||||
--- a/hostapd/defconfig
|
||||
+++ b/hostapd/defconfig
|
||||
@@ -30,7 +30,7 @@
|
||||
#LIBS_c += -L/usr/local/lib
|
||||
|
||||
# Driver interface for no driver (e.g., RADIUS server only)
|
||||
-#CONFIG_DRIVER_NONE=y
|
||||
+CONFIG_DRIVER_NONE=y
|
||||
|
||||
# IEEE 802.11F/IAPP
|
||||
CONFIG_IAPP=y
|
||||
@@ -45,7 +45,7 @@
|
||||
# This version is an experimental implementation based on IEEE 802.11w/D1.0
|
||||
# draft and is subject to change since the standard has not yet been finalized.
|
||||
# Driver support is also needed for IEEE 802.11w.
|
||||
-#CONFIG_IEEE80211W=y
|
||||
+CONFIG_IEEE80211W=y
|
||||
|
||||
# Integrated EAP server
|
||||
CONFIG_EAP=y
|
||||
@@ -69,53 +69,53 @@
|
||||
CONFIG_EAP_TTLS=y
|
||||
|
||||
# EAP-SIM for the integrated EAP server
|
||||
-#CONFIG_EAP_SIM=y
|
||||
+CONFIG_EAP_SIM=y
|
||||
|
||||
# EAP-AKA for the integrated EAP server
|
||||
-#CONFIG_EAP_AKA=y
|
||||
+CONFIG_EAP_AKA=y
|
||||
|
||||
# EAP-AKA' for the integrated EAP server
|
||||
# This requires CONFIG_EAP_AKA to be enabled, too.
|
||||
-#CONFIG_EAP_AKA_PRIME=y
|
||||
+CONFIG_EAP_AKA_PRIME=y
|
||||
|
||||
# EAP-PAX for the integrated EAP server
|
||||
-#CONFIG_EAP_PAX=y
|
||||
+CONFIG_EAP_PAX=y
|
||||
|
||||
# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
|
||||
-#CONFIG_EAP_PSK=y
|
||||
+CONFIG_EAP_PSK=y
|
||||
|
||||
# EAP-pwd for the integrated EAP server (secure authentication with a password)
|
||||
-#CONFIG_EAP_PWD=y
|
||||
+CONFIG_EAP_PWD=y
|
||||
|
||||
# EAP-SAKE for the integrated EAP server
|
||||
-#CONFIG_EAP_SAKE=y
|
||||
+CONFIG_EAP_SAKE=y
|
||||
|
||||
# EAP-GPSK for the integrated EAP server
|
||||
-#CONFIG_EAP_GPSK=y
|
||||
+CONFIG_EAP_GPSK=y
|
||||
# Include support for optional SHA256 cipher suite in EAP-GPSK
|
||||
-#CONFIG_EAP_GPSK_SHA256=y
|
||||
+CONFIG_EAP_GPSK_SHA256=y
|
||||
|
||||
# EAP-FAST for the integrated EAP server
|
||||
# Note: Default OpenSSL package does not include support for all the
|
||||
# functionality needed for EAP-FAST. If EAP-FAST is enabled with OpenSSL,
|
||||
# the OpenSSL library must be patched (openssl-0.9.9-session-ticket.patch)
|
||||
# to add the needed functions.
|
||||
-#CONFIG_EAP_FAST=y
|
||||
+CONFIG_EAP_FAST=y
|
||||
|
||||
# Wi-Fi Protected Setup (WPS)
|
||||
-#CONFIG_WPS=y
|
||||
+CONFIG_WPS=y
|
||||
# Enable WSC 2.0 support
|
||||
-#CONFIG_WPS2=y
|
||||
+CONFIG_WPS2=y
|
||||
# Enable UPnP support for external WPS Registrars
|
||||
-#CONFIG_WPS_UPNP=y
|
||||
+CONFIG_WPS_UPNP=y
|
||||
# Enable WPS support with NFC config method
|
||||
-#CONFIG_WPS_NFC=y
|
||||
+CONFIG_WPS_NFC=y
|
||||
|
||||
# EAP-IKEv2
|
||||
-#CONFIG_EAP_IKEV2=y
|
||||
+CONFIG_EAP_IKEV2=y
|
||||
|
||||
# Trusted Network Connect (EAP-TNC)
|
||||
-#CONFIG_EAP_TNC=y
|
||||
+CONFIG_EAP_TNC=y
|
||||
|
||||
# PKCS#12 (PFX) support (used to read private key and certificate file from
|
||||
# a file that usually has extension .p12 or .pfx)
|
||||
@@ -123,27 +123,27 @@
|
||||
|
||||
# RADIUS authentication server. This provides access to the integrated EAP
|
||||
# server from external hosts using RADIUS.
|
||||
-#CONFIG_RADIUS_SERVER=y
|
||||
+CONFIG_RADIUS_SERVER=y
|
||||
|
||||
# Build IPv6 support for RADIUS operations
|
||||
CONFIG_IPV6=y
|
||||
|
||||
# IEEE Std 802.11r-2008 (Fast BSS Transition)
|
||||
-#CONFIG_IEEE80211R=y
|
||||
+CONFIG_IEEE80211R=y
|
||||
|
||||
# Use the hostapd's IEEE 802.11 authentication (ACL), but without
|
||||
# the IEEE 802.11 Management capability (e.g., madwifi or FreeBSD/net80211)
|
||||
-#CONFIG_DRIVER_RADIUS_ACL=y
|
||||
+CONFIG_DRIVER_RADIUS_ACL=y
|
||||
|
||||
# IEEE 802.11n (High Throughput) support
|
||||
-#CONFIG_IEEE80211N=y
|
||||
+CONFIG_IEEE80211N=y
|
||||
|
||||
# Wireless Network Management (IEEE Std 802.11v-2011)
|
||||
# Note: This is experimental and not complete implementation.
|
||||
-#CONFIG_WNM=y
|
||||
+CONFIG_WNM=y
|
||||
|
||||
# IEEE 802.11ac (Very High Throughput) support
|
||||
-#CONFIG_IEEE80211AC=y
|
||||
+CONFIG_IEEE80211AC=y
|
||||
|
||||
# Remove debugging code that is printing out debug messages to stdout.
|
||||
# This can be used to reduce the size of the hostapd considerably if debugging
|
||||
@@ -165,7 +165,7 @@
|
||||
|
||||
# Enable support for fully dynamic VLANs. This enables hostapd to
|
||||
# automatically create bridge and VLAN interfaces if necessary.
|
||||
-#CONFIG_FULL_DYNAMIC_VLAN=y
|
||||
+CONFIG_FULL_DYNAMIC_VLAN=y
|
||||
|
||||
# Use netlink-based kernel API for VLAN operations instead of ioctl()
|
||||
# Note: This requires libnl 3.1 or newer.
|
||||
@@ -235,11 +235,11 @@
|
||||
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
|
||||
# can be enabled to get a stronger construction of messages when block ciphers
|
||||
# are used.
|
||||
-#CONFIG_TLSV11=y
|
||||
+CONFIG_TLSV11=y
|
||||
|
||||
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
|
||||
# can be enabled to enable use of stronger crypto algorithms.
|
||||
-#CONFIG_TLSV12=y
|
||||
+CONFIG_TLSV12=y
|
||||
|
||||
# If CONFIG_TLS=internal is used, additional library and include paths are
|
||||
# needed for LibTomMath. Alternatively, an integrated, minimal version of
|
||||
@@ -260,10 +260,10 @@
|
||||
# Interworking (IEEE 802.11u)
|
||||
# This can be used to enable functionality to improve interworking with
|
||||
# external networks.
|
||||
-#CONFIG_INTERWORKING=y
|
||||
+CONFIG_INTERWORKING=y
|
||||
|
||||
# Hotspot 2.0
|
||||
-#CONFIG_HS20=y
|
||||
+CONFIG_HS20=y
|
||||
|
||||
# Enable SQLite database support in hlr_auc_gw, EAP-SIM DB, and eap_user_file
|
||||
-#CONFIG_SQLITE=y
|
||||
+CONFIG_SQLITE=y
|
99
hostapd.init
99
hostapd.init
@ -1,99 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# SUSE system startup script for hostapd
|
||||
# Copyright (C) 1995--2005 Kurt Garloff, SUSE / Novell Inc.
|
||||
# Copyright (C) 2011 SUSE Linux Products GmbH
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
|
||||
# USA.
|
||||
#
|
||||
# /etc/init.d/hostapd
|
||||
# and its symbolic link
|
||||
# /usr/sbin/rchostapd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: hostapd
|
||||
# Required-Start: $syslog $remote_fs
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: hostap deamon
|
||||
# Description: IEEE 802.11 access point and authenticator
|
||||
### END INIT INFO
|
||||
|
||||
HOSTAPD_BIN=/usr/sbin/hostapd
|
||||
HOSTAPD_PID=/var/run/hostapd.pid
|
||||
HOSTAPD_ARGS="-B -P $HOSTAPD_PID"
|
||||
HOSTAPD_CONF=/etc/hostapd.conf
|
||||
|
||||
sysconf=/etc/sysconfig/hostapd
|
||||
if [ -e $sysconf ]; then
|
||||
. $sysconf
|
||||
fi
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
rc_reset
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting hostapd "
|
||||
/sbin/start_daemon -p $HOSTAPD_PID $HOSTAPD_BIN $HOSTAPD_ARGS $HOSTAPD_CONF
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down hostapd "
|
||||
/sbin/killproc $HOSTAPD_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart|condrestart)
|
||||
$0 status
|
||||
if test $? = 0; then
|
||||
$0 restart
|
||||
else
|
||||
rc_reset
|
||||
fi
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload service hostapd "
|
||||
/sbin/killproc -HUP $HOSTAPD_BIN
|
||||
touch $HOSTAPD_PID
|
||||
rc_status -v
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload service hostapd "
|
||||
/sbin/killproc -HUP $HOSTAPD_BIN
|
||||
touch $HOSTAPD_PID
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for service hostapd "
|
||||
/sbin/checkproc $HOSTAPD_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test $HOSTAPD_CONF -nt $HOSTAPD_PID && echo reload
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
42
hostapd.spec
42
hostapd.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package hostapd
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,25 +17,20 @@
|
||||
|
||||
|
||||
Name: hostapd
|
||||
%if 0%{?suse_version} > 1140
|
||||
BuildRequires: libnl-1_1-devel
|
||||
%else
|
||||
BuildRequires: libnl-devel
|
||||
%endif
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
Summary: Turns Your WLAN Card into a WPA capable Access Point
|
||||
License: BSD-3-Clause and GPL-2.0+
|
||||
License: GPL-2.0 or BSD-3-Clause
|
||||
Group: Hardware/Wifi
|
||||
Version: 1.0
|
||||
Version: 2.0
|
||||
Release: 0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: http://hostap.epitest.fi/
|
||||
PreReq: %insserv_prereq
|
||||
Source: http://hostap.epitest.fi/releases/hostapd-%{version}.tar.gz
|
||||
Source1: hostapd.init
|
||||
Source2: hostapd.service
|
||||
Patch: hostapd.dif
|
||||
Source1: hostapd.service
|
||||
Patch0: hostapd.diff
|
||||
Patch1: hostapd-tmp.diff
|
||||
%{?systemd_requires}
|
||||
|
||||
@ -48,14 +43,9 @@ madwifi, and prism54 drivers. It also supports wired IEEE 802.1X
|
||||
authentication via any ethernet driver.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Jouni Malinen <jkmaline@cc.hut.fi>
|
||||
|
||||
%prep
|
||||
%setup -n hostapd-%{version}
|
||||
%patch -p1
|
||||
%setup -q -n hostapd-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
cd hostapd
|
||||
@ -71,8 +61,7 @@ mkdir -p %{buildroot}/%{_sbindir}
|
||||
mkdir %{buildroot}/etc
|
||||
mkdir -p %{buildroot}/%{_mandir}/man8
|
||||
install -m 755 hostapd %{buildroot}/%{_sbindir}
|
||||
install -D -m 755 %{SOURCE1} %{buildroot}/etc/init.d/hostapd
|
||||
ln -s /etc/init.d/hostapd %{buildroot}/%{_sbindir}/rchostapd
|
||||
ln -s /usr/sbin/service %{buildroot}/%{_sbindir}/rchostapd
|
||||
install -m 755 hostapd_cli %{buildroot}/%{_sbindir}
|
||||
install -m 600 hostapd.conf %{buildroot}/etc
|
||||
install -m 644 hostapd.accept %{buildroot}/etc
|
||||
@ -83,30 +72,23 @@ install -m 644 hostapd.sim_db %{buildroot}/etc
|
||||
install -m 644 hostapd.vlan %{buildroot}/etc
|
||||
install -m 600 hostapd.wpa_psk %{buildroot}/etc
|
||||
install -m 644 hostapd.8 %{buildroot}/%{_mandir}/man8
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/hostapd.service
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/hostapd.service
|
||||
|
||||
%pre
|
||||
%service_add_pre hostapd.service
|
||||
|
||||
%post
|
||||
%service_add_post hostapd.service
|
||||
%insserv_cleanup
|
||||
|
||||
%preun
|
||||
%service_del_preun hostapd.service
|
||||
%{stop_on_removal hostapd}
|
||||
|
||||
%postun
|
||||
%service_del_postun hostapd.service
|
||||
%{restart_on_update hostapd}
|
||||
%insserv_cleanup
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) /etc/*
|
||||
/etc/init.d/hostapd
|
||||
%config(noreplace) /etc/hostapd.*
|
||||
%{_sbindir}/*
|
||||
%doc hostapd/ChangeLog COPYING hostapd/README hostapd/wired.conf hostapd/hostapd.conf
|
||||
%doc %{_mandir}/man8/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user