Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170404 - net-wireless/aircrack-ng - make libpcap dependency optional [patch]
Summary: net-wireless/aircrack-ng - make libpcap dependency optional [patch]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL: http://www.aircrack-ng.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-11 13:07 UTC by ebfe
Modified: 2007-03-13 08:13 UTC (History)
1 user (show)

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


Attachments
ebuild patch to include WIFI useflag and handling (aircrack-ng-0.7_binfiles.patch,747 bytes, text/plain)
2007-03-11 13:08 UTC, ebfe
Details
patch for the Makefile (binfiles_only.patch,1.07 KB, text/plain)
2007-03-11 13:09 UTC, ebfe
Details
new targets: userland, install_userland (binfiles_only.patch,1.23 KB, text/plain)
2007-03-11 14:14 UTC, ebfe
Details
ebuild patch; useflag -> target (aircrack-ng-0.7.ebuild,1.35 KB, text/plain)
2007-03-11 14:16 UTC, ebfe
Details
correct patch... (ang_binfiles_ebuild.patch,1.13 KB, text/plain)
2007-03-11 14:18 UTC, ebfe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ebfe 2007-03-11 13:07:46 UTC
This patch makes it optional to build the libpcap dependend sbins (airodump, airmon, airtun, aireplay). This makes it possible - in the gentoo way - to have just the cracking tools being installed if one doesn't need the monitor/capture tools on the local box.

Since aircrack-ng doesn't use autoconf at all, one has to patch the Makefile itself. This is not a very gentle thing to do, but the patch will probably work with future versions.

If the "wifi" useflag is /not/ enabled, the Makefile is patched not to build/install the SBINFILES. That's all.

Reproducible: Always
Comment 1 ebfe 2007-03-11 13:08:34 UTC
Created attachment 112932 [details]
ebuild patch to include WIFI useflag and handling
Comment 2 ebfe 2007-03-11 13:09:09 UTC
Created attachment 112934 [details]
patch for the Makefile
Comment 3 ebfe 2007-03-11 13:18:44 UTC
sorry, the patches have hardwired paths...
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-11 13:21:06 UTC
ebfe: Have you discussed this with upstream?
It seems best if they will release a version with this option built in.

Also, I think it would be best if you add a new target to the make file.

Something like:
make tools
make install_tools

An make the all, install be dependent on tools, install_tools.

So that the patch will be easier to be merged by upstream.
Comment 5 ebfe 2007-03-11 14:14:39 UTC
Created attachment 112938 [details]
new targets: userland, install_userland
Comment 6 ebfe 2007-03-11 14:16:30 UTC
Created attachment 112944 [details]
ebuild patch; useflag -> target

I see your point regarding the targets. So here are new patches which I will also submit to upstream. I kindly ask for them to be included into the tree - I don't expect upstream to release a new version any time soon.
Comment 7 ebfe 2007-03-11 14:18:27 UTC
Created attachment 112946 [details]
correct patch...
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-11 14:49:30 UTC
Looks better.
Please update with you have news from upstram.
Comment 9 ebfe 2007-03-11 16:24:37 UTC
I've spoken with upstream. The patch has been committed to aircrack-ng's cvs. The targets' name won't change.
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-12 18:41:26 UTC
Added.
Thanks.
Comment 11 ebfe 2007-03-13 08:13:06 UTC
may other arches - which have wifi use.masked - be interested in keywording aircack-ng now?