Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52854 - [NEWPACKAGE REQUEST] wpa_supplicant
Summary: [NEWPACKAGE REQUEST] wpa_supplicant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL: http://hostap.epitest.fi/wpa_supplicant/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 01:05 UTC by Richard Cantzler
Modified: 2004-10-17 02:08 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wpa_supplicant-0.2.4.ebuild (wpa_supplicant-0.2.4.ebuild,1.76 KB, text/plain)
2004-07-19 07:56 UTC, Torbjörn Svensson
Details
wpa_supplicant ebuild with madwifi-driver support (wpa_supplicant-0.2.4.ebuild,2.13 KB, text/plain)
2004-08-07 18:08 UTC, Pau Oliva
Details
wpa-supplicant-0.2.4-r1.ebuild (wpa-supplicant-0.2.4-r1.ebuild,1.84 KB, text/plain)
2004-09-27 18:26 UTC, Daniel Palmer
Details
files/wpa_supplicant.conf.d (wpa_supplicant.conf.d,502 bytes, text/plain)
2004-09-27 18:27 UTC, Daniel Palmer
Details
files/wpa_supplicant.init.d (wpa_supplicant.init.d,453 bytes, text/plain)
2004-09-27 18:27 UTC, Daniel Palmer
Details
patch to wpa-supplicant-0.2.4.ebuild (wpa_supplicant-0.2.4.patch,1.17 KB, patch)
2004-09-28 01:34 UTC, Daniel Palmer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Cantzler 2004-06-03 01:05:44 UTC
wpa_supplicant is a WPA Supplicant for Linux with support for WPA and WPA2 (IEEE 802.11i / RSN)

It appears to be maintained by the HostAP people at http://hostap.epitest.fi/

I think this would make a nice addition to the portage tree

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Pau Oliva 2004-06-17 03:17:58 UTC
In order to use wpa_supplicant:

  a) hostap driver needs to be updated to a newer version (versions in portage are very old)

  b) madwifi driver in portage does not include wpa branch, there should be a madwifi-wpa ebuild in portage, or add "USE=wpa" to existing ebuild.
Comment 2 Pau Oliva 2004-07-11 10:54:50 UTC
xsupplicant has reached version 1.0, we still have 0.8 in portage, and gentoo still lacks wpa_supplicant... when will we have wpa support in gentoo??
Comment 3 Richard Cantzler 2004-07-11 13:12:02 UTC
I've tried to read and understand the Gentoo Ebuild how-to, but I get really confused on exactly what is expected.  I could spend a bit of time and hack together a new ebuild based on the old, but is that acceptable?

If not, I would appreciate a little more detail as to how to create ebuilds.
Sorry, but I find the howto to be a little too general (although I understand a lot of different packages require a lot of different things)

Additionally, I think we need packages for the stable and dev branches.

Thanks for your help
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2004-07-11 20:47:41 UTC
I started working on the development stuff of hostap-{driver,d,utils} and wpa_supplicant this weekend. I also got a 1.0 xsupplicant ebuild mostly working. Hopefully i will have something testable this week. i will post the ebuilds here.

I'm not yet sure if i feel comfortable having the development hostap stuff in portage, but we'll see how the testing goes.

Best bet for writing ebuilds is reading existing ones. Sadly there's a *lot* of different specific stuff that can come up in different realms. "man 5 ebuild" is also a useful reference (but not great for just learning how to write an ebuild).
Comment 5 Torbjörn Svensson 2004-07-18 13:08:01 UTC
Peter Johansson: 
Has you made any progress yet? If so, I would like te test the ebuilds..

Thanks,
Azoff
Comment 6 Torbjörn Svensson 2004-07-19 07:55:28 UTC
I have made one ebuild, but as this is my first ebuild ever, I need someone to check it ;)
Please feel free to edit it in anyway you like, but tell me what you changed and why so I can manage to do it right next time :)

Thanks.
Comment 7 Torbjörn Svensson 2004-07-19 07:56:19 UTC
Created attachment 35744 [details]
wpa_supplicant-0.2.4.ebuild
Comment 8 Pau Oliva 2004-07-19 08:34:22 UTC
Torbj
Comment 9 Pau Oliva 2004-07-19 08:34:22 UTC
Torbjörn, thanks for the ebuild!
I will test it when I arrive at home and send you my feedback.

another question: any sucess with madwifi's wpa branch ebuild anyone?
Comment 10 Pau Oliva 2004-08-07 18:03:16 UTC
I finally tried the ebuild for wpa_supplicant that Torbj
Comment 11 Pau Oliva 2004-08-07 18:03:16 UTC
I finally tried the ebuild for wpa_supplicant that Torbjörn Svensson posted here. I've had to modify it to build with madwifi support, see wpa_supplicant's README file:

        Please note that you will need to use the WPA branch and modify
        the wpa_supplicant Makefile to use correct path for madwifi
        driver root directory (CFLAGS += -I../madwifi/wpa line in
        Makefile).

See bug 59739 for getting a madwifi-driver version with WPA support. The current version in portage (20040726) still doesn't have it.

We still lack a hostap-driver (version 0.2.x which is now considered stable) in portage with WPA support, see bug 57708.
Comment 12 Pau Oliva 2004-08-07 18:08:04 UTC
Created attachment 36988 [details]
wpa_supplicant ebuild with madwifi-driver support

This ebuild will only work if you use updated madwifi-driver from bug 59739
Comment 13 Peter Johanson (RETIRED) gentoo-dev 2004-08-11 20:12:24 UTC
Okay folks, spent some time working on this tonight, including having forgotten that bug 59739 existed. Anyway, there's an overlay up with my work located at:
http://dev.gentoo.org/~latexer/files/overlays/

that includes ebuilds for all the new hostap* stuff, as well as madwifi-wpa and wpa-supplicate ebuilds. Please give those all a shot, meanwhile i will try to look at all the stuff here and incorporate any changes/fixes i may find.

Please report back any success/failures.
Comment 14 Richard Cantzler 2004-08-16 02:48:40 UTC
Peter-

Thanks for the ebuilds, AFAIK the hostap driver, utils, and wpa_supplicant all seem to work.  I can't fully test the WPA supplicant until WPA is working in the ipw2100 driver.  The only complication was having to add FEATURES="-sandbox" but I forget which ebuild needed it.
Comment 15 Bob Ketterhagen (RETIRED) gentoo-dev 2004-08-24 12:04:37 UTC
New ebuild for madwifi-driver added. This snapshot is taken from the WPA branch. Could some people please test it with wpa_supplicant and confirm it is working.
emerge '=net-wireless/sys-madwifi-driver-0.1_pre20040824'
Comment 16 Henrik Brix Andersen 2004-09-16 13:27:23 UTC
net-wireless/wpa-supplicant is now in portage. Closing this bug as FIXED.
Comment 17 Bob Ketterhagen (RETIRED) gentoo-dev 2004-09-16 13:41:47 UTC
Did you test it with Madwifi?
Comment 18 Henrik Brix Andersen 2004-09-16 13:50:57 UTC
I have included CONFIG_DRIVER_MADWIFI and it builds using madwifi-driver-0.1_pre20040906.tar.bz2 - but I did not test it since I don't have the hardware.

I also didn't test wpa_supplicant with the Atmel, ndiswrapper or prism54 driver since I lack the hardware.

The main point is that the wpa-supplicant ebuild compiles fine with those driver options enabled and works with the hostap-driver. The ebuild is keyword masked and I expect people to report bugs if they encounter any bugs.
Comment 19 Henrik Brix Andersen 2004-09-26 04:12:16 UTC
Horton, did you get a chance to test it with the madwifi driver yet? Can this bug be closed?
Comment 20 Bob Ketterhagen (RETIRED) gentoo-dev 2004-09-26 06:34:57 UTC
I lack wpa to check it with.
I suspect I am just gunna have to breakdown and setup wpa since we have such a long line of people waiting to test wpa with madwifi.
Comment 21 Daniel Palmer 2004-09-27 18:26:35 UTC
Created attachment 40570 [details]
wpa-supplicant-0.2.4-r1.ebuild

I successfully used this ebuild for WPA with a madwifi built from CVS HEAD (now
WPA branch has been merged).

I'm attaching /etc/conf.d/wpa_supplicant, /etc/init.d/wpa_supplicant and an
updated ebuild which installs these and has an RDEPEND on wireless-tools.
Comment 22 Daniel Palmer 2004-09-27 18:27:26 UTC
Created attachment 40571 [details]
files/wpa_supplicant.conf.d
Comment 23 Daniel Palmer 2004-09-27 18:27:48 UTC
Created attachment 40572 [details]
files/wpa_supplicant.init.d
Comment 24 Henrik Brix Andersen 2004-09-27 23:50:24 UTC
Please attach your changes to the ebuild as a patch.
Comment 25 Daniel Palmer 2004-09-28 01:34:16 UTC
Created attachment 40589 [details, diff]
patch to wpa-supplicant-0.2.4.ebuild
Comment 26 Henrik Brix Andersen 2004-10-17 02:08:40 UTC
net-wireless/wpa-supplicant-0.2.5 is now in portage - including init script (not the ones from this bug, though). Closing as FIXED.