mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 05:41:12 +02:00
hostapd: karma PEAP-based AP patch added
This commit is contained in:
parent
37c7d12e58
commit
56b2a19e8e
7 changed files with 1343 additions and 0 deletions
579
net-wireless/hostapd/ChangeLog
Normal file
579
net-wireless/hostapd/ChangeLog
Normal file
|
|
@ -0,0 +1,579 @@
|
|||
# ChangeLog for net-wireless/hostapd
|
||||
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.110 2011/04/21 13:53:15 tomka Exp $
|
||||
|
||||
21 Apr 2011; Thomas Kahle <tomka@gentoo.org> hostapd-0.7.3.ebuild:
|
||||
x86 stable per bug 360997
|
||||
|
||||
29 Mar 2011; Christoph Mende <angelos@gentoo.org> hostapd-0.7.3.ebuild:
|
||||
Stable on amd64 wrt bug #360997
|
||||
|
||||
*hostapd-0.7.3 (08 Sep 2010)
|
||||
|
||||
08 Sep 2010; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-hostapd-0.6.8.ebuild, -hostapd-0.6.10.ebuild, -hostapd-0.7.2.ebuild,
|
||||
+hostapd-0.7.3.ebuild:
|
||||
Bumping to 0.7.3 and removing old versions.
|
||||
This version is the first in the 0.7 stable series from upstream.
|
||||
|
||||
*hostapd-0.7.2 (23 May 2010)
|
||||
|
||||
23 May 2010; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-hostapd-0.7.1.ebuild, +hostapd-0.7.2.ebuild:
|
||||
Bumping to 0.7.2, fixing bug #319923
|
||||
|
||||
*hostapd-0.7.1 (24 Jan 2010)
|
||||
|
||||
24 Jan 2010; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-hostapd-0.7.0.ebuild, -files/hostapd-0.7.0-fix_linking.patch,
|
||||
+hostapd-0.7.1.ebuild:
|
||||
Bumping to 0.7.1 , fixing bugs #301540 and #301542
|
||||
|
||||
*hostapd-0.7.0 (16 Jan 2010)
|
||||
|
||||
16 Jan 2010; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
+hostapd-0.7.0.ebuild, +files/hostapd-0.7.0-fix_linking.patch,
|
||||
metadata.xml:
|
||||
Bumping to 0.7.0
|
||||
|
||||
*hostapd-0.6.10 (14 Jan 2010)
|
||||
|
||||
14 Jan 2010; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.8.ebuild, -files/hostapd-0.6.8-conf.d,
|
||||
-files/hostapd-0.6.8-init.d, hostapd-0.6.9.ebuild,
|
||||
-files/hostapd-0.6.9-conf.d, -files/hostapd-0.6.9-init.d,
|
||||
+hostapd-0.6.10.ebuild, +files/hostapd-conf.d, +files/hostapd-init.d:
|
||||
Bumping to 0.6.10 and removing redundant init.d and conf.d files
|
||||
|
||||
11 Sep 2009; Diego E. Pettenò <flameeyes@gentoo.org>
|
||||
hostapd-0.6.8.ebuild, hostapd-0.6.9.ebuild:
|
||||
Fix RDEPEND assignment that nilled the runtime dependencies.
|
||||
|
||||
24 May 2009; Markus Meier <maekke@gentoo.org> hostapd-0.6.9.ebuild:
|
||||
amd64/x86 stable, bug #270148
|
||||
|
||||
21 May 2009; Brent Baude <ranger@gentoo.org> hostapd-0.6.9.ebuild:
|
||||
stable ppc, bug 270148
|
||||
|
||||
17 May 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
files/hostapd-0.6.8-init.d, files/hostapd-0.6.9-init.d:
|
||||
Fixing init script, so it is POSIX compliant, fixing bug #269063
|
||||
|
||||
16 Apr 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.9.ebuild:
|
||||
Porting ebuild to EAPI 2
|
||||
|
||||
05 Apr 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.5.10-conf.d, -files/hostapd-0.5.10-init.d,
|
||||
-hostapd-0.5.10.ebuild:
|
||||
Removing 0.5.10, since it has been superseeded by 0.6.8
|
||||
|
||||
04 Apr 2009; Markus Meier <maekke@gentoo.org> hostapd-0.6.8.ebuild:
|
||||
amd64/x86 stable, bug #263673
|
||||
|
||||
24 Mar 2009; Joseph Jezak <josejx@gentoo.org> hostapd-0.6.8.ebuild:
|
||||
Marked ppc stable for bug #263673.
|
||||
|
||||
*hostapd-0.6.9 (25 Mar 2009)
|
||||
|
||||
25 Mar 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.7-conf.d, -files/hostapd-0.6.7-init.d,
|
||||
+files/hostapd-0.6.9-conf.d, +files/hostapd-0.6.9-init.d,
|
||||
-hostapd-0.6.7.ebuild, +hostapd-0.6.9.ebuild:
|
||||
Bumping to 0.6.9 and removing 0.6.7
|
||||
|
||||
27 Feb 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.7.ebuild, hostapd-0.6.8.ebuild:
|
||||
Added info regarding madwifi and wme_enabled
|
||||
|
||||
27 Feb 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.7.ebuild, hostapd-0.6.8.ebuild:
|
||||
Adding support for 802.11n and removing stable flags from 0.6.7, since it
|
||||
is still from the development branch.
|
||||
|
||||
25 Feb 2009; Markus Meier <maekke@gentoo.org> hostapd-0.6.7.ebuild:
|
||||
amd64/x86 stable, bug #259285
|
||||
|
||||
*hostapd-0.6.8 (16 Feb 2009)
|
||||
|
||||
16 Feb 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
+files/hostapd-0.6.8-conf.d, +files/hostapd-0.6.8-init.d,
|
||||
+hostapd-0.6.8.ebuild:
|
||||
Bumping to 0.6.8
|
||||
|
||||
*hostapd-0.6.7 (06 Jan 2009)
|
||||
|
||||
06 Jan 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.6-conf.d, -files/hostapd-0.6.6-init.d,
|
||||
+files/hostapd-0.6.7-conf.d, +files/hostapd-0.6.7-init.d, metadata.xml,
|
||||
-hostapd-0.6.6.ebuild, +hostapd-0.6.7.ebuild:
|
||||
Bumping to 0.6.7 and adding WPS support to the ebuild
|
||||
|
||||
29 Dec 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.6.ebuild:
|
||||
Fixing typo in version check reported by Jackie
|
||||
|
||||
*hostapd-0.6.6 (14 Dec 2008)
|
||||
|
||||
14 Dec 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.5-conf.d, -files/hostapd-0.6.5-init.d,
|
||||
+files/hostapd-0.6.6-conf.d, +files/hostapd-0.6.6-init.d,
|
||||
-hostapd-0.6.5.ebuild, +hostapd-0.6.6.ebuild:
|
||||
Bumping to 0.6.6
|
||||
|
||||
*hostapd-0.6.5 (14 Dec 2008)
|
||||
|
||||
14 Dec 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.4-conf.d, -files/hostapd-0.6.4-init.d,
|
||||
+files/hostapd-0.6.5-conf.d, +files/hostapd-0.6.5-init.d,
|
||||
-hostapd-0.6.4.ebuild, +hostapd-0.6.5.ebuild:
|
||||
Bumping to 0.6.5 and removing broken nl80211 check
|
||||
|
||||
23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
|
||||
add GLEP 56 USE flag desc from use.local.desc
|
||||
|
||||
20 Aug 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.4.9-conf.d, -files/hostapd-0.4.9-init.d,
|
||||
-hostapd-0.4.9.ebuild:
|
||||
Removing 0.4.9, since it has been out of development for a long time, and
|
||||
0.5.10 finally is stable
|
||||
|
||||
20 Aug 2008; Markus Meier <maekke@gentoo.org> hostapd-0.5.10.ebuild:
|
||||
amd64/x86 stable, bug #234503
|
||||
|
||||
12 Aug 2008; Brent Baude <ranger@gentoo.org> hostapd-0.5.10.ebuild:
|
||||
stable ppc, bug 234503
|
||||
|
||||
*hostapd-0.6.4 (11 Aug 2008)
|
||||
|
||||
11 Aug 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.3-conf.d, -files/004-nl80211-rename-STAT-to-INFO.patch,
|
||||
-files/hostapd-0.6.3-init.d, +files/hostapd-0.6.4-conf.d,
|
||||
+files/hostapd-0.6.4-init.d, metadata.xml, -hostapd-0.6.3-r1.ebuild,
|
||||
+hostapd-0.6.4.ebuild:
|
||||
Bumping to version 0.6.4 and adding use flag info to metadata.xml
|
||||
|
||||
11 Jul 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.3-r1.ebuild:
|
||||
Added note about kernel missing patch with download link
|
||||
|
||||
*hostapd-0.6.3-r1 (05 Jun 2008)
|
||||
|
||||
05 Jun 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
+files/004-nl80211-rename-STAT-to-INFO.patch, -hostapd-0.6.3.ebuild,
|
||||
+hostapd-0.6.3-r1.ebuild:
|
||||
Bumping to 0.6.3-r1, finally adding support for nl80211.
|
||||
|
||||
03 Jun 2008; Michael Sterrett <mr_bones_@gentoo.org> hostapd-0.4.9.ebuild,
|
||||
hostapd-0.5.10.ebuild, hostapd-0.6.3.ebuild:
|
||||
remove reference to old, removed net-wireless/madwifi-ng
|
||||
|
||||
*hostapd-0.5.10 (15 May 2008)
|
||||
|
||||
15 May 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.5.8-conf.d, -files/hostapd-0.5.8-init.d,
|
||||
+files/hostapd-0.5.10-conf.d, +files/hostapd-0.5.10-init.d,
|
||||
-hostapd-0.5.8.ebuild, +hostapd-0.5.10.ebuild:
|
||||
Bumping to version 0.5.10
|
||||
|
||||
*hostapd-0.6.3 (11 Mar 2008)
|
||||
|
||||
11 Mar 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.1-conf.d, -files/hostapd-0.6.1-init.d,
|
||||
+files/hostapd-0.6.3-conf.d, +files/hostapd-0.6.3-init.d,
|
||||
-hostapd-0.6.1.ebuild, +hostapd-0.6.3.ebuild:
|
||||
Bumping to version 0.6.3
|
||||
|
||||
*hostapd-0.6.1 (10 Dec 2007)
|
||||
|
||||
10 Dec 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.6.0-conf.d, -files/hostapd-0.6.0-init.d,
|
||||
+files/hostapd-0.6.1-conf.d, +files/hostapd-0.6.1-init.d,
|
||||
-hostapd-0.6.0.ebuild, +hostapd-0.6.1.ebuild:
|
||||
Bumping to version 0.6.1
|
||||
|
||||
10 Sep 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
hostapd-0.6.0.ebuild:
|
||||
Removed support for mac80211 since it is broken for now
|
||||
|
||||
19 Jun 2007; Stefan Schweizer <genstef@gentoo.org> hostapd-0.4.9.ebuild,
|
||||
hostapd-0.5.8.ebuild, hostapd-0.6.0.ebuild:
|
||||
New madwifi-ng-tools depends thanks to Gordon Malm
|
||||
<bugs-gentoo-org-01@bumpin.org> in bug 179348
|
||||
|
||||
*hostapd-0.5.8 (06 Jun 2007)
|
||||
|
||||
06 Jun 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.5.7-conf.d, -files/hostapd-0.5.7-init.d,
|
||||
+files/hostapd-0.5.8-conf.d, +files/hostapd-0.5.8-init.d,
|
||||
-hostapd-0.5.7.ebuild, +hostapd-0.5.8.ebuild:
|
||||
Bumping to version 0.5.8 and removing 0.5.7
|
||||
|
||||
*hostapd-0.6.0 (06 Jun 2007)
|
||||
|
||||
06 Jun 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
|
||||
-files/hostapd-0.4.7-conf.d, -files/hostapd-0.4.7-init.d,
|
||||
-files/hostapd-0.4.8-conf.d, -files/hostapd-0.4.8-init.d,
|
||||
-files/hostapd-0.5.2-conf.d, -files/hostapd-0.5.2-init.d,
|
||||
-files/hostapd-0.5.2-ssl.patch, -files/hostapd-0.5.3-conf.d,
|
||||
-files/hostapd-0.5.3-init.d, -files/hostapd-0.5.3-os_get_random.patch,
|
||||
-files/hostapd-0.5.4-conf.d, -files/hostapd-0.5.4-init.d,
|
||||
+files/hostapd-0.6.0-conf.d, +files/hostapd-0.6.0-init.d, metadata.xml,
|
||||
+hostapd-0.6.0.ebuild:
|
||||
Bumping to version 0.6.0, removed stalled files and added myself as maintainer
|
||||
|
||||
11 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> metadata.xml:
|
||||
Fix metadata.xml white space.
|
||||
|
||||
11 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> hostapd-0.4.9.ebuild,
|
||||
hostapd-0.5.7.ebuild:
|
||||
Fix ROOT usage wrt bug #168039.
|
||||
|
||||
*hostapd-0.5.7 (10 Feb 2007)
|
||||
|
||||
10 Feb 2007; Christian Heim <phreak@gentoo.org>
|
||||
+files/hostapd-0.5.7-conf.d, +files/hostapd-0.5.7-init.d,
|
||||
+hostapd-0.5.7.ebuild:
|
||||
Version bump, thanks to Conrad Kostecki <ConiKost at gmx.de> in #150769.
|
||||
|
||||
10 Sep 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
|
||||
Remove brix from metadata.xml.
|
||||
|
||||
03 Sep 2006; Michael Hanselmann <hansmi@gentoo.org> hostapd-0.4.9.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
26 Jun 2006; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.4.9.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
*hostapd-0.5.4 (21 Jun 2006)
|
||||
|
||||
21 Jun 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.5.4-conf.d, +files/hostapd-0.5.4-init.d,
|
||||
+hostapd-0.5.4.ebuild:
|
||||
New developer snapshot.
|
||||
|
||||
*hostapd-0.4.9 (27 May 2006)
|
||||
|
||||
27 May 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.9-conf.d, +files/hostapd-0.4.9-init.d,
|
||||
+hostapd-0.4.9.ebuild:
|
||||
Version bump.
|
||||
|
||||
*hostapd-0.5.3 (29 Apr 2006)
|
||||
|
||||
29 Apr 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.5.3-conf.d, +files/hostapd-0.5.3-init.d,
|
||||
+files/hostapd-0.5.3-os_get_random.patch, +hostapd-0.5.3.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
14 Apr 2006; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.4.8.ebuild,
|
||||
hostapd-0.5.2.ebuild:
|
||||
Updated madwifi dependencies.
|
||||
|
||||
26 Mar 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
-files/hostapd-0.5.0-conf.d, -files/hostapd-0.5.0-init.d,
|
||||
-files/hostapd-0.5.1-conf.d, -files/hostapd-0.5.1-init.d,
|
||||
+files/hostapd-0.5.2-ssl.patch, -hostapd-0.4.7-r1.ebuild,
|
||||
-hostapd-0.5.0.ebuild, -hostapd-0.5.0-r1.ebuild, -hostapd-0.5.1.ebuild,
|
||||
hostapd-0.5.2.ebuild:
|
||||
Fix compilation with USE=-ssl, thanks to langthang in bug #127598. Pruned
|
||||
old ebuilds.
|
||||
|
||||
*hostapd-0.5.2 (20 Mar 2006)
|
||||
|
||||
20 Mar 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.5.2-conf.d, +files/hostapd-0.5.2-init.d,
|
||||
+hostapd-0.5.2.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
15 Mar 2006; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.4.8.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
27 Feb 2006; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.4.8.ebuild,
|
||||
hostapd-0.5.0.ebuild, hostapd-0.5.0-r1.ebuild, hostapd-0.5.1.ebuild:
|
||||
Fix madwifi compilation with ROOT != "/".
|
||||
|
||||
19 Feb 2006; Michael Hanselmann <hansmi@gentoo.org>
|
||||
hostapd-0.4.7-r2.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
16 Feb 2006; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.5.0.ebuild,
|
||||
hostapd-0.5.0-r1.ebuild, hostapd-0.5.1.ebuild:
|
||||
Fix building with USE=-ssl. Thanks to langthang in bug #122987.
|
||||
|
||||
*hostapd-0.4.8 (14 Feb 2006)
|
||||
|
||||
14 Feb 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.8-conf.d, +files/hostapd-0.4.8-init.d,
|
||||
+hostapd-0.4.8.ebuild:
|
||||
New stable release from upstream. Backported madwifi support from 0.5.x
|
||||
ebuilds.
|
||||
|
||||
13 Feb 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
hostapd-0.4.7-r2.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
03 Feb 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
-files/hostapd-0.3.9-conf.d, -files/hostapd-0.3.9-init.d,
|
||||
-files/hostapd-0.4.5-conf.d, -files/hostapd-0.4.5-init.d,
|
||||
-files/hostapd-0.4.5-prism54.patch, -files/hostapd-0.4.6-conf.d,
|
||||
-files/hostapd-0.4.6-init.d, -files/hostapd.init.d, -hostapd-0.4.5.ebuild,
|
||||
-hostapd-0.4.6.ebuild, -hostapd-0.4.7.ebuild:
|
||||
Pruned old ebuilds.
|
||||
|
||||
*hostapd-0.5.1 (30 Jan 2006)
|
||||
|
||||
30 Jan 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.5.1-conf.d, +files/hostapd-0.5.1-init.d,
|
||||
+hostapd-0.5.1.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
*hostapd-0.5.0-r1 (09 Jan 2006)
|
||||
*hostapd-0.4.7-r2 (09 Jan 2006)
|
||||
|
||||
09 Jan 2006; Henrik Brix Andersen <brix@gentoo.org>
|
||||
files/hostapd-0.4.7-init.d, files/hostapd-0.5.0-init.d,
|
||||
+hostapd-0.4.7-r2.ebuild, +hostapd-0.5.0-r1.ebuild:
|
||||
Fix init scripts to work with baselayout-1.12.0_rcX.
|
||||
|
||||
02 Jan 2006; Michael Hanselmann <hansmi@gentoo.org>
|
||||
hostapd-0.4.7-r1.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
30 Dec 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
hostapd-0.4.7-r1.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
*hostapd-0.4.7-r1 (30 Dec 2005)
|
||||
|
||||
30 Dec 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+hostapd-0.4.7-r1.ebuild:
|
||||
Added version without madwifi support in preparation for marking it stable
|
||||
on x86.
|
||||
|
||||
24 Dec 2005; Michael Hanselmann <hansmi@gentoo.org>
|
||||
hostapd-0.3.9-r1.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
*hostapd-0.5.0 (20 Dec 2005)
|
||||
|
||||
20 Dec 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.5.0-conf.d, +files/hostapd-0.5.0-init.d,
|
||||
+hostapd-0.5.0.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
*hostapd-0.4.7 (21 Nov 2005)
|
||||
|
||||
21 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.7-conf.d, +files/hostapd-0.4.7-init.d,
|
||||
+hostapd-0.4.7.ebuild:
|
||||
First release of new stable branch.
|
||||
|
||||
*hostapd-0.4.6 (29 Oct 2005)
|
||||
|
||||
29 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.6-conf.d, +files/hostapd-0.4.6-init.d,
|
||||
+hostapd-0.4.6.ebuild:
|
||||
New development release.
|
||||
|
||||
22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
-files/hostapd-0.4.3-conf.d, -files/hostapd-0.4.3-init.d,
|
||||
-files/hostapd-0.4.4-conf.d, -files/hostapd-0.4.4-init.d,
|
||||
-hostapd-0.4.3.ebuild, -hostapd-0.4.4.ebuild, -hostapd-0.4.4-r1.ebuild:
|
||||
Pruned old versions.
|
||||
|
||||
*hostapd-0.4.5 (17 Oct 2005)
|
||||
|
||||
17 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.5-conf.d, +files/hostapd-0.4.5-init.d,
|
||||
+files/hostapd-0.4.5-prism54.patch, +hostapd-0.4.5.ebuild:
|
||||
New development snapshot, bug #108319.
|
||||
|
||||
17 Sep 2005; Simon Stelling <blubb@gentoo.org> hostapd-0.4.4-r1.ebuild:
|
||||
added ~amd64 keyword
|
||||
|
||||
*hostapd-0.4.4-r1 (22 Aug 2005)
|
||||
|
||||
22 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
files/hostapd-0.4.4-init.d, +hostapd-0.4.4-r1.ebuild:
|
||||
Install more example configuration files, use SIGHUP for reloading
|
||||
configuration in init script.
|
||||
|
||||
*hostapd-0.4.4 (22 Aug 2005)
|
||||
|
||||
22 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+files/hostapd-0.4.4-conf.d, +files/hostapd-0.4.4-init.d,
|
||||
+hostapd-0.4.4.ebuild:
|
||||
New development snapshot. Compile against headers installed by
|
||||
net-wireless/madwifi-driver instead of local snapshot.
|
||||
|
||||
16 Aug 2005; Henrik Brix Andersen <brix@gentoo.org> ChangeLog:
|
||||
Stable on x86.
|
||||
|
||||
13 Jul 2005; <brix@gentoo.org> -files/hostapd-0.4.0-conf.d,
|
||||
-files/hostapd-0.4.0-init.d, -files/hostapd-0.4.1-conf.d,
|
||||
-files/hostapd-0.4.1-init.d, -files/hostapd-0.4.2-conf.d,
|
||||
-files/hostapd-0.4.2-init.d, -hostapd-0.2.5.ebuild, -hostapd-0.2.6.ebuild,
|
||||
-hostapd-0.3.9.ebuild, -hostapd-0.4.0-r1.ebuild, -hostapd-0.4.1.ebuild,
|
||||
-hostapd-0.4.2.ebuild:
|
||||
Pruned old ebuilds.
|
||||
|
||||
08 Jul 2005; <brix@gentoo.org> hostapd-0.3.9.ebuild,
|
||||
hostapd-0.3.9-r1.ebuild, hostapd-0.4.0-r1.ebuild, hostapd-0.4.1.ebuild,
|
||||
hostapd-0.4.2.ebuild, hostapd-0.4.3.ebuild:
|
||||
Fixed DEPEND/RDEPEND issue.
|
||||
|
||||
*hostapd-0.4.3 (27 Jun 2005)
|
||||
|
||||
27 Jun 2005; <brix@gentoo.org> +files/hostapd-0.4.3-conf.d,
|
||||
+files/hostapd-0.4.3-init.d, +hostapd-0.4.3.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
27 Jun 2005; David Holm <dholm@gentoo.org> hostapd-0.3.7.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
*hostapd-0.3.9-r1 (13 Jun 2005)
|
||||
|
||||
13 Jun 2005; <brix@gentoo.org> +files/hostapd-0.3.9-conf.d,
|
||||
+files/hostapd-0.3.9-init.d, +hostapd-0.3.9-r1.ebuild:
|
||||
Backported 0.4.x ebuild fixes to 0.3.9.
|
||||
|
||||
*hostapd-0.4.2 (13 Jun 2005)
|
||||
|
||||
13 Jun 2005; <brix@gentoo.org> +files/hostapd-0.4.2-conf.d,
|
||||
+files/hostapd-0.4.2-init.d, +hostapd-0.4.2.ebuild:
|
||||
New development release.
|
||||
|
||||
*hostapd-0.3.9 (11 Jun 2005)
|
||||
|
||||
11 Jun 2005; <brix@gentoo.org> +hostapd-0.3.9.ebuild:
|
||||
New stable release.
|
||||
|
||||
*hostapd-0.4.1 (23 May 2005)
|
||||
|
||||
23 May 2005; <brix@gentoo.org> +files/hostapd-0.4.1-conf.d,
|
||||
+files/hostapd-0.4.1-init.d, +hostapd-0.4.1.ebuild:
|
||||
New development release.
|
||||
|
||||
11 May 2005; <brix@gentoo.org> -hostapd-0.4.0.ebuild:
|
||||
Removed old ebuild
|
||||
|
||||
*hostapd-0.4.0-r1 (29 Apr 2005)
|
||||
|
||||
29 Apr 2005; <brix@gentoo.org> +files/hostapd-0.4.0-conf.d,
|
||||
+files/hostapd-0.4.0-init.d, +hostapd-0.4.0-r1.ebuild:
|
||||
Install hostapd_cli and man pages, restructured init script.
|
||||
|
||||
*hostapd-0.4.0 (27 Apr 2005)
|
||||
|
||||
27 Apr 2005; <brix@gentoo.org> +hostapd-0.4.0.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
16 Apr 2005; <brix@gentoo.org> hostapd-0.3.7.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
13 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> -hostapd-0.3.5.ebuild,
|
||||
-hostapd-0.3.7_pre.ebuild:
|
||||
Pruned old versions.
|
||||
|
||||
*hostapd-0.3.7 (13 Feb 2005)
|
||||
|
||||
13 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.7.ebuild:
|
||||
New stable version from upstream.
|
||||
|
||||
*hostapd-0.3.7_pre (07 Feb 2005)
|
||||
|
||||
07 Feb 2005; Henrik Brix Andersen <brix@gentoo.org>
|
||||
+hostapd-0.3.7_pre.ebuild:
|
||||
Added pre-release of 0.3.7 which is supposed to go stable soon, please test.
|
||||
|
||||
25 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> -hostapd-0.2.4.ebuild,
|
||||
-hostapd-0.3.0.ebuild, -hostapd-0.3.1.ebuild, -hostapd-0.3.2.ebuild,
|
||||
-hostapd-0.3.3.ebuild, -hostapd-0.3.4.ebuild:
|
||||
Pruned old versions.
|
||||
|
||||
*hostapd-0.3.5 (24 Jan 2005)
|
||||
|
||||
24 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.5.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
18 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.2.4.ebuild,
|
||||
hostapd-0.2.5.ebuild, hostapd-0.2.6.ebuild, hostapd-0.3.0.ebuild,
|
||||
hostapd-0.3.1.ebuild, hostapd-0.3.2.ebuild, hostapd-0.3.3.ebuild,
|
||||
hostapd-0.3.4.ebuild:
|
||||
Removed hostap-driver dependency, fixes bug #78094.
|
||||
|
||||
14 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.2.6.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
*hostapd-0.3.4 (10 Jan 2005)
|
||||
|
||||
10 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.4.ebuild:
|
||||
New development version, bumped included madwifi-driver.
|
||||
|
||||
*hostapd-0.3.3 (03 Jan 2005)
|
||||
|
||||
03 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.3.ebuild:
|
||||
New development snapshot.
|
||||
|
||||
*hostapd-0.2.6 (26 Dec 2004)
|
||||
|
||||
26 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.2.6.ebuild:
|
||||
Version bump.
|
||||
|
||||
*hostapd-0.3.2 (20 Dec 2004)
|
||||
|
||||
20 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.2.ebuild:
|
||||
Added new development snapshot.
|
||||
|
||||
*hostapd-0.3.1 (13 Dec 2004)
|
||||
|
||||
13 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.1.ebuild:
|
||||
Version bump (development snapshot)
|
||||
|
||||
*hostapd-0.3.0 (12 Dec 2004)
|
||||
|
||||
12 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.3.0.ebuild:
|
||||
Version bump. Please note that version 0.3.0 is a development snapshot.
|
||||
|
||||
12 Dec 2004; Daniel Black <dragonheart@gentoo.org> hostapd-0.2.5.ebuild:
|
||||
ppc stable as per bug #74117. Changed DEPEND on kernel modules to a RDEPEND.
|
||||
|
||||
10 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> -hostapd-0.1.0.ebuild,
|
||||
-hostapd-0.1.3.ebuild:
|
||||
Pruned ancient versions.
|
||||
|
||||
27 Nov 2004; Wolfram Schlich <wschlich@gentoo.org> hostapd-0.2.5.ebuild:
|
||||
mark stable on x86
|
||||
|
||||
01 Nov 2004; Henrik Brix Andersen <brix@gentoo.org> hostapd-0.1.0.ebuild,
|
||||
hostapd-0.1.3.ebuild, hostapd-0.2.4.ebuild, hostapd-0.2.5.ebuild:
|
||||
Use tc-getCC() from toolchain-funcs.eclass, fixes bug #69282.
|
||||
|
||||
*hostapd-0.2.5 (25 Oct 2004)
|
||||
|
||||
25 Oct 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.2.5.ebuild:
|
||||
Version bump. Cleaned up ebuild.
|
||||
|
||||
*hostapd-0.2.4 (14 Sep 2004)
|
||||
|
||||
14 Sep 2004; Henrik Brix Andersen <brix@gentoo.org> +hostapd-0.2.4.ebuild:
|
||||
Bump. Ebuild by latexer@gentoo.org.
|
||||
|
||||
*hostapd-0.1.3 (09 Feb 2004)
|
||||
|
||||
09 Feb 2004; Wolfram Schlich <wschlich@gentoo.org> hostapd-0.1.3.ebuild:
|
||||
Version bump
|
||||
|
||||
16 Dec 2003; Wolfram Schlich <wschlich@gentoo.org> hostapd-0.1.0.ebuild:
|
||||
mark stable on x86
|
||||
|
||||
11 Nov 2003; Peter Johanson <latexer@gentoo.org> metadata.xml:
|
||||
Added to the new "mobile" herd.
|
||||
|
||||
*hostapd-0.1.0 (21 Oct 2003)
|
||||
|
||||
21 Oct 2003; Wolfram Schlich <wschlich@gentoo.org> hostapd-0.1.0.ebuild,
|
||||
metadata.xml:
|
||||
Initial import
|
||||
|
||||
7
net-wireless/hostapd/Manifest
Normal file
7
net-wireless/hostapd/Manifest
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
AUX hostapd-0.7.3-karma.patch 17778 RMD160 e6fb21ba941c8c0578fdf4bcaad3970b4182d580 SHA1 5264175ec18fc44dd437525eabbde56f438b958d SHA256 28b8963c836e0208d8f621c6345e27d66ad2a8df33eec99d2505fc7980019ee8
|
||||
AUX hostapd-conf.d 245 RMD160 88b816218cb37d32fd940db17ece84d612c87f14 SHA1 0d88865c313bf1ffbc168029a13c76f288280a3d SHA256 916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d
|
||||
AUX hostapd-init.d 1015 RMD160 9c5908b38de714f6c79aad61ee2c248bf9d06c0a SHA1 6238deb6c618169ab5a8147850a1a0e594d69ba3 SHA256 d2c0f0d97a8c7d25e723c55c4377c1f7344762375998cc8498788f3a340fdf95
|
||||
DIST hostapd-0.7.3.tar.gz 1138869 RMD160 3d901166172cf634ecab4bd8426a33695b1e1070 SHA1 7a8853fe41ee5a2b9f03f608cf7a61c7ccea4f4c SHA256 31eb2781f37e1a4c27969d1594f8019c0ca87779349c099ab812833289961567
|
||||
EBUILD hostapd-0.7.3-r1.ebuild 5196 RMD160 c64ab6b1b4383012cf8c5fa3d888ef2ef0110d99 SHA1 177365371ab8b4d30c3f6de5e3628a1e7da579dc SHA256 c1d3482187cebb1723218f78e481ad6eb6ea1e84671211d2eb0d0c341e9754e3
|
||||
MISC ChangeLog 20312 RMD160 c4c737a7b61d845873ff118e070c73a6cda1b20d SHA1 6757bce5e168416c6c388d53740978dba230ba6f SHA256 4a1673cde56f1b7ea1dfd20f0ac702ad3e7e916b84cfdf4f5aa0448d01b13659
|
||||
MISC metadata.xml 752 RMD160 f895add3fe282efb5fd3fba223d16b28fabe2e9e SHA1 1c4e58ae3628f9c433d939e5d973e1c795aa58f6 SHA256 78c8bab11c00f4988d677b1f4bf5a66c3221c0f9a3c46cfaf333a8857f250662
|
||||
481
net-wireless/hostapd/files/hostapd-0.7.3-karma.patch
Normal file
481
net-wireless/hostapd/files/hostapd-0.7.3-karma.patch
Normal file
|
|
@ -0,0 +1,481 @@
|
|||
diff -urN hostapd-0.7.3.orig/hostapd/Makefile hostapd-0.7.3/hostapd/Makefile
|
||||
--- hostapd-0.7.3.orig/hostapd/Makefile 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/hostapd/Makefile 2011-05-02 15:59:46.787000009 +0800
|
||||
@@ -3,7 +3,7 @@
|
||||
endif
|
||||
|
||||
ifndef CFLAGS
|
||||
-CFLAGS = -MMD -O2 -Wall -g
|
||||
+CFLAGS = -MMD -O2 -Wall -DDEBUG -g -pg
|
||||
endif
|
||||
|
||||
CFLAGS += -I../src
|
||||
@@ -84,6 +84,7 @@
|
||||
|
||||
OBJS += ../src/eapol_auth/eapol_auth_sm.o
|
||||
|
||||
+OBJS += ../src/karma/karma.o
|
||||
|
||||
ifndef CONFIG_NO_DUMP_STATE
|
||||
# define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
|
||||
diff -urN hostapd-0.7.3.orig/hostapd/hostapd.conf hostapd-0.7.3/hostapd/hostapd.conf
|
||||
--- hostapd-0.7.3.orig/hostapd/hostapd.conf 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/hostapd/hostapd.conf 2011-05-02 15:59:46.788000008 +0800
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
|
||||
# management frames); ath0 for madwifi
|
||||
-interface=wlan0
|
||||
+interface=wlan1
|
||||
|
||||
# In case of madwifi, atheros, and nl80211 driver interfaces, an additional
|
||||
# configuration parameter, bridge, may be used to notify hostapd if the
|
||||
@@ -23,6 +23,7 @@
|
||||
# Use driver=none if building hostapd as a standalone RADIUS server that does
|
||||
# not control any wireless/wired driver.
|
||||
# driver=hostap
|
||||
+driver=nl80211
|
||||
|
||||
# hostapd event logger configuration
|
||||
#
|
||||
@@ -88,7 +89,7 @@
|
||||
# Country code (ISO/IEC 3166-1). Used to set regulatory domain.
|
||||
# Set as needed to indicate country in which device is operating.
|
||||
# This can limit available channels and transmit power.
|
||||
-#country_code=US
|
||||
+country_code=US
|
||||
|
||||
# Enable IEEE 802.11d. This advertises the country_code and the set of allowed
|
||||
# channels and transmit power levels based on the regulatory limits. The
|
||||
@@ -99,14 +100,14 @@
|
||||
|
||||
# Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g,
|
||||
# Default: IEEE 802.11b
|
||||
-hw_mode=a
|
||||
+hw_mode=b
|
||||
|
||||
# Channel number (IEEE 802.11)
|
||||
# (default: 0, i.e., not set)
|
||||
# Please note that some drivers (e.g., madwifi) do not use this value from
|
||||
# hostapd and the channel will need to be configuration separately with
|
||||
# iwconfig.
|
||||
-channel=60
|
||||
+channel=1
|
||||
|
||||
# Beacon interval in kus (1.024 ms) (default: 100; range 15..65535)
|
||||
beacon_int=100
|
||||
@@ -410,7 +411,7 @@
|
||||
##### IEEE 802.1X-2004 related configuration ##################################
|
||||
|
||||
# Require IEEE 802.1X authorization
|
||||
-#ieee8021x=1
|
||||
+ieee8021x=1
|
||||
|
||||
# IEEE 802.1X/EAPOL version
|
||||
# hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL
|
||||
@@ -418,7 +419,7 @@
|
||||
# the new version number correctly (they seem to drop the frames completely).
|
||||
# In order to make hostapd interoperate with these clients, the version number
|
||||
# can be set to the older version (1) with this configuration value.
|
||||
-#eapol_version=2
|
||||
+eapol_version=1
|
||||
|
||||
# Optional displayable message sent with EAP Request-Identity. The first \0
|
||||
# in this string will be converted to ASCII-0 (nul). This can be used to
|
||||
@@ -460,16 +461,18 @@
|
||||
# Use integrated EAP server instead of external RADIUS authentication
|
||||
# server. This is also needed if hostapd is configured to act as a RADIUS
|
||||
# authentication server.
|
||||
-eap_server=0
|
||||
+eap_server=1
|
||||
|
||||
# Path for EAP server user database
|
||||
#eap_user_file=/etc/hostapd.eap_user
|
||||
|
||||
# CA certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
|
||||
#ca_cert=/etc/hostapd.ca.pem
|
||||
+ca_cert=/etc/hostapd/sf_bundle.pem
|
||||
|
||||
# Server certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
|
||||
#server_cert=/etc/hostapd.server.pem
|
||||
+server_cert=/etc/hostapd/INTRANET.pem
|
||||
|
||||
# Private key matching with the server certificate for EAP-TLS/PEAP/TTLS
|
||||
# This may point to the same file as server_cert if both certificate and key
|
||||
@@ -477,9 +480,11 @@
|
||||
# used by commenting out server_cert and specifying the PFX file as the
|
||||
# private_key.
|
||||
#private_key=/etc/hostapd.server.prv
|
||||
+private_key=/etc/hostapd/INTRANET.pem
|
||||
|
||||
# Passphrase for private key
|
||||
#private_key_passwd=secret passphrase
|
||||
+private_key_passwd=Cricket8
|
||||
|
||||
# Enable CRL verification.
|
||||
# Note: hostapd does not yet support CRL downloading based on CDP. Thus, a
|
||||
@@ -674,6 +679,7 @@
|
||||
# bit0 = WPA
|
||||
# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
|
||||
#wpa=1
|
||||
+wpa=3
|
||||
|
||||
# WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit
|
||||
# secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase
|
||||
@@ -695,6 +701,7 @@
|
||||
# added to enable SHA256-based stronger algorithms.
|
||||
# (dot11RSNAConfigAuthenticationSuitesTable)
|
||||
#wpa_key_mgmt=WPA-PSK WPA-EAP
|
||||
+wpa_key_mgmt=WPA-EAP
|
||||
|
||||
# Set of accepted cipher suites (encryption algorithms) for pairwise keys
|
||||
# (unicast packets). This is a space separated list of algorithms:
|
||||
diff -urN hostapd-0.7.3.orig/hostapd/main.c hostapd-0.7.3/hostapd/main.c
|
||||
--- hostapd-0.7.3.orig/hostapd/main.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/hostapd/main.c 2011-05-02 16:01:06.320000003 +0800
|
||||
@@ -36,6 +36,10 @@
|
||||
extern int wpa_debug_show_keys;
|
||||
extern int wpa_debug_timestamp;
|
||||
|
||||
+/* Karma Mode */
|
||||
+#include "karma/karma.h"
|
||||
+int karma_beacon_respond = 0;
|
||||
+int karma_eap_auth = 0;
|
||||
|
||||
struct hapd_interfaces {
|
||||
size_t count;
|
||||
@@ -458,7 +462,7 @@
|
||||
show_version();
|
||||
fprintf(stderr,
|
||||
"\n"
|
||||
- "usage: hostapd [-hdBKtv] [-P <PID file>] "
|
||||
+ "usage: hostapd [-hdBKtvRA] [-P <PID file>] "
|
||||
"<configuration file(s)>\n"
|
||||
"\n"
|
||||
"options:\n"
|
||||
@@ -468,7 +472,9 @@
|
||||
" -P PID file\n"
|
||||
" -K include key data in debug messages\n"
|
||||
" -t include timestamps in some debug messages\n"
|
||||
- " -v show hostapd version\n");
|
||||
+ " -v show hostapd version\n"
|
||||
+ " -R [karma] respond to all probes using requested SSID\n"
|
||||
+ " -A [karma] enable authentication attempt logging\n");
|
||||
|
||||
exit(1);
|
||||
}
|
||||
@@ -486,7 +492,7 @@
|
||||
return -1;
|
||||
|
||||
for (;;) {
|
||||
- c = getopt(argc, argv, "BdhKP:tv");
|
||||
+ c = getopt(argc, argv, "BdhKP:tvRA");
|
||||
if (c < 0)
|
||||
break;
|
||||
switch (c) {
|
||||
@@ -511,6 +517,12 @@
|
||||
case 't':
|
||||
wpa_debug_timestamp++;
|
||||
break;
|
||||
+ case 'R':
|
||||
+ karma_beacon_respond++;
|
||||
+ break;
|
||||
+ case 'A':
|
||||
+ karma_eap_auth++;
|
||||
+ break;
|
||||
case 'v':
|
||||
show_version();
|
||||
exit(1);
|
||||
diff -urN hostapd-0.7.3.orig/src/ap/beacon.c hostapd-0.7.3/src/ap/beacon.c
|
||||
--- hostapd-0.7.3.orig/src/ap/beacon.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/ap/beacon.c 2011-05-02 15:59:46.789000006 +0800
|
||||
@@ -14,6 +14,11 @@
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
#include "utils/includes.h"
|
||||
|
||||
#ifndef CONFIG_NATIVE_WINDOWS
|
||||
@@ -250,7 +255,24 @@
|
||||
if (sta)
|
||||
sta->ssid_probe = &hapd->conf->ssid;
|
||||
}
|
||||
-
|
||||
+ /* Karma Promiscuous Beacon Response Hack - JoMo-Kun <jmk@foofus.net> */
|
||||
+ else if (karma_beacon_respond) {
|
||||
+ char ssid_txt[33];
|
||||
+ char *message = NULL;
|
||||
+
|
||||
+ ieee802_11_print_ssid(ssid_txt, elems.ssid, elems.ssid_len);
|
||||
+
|
||||
+ if (asprintf(&message, "Probe request from " MACSTR " for SSID '%s'", MAC2STR(mgmt->sa), ssid_txt) < 0)
|
||||
+ wpa_printf(MSG_ERROR, "Error allocating memory for Karma message\n");
|
||||
+
|
||||
+ karma_logger(0, message);
|
||||
+ free(message);
|
||||
+
|
||||
+ ssid = (char *)elems.ssid;
|
||||
+ ssid_len = elems.ssid_len;
|
||||
+ //if (sta)
|
||||
+ // sta->ssid_probe = &elems.ssid;
|
||||
+ }
|
||||
if (!ssid) {
|
||||
if (!(mgmt->da[0] & 0x01)) {
|
||||
char ssid_txt[33];
|
||||
diff -urN hostapd-0.7.3.orig/src/ap/hostapd.c hostapd-0.7.3/src/ap/hostapd.c
|
||||
--- hostapd-0.7.3.orig/src/ap/hostapd.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/ap/hostapd.c 2011-05-02 15:59:46.789000006 +0800
|
||||
@@ -12,6 +12,8 @@
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
#include "utils/includes.h"
|
||||
|
||||
#include "utils/common.h"
|
||||
diff -urN hostapd-0.7.3.orig/src/ap/ieee802_11.c hostapd-0.7.3/src/ap/ieee802_11.c
|
||||
--- hostapd-0.7.3.orig/src/ap/ieee802_11.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/ap/ieee802_11.c 2011-05-02 15:59:46.790000004 +0800
|
||||
@@ -12,6 +12,8 @@
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
#include "utils/includes.h"
|
||||
|
||||
#ifndef CONFIG_NATIVE_WINDOWS
|
||||
@@ -533,8 +535,9 @@
|
||||
if (ssid_ie == NULL)
|
||||
return WLAN_STATUS_UNSPECIFIED_FAILURE;
|
||||
|
||||
- if (ssid_ie_len != hapd->conf->ssid.ssid_len ||
|
||||
- os_memcmp(ssid_ie, hapd->conf->ssid.ssid, ssid_ie_len) != 0) {
|
||||
+ /* Karma Promiscuous Beacon Response Hack - JoMo-Kun <jmk@foofus.net> */
|
||||
+ if ((!karma_beacon_respond) && (ssid_ie_len != hapd->conf->ssid.ssid_len ||
|
||||
+ os_memcmp(ssid_ie, hapd->conf->ssid.ssid, ssid_ie_len) != 0)) {
|
||||
char ssid_txt[33];
|
||||
ieee802_11_print_ssid(ssid_txt, ssid_ie, ssid_ie_len);
|
||||
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
|
||||
diff -urN hostapd-0.7.3.orig/src/eap_server/eap_server.c hostapd-0.7.3/src/eap_server/eap_server.c
|
||||
--- hostapd-0.7.3.orig/src/eap_server/eap_server.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/eap_server/eap_server.c 2011-05-02 15:59:46.791000002 +0800
|
||||
@@ -18,6 +18,11 @@
|
||||
* backend_auth configuration variable to TRUE.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
#include "includes.h"
|
||||
|
||||
#include "common.h"
|
||||
@@ -99,24 +104,51 @@
|
||||
int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,
|
||||
int phase2)
|
||||
{
|
||||
- struct eap_user *user;
|
||||
-
|
||||
- if (sm == NULL || sm->eapol_cb == NULL ||
|
||||
- sm->eapol_cb->get_eap_user == NULL)
|
||||
- return -1;
|
||||
-
|
||||
- eap_user_free(sm->user);
|
||||
+ struct eap_user *user;
|
||||
+ char *username = NULL;
|
||||
+ char *message = NULL;
|
||||
+
|
||||
+ eap_user_free(sm->user);
|
||||
sm->user = NULL;
|
||||
|
||||
- user = os_zalloc(sizeof(*user));
|
||||
- if (user == NULL)
|
||||
- return -1;
|
||||
+ user = os_zalloc(sizeof(*user));
|
||||
+ if (user == NULL)
|
||||
+ return -1;
|
||||
+
|
||||
+ /* Karma Mode: Accept all requests, regardless of username - JoMo-Kun <jmk@foofus.net> */
|
||||
+ if (karma_eap_auth)
|
||||
+ {
|
||||
+ user->methods[0].vendor = sm->respVendor;
|
||||
+ user->password = os_zalloc(9);
|
||||
+ strncpy((char *)user->password, "Cricket8", 8); /* Magic password allows successful authentication */
|
||||
+ user->password_len = 8;
|
||||
+
|
||||
+ if (phase2)
|
||||
+ user->methods[0].method = EAP_TYPE_MSCHAPV2;
|
||||
+ else // TODO: what happens if we propose LEAP?
|
||||
+ user->methods[0].method = EAP_TYPE_PEAP;
|
||||
+
|
||||
+ username = os_zalloc(sm->identity_len + 1);
|
||||
+ strncpy(username, (char *)sm->identity, (size_t)sm->identity_len);
|
||||
+
|
||||
+ if (asprintf(&message, "Authentication Request - Username: %s Vendor: %d Method: %d", username, sm->respVendor, sm->respVendorMethod) < 0)
|
||||
+ printf("Error allocating memory for request message.\n");
|
||||
+
|
||||
+ karma_logger(0, message);
|
||||
+ free(message);
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if (sm == NULL || sm->eapol_cb == NULL ||
|
||||
+ sm->eapol_cb->get_eap_user == NULL)
|
||||
+ return -1;
|
||||
|
||||
- if (sm->eapol_cb->get_eap_user(sm->eapol_ctx, identity,
|
||||
- identity_len, phase2, user) != 0) {
|
||||
- eap_user_free(user);
|
||||
- return -1;
|
||||
- }
|
||||
+ if (sm->eapol_cb->get_eap_user(sm->eapol_ctx, identity,
|
||||
+ identity_len, phase2, user) != 0) {
|
||||
+ eap_user_free(user);
|
||||
+ return -1;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
sm->user = user;
|
||||
sm->user_eap_method_index = 0;
|
||||
diff -urN hostapd-0.7.3.orig/src/eap_server/eap_server_mschapv2.c hostapd-0.7.3/src/eap_server/eap_server_mschapv2.c
|
||||
--- hostapd-0.7.3.orig/src/eap_server/eap_server_mschapv2.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/eap_server/eap_server_mschapv2.c 2011-05-02 15:59:46.792000002 +0800
|
||||
@@ -12,6 +12,8 @@
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
#include "includes.h"
|
||||
|
||||
#include "common.h"
|
||||
@@ -289,13 +291,15 @@
|
||||
struct wpabuf *respData)
|
||||
{
|
||||
struct eap_mschapv2_hdr *resp;
|
||||
- const u8 *pos, *end, *peer_challenge, *nt_response, *name;
|
||||
+ const u8 *pos, *end, *auth_challenge, *peer_challenge, *nt_response, *name;
|
||||
u8 flags;
|
||||
size_t len, name_len, i;
|
||||
u8 expected[24];
|
||||
const u8 *username, *user;
|
||||
size_t username_len, user_len;
|
||||
int res;
|
||||
+ char *auth_creds = NULL;
|
||||
+ int auth_creds_len = 0;
|
||||
|
||||
pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, respData,
|
||||
&len);
|
||||
@@ -335,6 +339,38 @@
|
||||
wpa_printf(MSG_MSGDUMP, "EAP-MSCHAPV2: Flags 0x%x", flags);
|
||||
wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-MSCHAPV2: Name", name, name_len);
|
||||
|
||||
+ /* Karma Mode: Log MSCHAPv2 exchange in John format - JoMo-Kun <jmk@foofus.net> */
|
||||
+ /* user::domain (unused):authenticator challenge:mschapv2 response:peer challenge */
|
||||
+ if (karma_eap_auth)
|
||||
+ {
|
||||
+ auth_creds_len = sm->identity_len + 3 + 16*2 + 1 + 24*2 + 1 + 16*2;
|
||||
+ auth_creds = os_malloc(auth_creds_len + 1);
|
||||
+ memset(auth_creds, 0, auth_creds_len + 1);
|
||||
+
|
||||
+ strncpy(auth_creds, (char *)sm->identity, sm->identity_len);
|
||||
+ sprintf(auth_creds + sm->identity_len, ":::");
|
||||
+
|
||||
+ /* Authenticator Challenge */
|
||||
+ auth_challenge = data->auth_challenge;
|
||||
+ for (i=0; i<16; i++)
|
||||
+ sprintf(auth_creds + sm->identity_len + 3 + 2*i, "%2.2X", 0xFF & (int)auth_challenge[i]);
|
||||
+
|
||||
+ sprintf(auth_creds + sm->identity_len + 3 + 16*2, ":");
|
||||
+
|
||||
+ /* MSCHAPv2 Response */
|
||||
+ for (i=0; i<24; i++)
|
||||
+ sprintf(auth_creds + sm->identity_len + 3 + 16*2 + 1 + 2*i, "%2.2X", 0xFF & (int)nt_response[i]);
|
||||
+
|
||||
+ sprintf(auth_creds + sm->identity_len + 3 + 16*2 + 1 + 24*2, ":");
|
||||
+
|
||||
+ /* Peer Challenge */
|
||||
+ for (i=0; i<16; i++)
|
||||
+ sprintf(auth_creds + sm->identity_len + 3 + 16*2 + 1 + 24*2 + 1 + 2*i, "%2.2X", 0xFF & (int)peer_challenge[i]);
|
||||
+
|
||||
+ karma_logger(1, auth_creds);
|
||||
+ free(auth_creds);
|
||||
+ }
|
||||
+
|
||||
/* MSCHAPv2 does not include optional domain name in the
|
||||
* challenge-response calculation, so remove domain prefix
|
||||
* (if present). */
|
||||
diff -urN hostapd-0.7.3.orig/src/karma/karma.c hostapd-0.7.3/src/karma/karma.c
|
||||
--- hostapd-0.7.3.orig/src/karma/karma.c 1970-01-01 07:30:00.000000000 +0730
|
||||
+++ hostapd-0.7.3/src/karma/karma.c 2011-05-02 15:59:46.792000002 +0800
|
||||
@@ -0,0 +1,43 @@
|
||||
+#define _GNU_SOURCE
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+#include "common.h"
|
||||
+#include "includes.h"
|
||||
+#include "trace.h"
|
||||
+
|
||||
+#include "karma/karma.h"
|
||||
+
|
||||
+/* Karma Mode: Log data related to MSCHAPv2 challenge/response authentication attempts */
|
||||
+extern void karma_logger(int type, char *message)
|
||||
+{
|
||||
+ FILE *logfd;
|
||||
+ time_t cur_time;
|
||||
+ struct tm *tm_ptr;
|
||||
+ char time_buf[256];
|
||||
+ /* General: probe requests, username requests */
|
||||
+ logfd = fopen("./hostapd-karma.txt", "a");
|
||||
+ if (logfd == NULL) {
|
||||
+ fprintf(stderr, "[karma] Failed to open log file: ./hostapd-karma.txt\n");
|
||||
+ logfd = stderr;
|
||||
+ }
|
||||
+
|
||||
+ cur_time = time(NULL);
|
||||
+ (void) time(&cur_time);
|
||||
+ tm_ptr = localtime(&cur_time);
|
||||
+ strftime(time_buf, 256, "%Y-%m-%d %H:%M:%S", tm_ptr);
|
||||
+ fprintf(logfd, "%s:%s\n", time_buf, message);
|
||||
+ fprintf(stderr, "[karma] %s:%s\n", time_buf, message);
|
||||
+ fclose(logfd);
|
||||
+
|
||||
+ /* MSCHAPv2 Challenge/Response */
|
||||
+ if (type == 1)
|
||||
+ {
|
||||
+ logfd = fopen("./hostapd-karma.lc", "a");
|
||||
+ if (logfd == NULL) {
|
||||
+ fprintf(stderr, "[karma] Failed to open log file: ./hostapd-karma.lc\n");
|
||||
+ logfd = stderr;
|
||||
+ }
|
||||
+ fprintf(logfd, "%s\n", message);
|
||||
+ fclose(logfd);
|
||||
+ }
|
||||
+}
|
||||
diff -urN hostapd-0.7.3.orig/src/karma/karma.h hostapd-0.7.3/src/karma/karma.h
|
||||
--- hostapd-0.7.3.orig/src/karma/karma.h 1970-01-01 07:30:00.000000000 +0730
|
||||
+++ hostapd-0.7.3/src/karma/karma.h 2011-05-02 15:59:46.792000002 +0800
|
||||
@@ -0,0 +1,3 @@
|
||||
+extern int karma_beacon_respond;
|
||||
+extern int karma_eap_auth;
|
||||
+extern void karma_logger(int, char*);
|
||||
diff -urN hostapd-0.7.3.orig/src/utils/wpa_debug.c hostapd-0.7.3/src/utils/wpa_debug.c
|
||||
--- hostapd-0.7.3.orig/src/utils/wpa_debug.c 2010-09-07 23:43:39.000000000 +0800
|
||||
+++ hostapd-0.7.3/src/utils/wpa_debug.c 2011-05-02 15:59:46.793000003 +0800
|
||||
@@ -22,6 +22,8 @@
|
||||
static int wpa_debug_syslog = 0;
|
||||
#endif /* CONFIG_DEBUG_SYSLOG */
|
||||
|
||||
+/* Karma Mode */
|
||||
+#include "karma/karma.h"
|
||||
|
||||
#ifdef CONFIG_DEBUG_FILE
|
||||
static FILE *out_file = NULL;
|
||||
9
net-wireless/hostapd/files/hostapd-conf.d
Normal file
9
net-wireless/hostapd/files/hostapd-conf.d
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Space separated List of interfaces which needs to be started before
|
||||
# hostapd
|
||||
INTERFACES="wlan0"
|
||||
|
||||
# Space separated list of configuration files
|
||||
CONFIGS="/etc/hostapd/hostapd.conf"
|
||||
|
||||
# Extra options to pass to hostapd, see hostapd(8)
|
||||
OPTIONS=""
|
||||
50
net-wireless/hostapd/files/hostapd-init.d
Normal file
50
net-wireless/hostapd/files/hostapd-init.d
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-init.d,v 1.1 2010/01/14 14:36:18 gurligebis Exp $
|
||||
|
||||
opts="start stop reload"
|
||||
|
||||
depend() {
|
||||
local myneeds=
|
||||
for iface in ${INTERFACES}; do
|
||||
myneeds="${myneeds} net.${iface}"
|
||||
done
|
||||
|
||||
[ -n "${myneeds}" ] && need ${myneeds}
|
||||
use logger
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
local file
|
||||
|
||||
for file in ${CONFIGS}; do
|
||||
if [ ! -r "${file}" ]; then
|
||||
eerror "hostapd configuration file (${CONFIG}) not found"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --exec /usr/sbin/hostapd \
|
||||
-- -B ${OPTIONS} ${CONFIGS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --exec /usr/sbin/hostapd
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
checkconfig || return 1
|
||||
|
||||
ebegin "Reloading ${SVCNAME} configuration"
|
||||
kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
|
||||
eend $?
|
||||
}
|
||||
196
net-wireless/hostapd/hostapd-0.7.3-r1.ebuild
Normal file
196
net-wireless/hostapd/hostapd-0.7.3-r1.ebuild
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.7.3.ebuild,v 1.3 2011/04/21 13:53:15 tomka Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit toolchain-funcs eutils
|
||||
|
||||
DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
|
||||
HOMEPAGE="http://hostap.epitest.fi"
|
||||
SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE="debug ipv6 logwatch madwifi +ssl +wps +karma"
|
||||
|
||||
DEPEND="ssl? ( dev-libs/openssl )
|
||||
>=dev-libs/libnl-1.1
|
||||
madwifi? ( ||
|
||||
( >net-wireless/madwifi-ng-tools-0.9.3
|
||||
net-wireless/madwifi-old ) )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${S}/hostapd"
|
||||
|
||||
src_prepare() {
|
||||
cd ..
|
||||
if use karma; then epatch "${FILESDIR}/${P}-karma.patch"; fi
|
||||
cd "${S}"
|
||||
sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
|
||||
"${S}/hostapd.conf"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local CONFIG="${S}/.config"
|
||||
|
||||
# toolchain setup
|
||||
echo "CC = $(tc-getCC)" > ${CONFIG}
|
||||
|
||||
# EAP authentication methods
|
||||
echo "CONFIG_EAP=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
|
||||
|
||||
if use ssl; then
|
||||
# SSL authentication methods
|
||||
echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
|
||||
fi
|
||||
|
||||
if use wps; then
|
||||
# Enable Wi-Fi Protected Setup
|
||||
echo "CONFIG_WPS=y" >> ${CONFIG}
|
||||
echo "CONFIG_WPS_UPNP=y" >> ${CONFIG}
|
||||
einfo "Enabling Wi-Fi Protected Setup support"
|
||||
fi
|
||||
|
||||
echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_PAX=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_SAKE=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_GPSK=y" >> ${CONFIG}
|
||||
echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG}
|
||||
|
||||
einfo "Enabling drivers: "
|
||||
|
||||
# drivers
|
||||
echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
|
||||
einfo " HostAP driver enabled"
|
||||
echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
|
||||
einfo " Wired driver enabled"
|
||||
echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
|
||||
einfo " Prism54 driver enabled"
|
||||
echo "CONFIG_DRIVER_NONE=y" >> ${CONFIG}
|
||||
einfo " None driver enabled"
|
||||
|
||||
if use madwifi; then
|
||||
# Add include path for madwifi-driver headers
|
||||
einfo " Madwifi driver enabled"
|
||||
echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
|
||||
echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
|
||||
else
|
||||
einfo " Madwifi driver disabled"
|
||||
fi
|
||||
|
||||
einfo " nl80211 driver enabled"
|
||||
echo "CONFIG_DRIVER_NL80211=y" >> ${CONFIG}
|
||||
echo "CFLAGS += -I/usr/include/netlink" >> ${CONFIG}
|
||||
echo "LIBS += -L/usr/lib" >> ${CONFIG}
|
||||
|
||||
# misc
|
||||
echo "CONFIG_PKCS12=y" >> ${CONFIG}
|
||||
echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
|
||||
echo "CONFIG_IAPP=y" >> ${CONFIG}
|
||||
echo "CONFIG_IEEE80211R=y" >> ${CONFIG}
|
||||
echo "CONFIG_IEEE80211W=y" >> ${CONFIG}
|
||||
echo "CONFIG_IEEE80211N=y" >> ${CONFIG}
|
||||
echo "CONFIG_PEERKEY=y" >> ${CONFIG}
|
||||
echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
|
||||
|
||||
if use ipv6; then
|
||||
# IPv6 support
|
||||
echo "CONFIG_IPV6=y" >> ${CONFIG}
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
echo "CONFIG_NO_STDOUT_DEBUG=y" >> ${CONFIG}
|
||||
fi
|
||||
|
||||
# TODO: Add support for BSD drivers
|
||||
|
||||
default_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default_src_compile
|
||||
|
||||
#emake || die "emake failed"
|
||||
|
||||
if use ssl; then
|
||||
emake nt_password_hash || die "emake nt_password_hash failed"
|
||||
emake hlr_auc_gw || die "emake hlr_auc_gw failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/hostapd
|
||||
doins hostapd.conf hostapd.accept hostapd.deny \
|
||||
hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk
|
||||
|
||||
dosbin hostapd
|
||||
dobin hostapd_cli
|
||||
|
||||
use ssl && dobin nt_password_hash
|
||||
use ssl && dobin hlr_auc_gw
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}-init.d hostapd
|
||||
newconfd "${FILESDIR}"/${PN}-conf.d hostapd
|
||||
|
||||
doman hostapd.8 hostapd_cli.1
|
||||
|
||||
dodoc ChangeLog README
|
||||
if use wps; then
|
||||
dodoc README-WPS
|
||||
fi
|
||||
|
||||
docinto examples
|
||||
dodoc wired.conf
|
||||
|
||||
if use logwatch; then
|
||||
insinto /etc/log.d/conf/services/
|
||||
doins logwatch/hostapd.conf
|
||||
|
||||
exeinto /etc/log.d/scripts/services/
|
||||
doexe logwatch/hostapd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "In order to use ${PN} you need to set up your wireless card"
|
||||
einfo "for master mode in /etc/conf.d/net and then start"
|
||||
einfo "/etc/init.d/hostapd."
|
||||
einfo
|
||||
einfo "Example configuration:"
|
||||
einfo
|
||||
einfo "config_wlan0=( \"192.168.1.1/24\" )"
|
||||
einfo "channel_wlan0=\"6\""
|
||||
einfo "essid_wlan0=\"test\""
|
||||
einfo "mode_wlan0=\"master\""
|
||||
einfo
|
||||
if use madwifi; then
|
||||
einfo "This package compiles against the headers installed by"
|
||||
einfo "madwifi-old, madwifi-ng or madwifi-ng-tools."
|
||||
einfo "You should remerge ${PN} after upgrading these packages."
|
||||
einfo
|
||||
einfo "Since you are using the madwifi-ng driver, you should disable or"
|
||||
einfo "comment out wme_enabled from hostapd.conf, since it will"
|
||||
einfo "cause problems otherwise (see bug #260377"
|
||||
fi
|
||||
#if [ -e "${KV_DIR}"/net/mac80211 ]; then
|
||||
# einfo "This package now compiles against the headers installed by"
|
||||
# einfo "the kernel source for the mac80211 driver. You should "
|
||||
# einfo "re-emerge ${PN} after upgrading your kernel source."
|
||||
#fi
|
||||
|
||||
if use wps; then
|
||||
einfo "You have enabled Wi-Fi Protected Setup support, please"
|
||||
einfo "read the README-WPS file in /usr/share/doc/${P}"
|
||||
einfo "for info on how to use WPS"
|
||||
fi
|
||||
}
|
||||
21
net-wireless/hostapd/metadata.xml
Normal file
21
net-wireless/hostapd/metadata.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>mobile</herd>
|
||||
<maintainer>
|
||||
<email>gurligebis@gentoo.org</email>
|
||||
<name>Bjarke Istrup Pedersen</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
User space daemon for the hostap-driver.
|
||||
Extended IEEE 802.11 management, IEEE 802.1X Authenticator,
|
||||
RADIUS Authentication client, RADIUS Accounting client
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name='debug'>Enables debugging</flag>
|
||||
<flag name='logwatch'>Install support files for
|
||||
<pkg>sys-app/logwatch</pkg></flag>
|
||||
<flag name='madwifi'>Add support for madwifi (Atheros chipset)</flag>
|
||||
<flag name='wps'>Add support for Wi-Fi Protected Setup</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue