I have found an error in source patching in the madwifi-tools-0.1_pre20050106 ebuild: sed is launched before source unpacking. I'm attaching a patch for that
Created attachment 48894 [details, diff] madwifi-tools-0.1_pre20050106.patch
Added solar and horton to CC:
Fixed in CVS. thanks for reporting.