diff options
author | Malcolm Lashley <malc@gentoo.org> | 2004-09-02 23:49:24 +0000 |
---|---|---|
committer | Malcolm Lashley <malc@gentoo.org> | 2004-09-02 23:49:24 +0000 |
commit | e8d168a55cadbf748e3c6d3b507ddf990def1c1e (patch) | |
tree | 2aacce7a46efcb31a987f40df1c022d3680847fa /net-wireless/kismet | |
parent | Version bump. Added die message in src_compile(). Removed retired maintainer ... (diff) | |
download | historical-e8d168a55cadbf748e3c6d3b507ddf990def1c1e.tar.gz historical-e8d168a55cadbf748e3c6d3b507ddf990def1c1e.tar.bz2 historical-e8d168a55cadbf748e3c6d3b507ddf990def1c1e.zip |
Spreading the amd64 loving.
Diffstat (limited to 'net-wireless/kismet')
-rw-r--r-- | net-wireless/kismet/ChangeLog | 6 | ||||
-rw-r--r-- | net-wireless/kismet/Manifest | 29 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet_amd64.patch | 170 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-2004.04.1.ebuild | 5 |
4 files changed, 193 insertions, 17 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog index 413cbacc7d2a..a7c51414abe5 100644 --- a/net-wireless/kismet/ChangeLog +++ b/net-wireless/kismet/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-wireless/kismet # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.36 2004/07/27 20:53:43 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.37 2004/09/02 23:49:24 malc Exp $ + + 02 Sep 2004; Malcolm Lashley <malc@gentoo.org> +files/kismet_amd64.patch, + kismet-2004.04.1.ebuild: + Fix for amd64 from Vasiliy Astapov - tested with prism54 27 Jul 2004; <solar@gentoo.org> kismet-2004.04.1.ebuild: added missing inherit eutils, needed for epatch ; added call to diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest index 5d1300961dc0..e482467820ed 100644 --- a/net-wireless/kismet/Manifest +++ b/net-wireless/kismet/Manifest @@ -1,25 +1,26 @@ +MD5 6e92a9724591e9fc67f0c5fc6c6b8f49 ChangeLog 5253 MD5 21e7369e6da736ef68ce288791ef46c0 kismet-2.6.2-r1.ebuild 1884 +MD5 ec0e6b5e444bfae7cb0ed2591667bbbb kismet-2.8.0.ebuild 1777 +MD5 420236c784145e4cdea28efb45f5155a kismet-2.8.0a.ebuild 1779 +MD5 e5bcc0048c76e9118b91ab2bcaa72f4f kismet-2.8.0b-r1.ebuild 1981 +MD5 051f6a5bc088b872cb3960c1380b5b16 kismet-2.8.1-r1.ebuild 2123 MD5 87617e9aad3041909e1151fb6fcdf9cb kismet-2.8.1.ebuild 1977 MD5 1ebdb6d82948a242cffd87a8822ed012 kismet-2004.02.01.ebuild 2205 -MD5 e5bcc0048c76e9118b91ab2bcaa72f4f kismet-2.8.0b-r1.ebuild 1981 +MD5 31381cae6a16252aa7803ee6230dae91 kismet-2004.04.1.ebuild 2422 +MD5 6701c84a371ed9c02a0832f5e7ae0ff1 kismet-3.0.1-r1.ebuild 2292 MD5 55a9df5376df8d2ecbec3602552c550e kismet-3.0.1.ebuild 2173 -MD5 ccca038d1360cb48ba089410788e87fd kismet-2004.04.1.ebuild 2377 -MD5 420236c784145e4cdea28efb45f5155a kismet-2.8.0a.ebuild 1779 -MD5 051f6a5bc088b872cb3960c1380b5b16 kismet-2.8.1-r1.ebuild 2123 -MD5 ec0e6b5e444bfae7cb0ed2591667bbbb kismet-2.8.0.ebuild 1777 -MD5 3370d2ab52ed4f88eed2b397dba5a4d2 ChangeLog 5091 MD5 32831d719499c83f7942f6432ef58278 metadata.xml 252 -MD5 6701c84a371ed9c02a0832f5e7ae0ff1 kismet-3.0.1-r1.ebuild 2292 -MD5 ac454f5a5ad0a364c677157a511e534d files/digest-kismet-2.8.0a 133 +MD5 8dfc64a8a4100cc38d8f00a3475bba9a files/digest-kismet-2.6.2-r1 131 MD5 a73efbda3289e9413549c220b046ef23 files/digest-kismet-2.8.0 131 +MD5 ac454f5a5ad0a364c677157a511e534d files/digest-kismet-2.8.0a 133 +MD5 63dd3cb4247737ee77391240518ec850 files/digest-kismet-2.8.0b-r1 202 MD5 51ee9832a194be859c3e76f998c75f2d files/digest-kismet-2.8.1 200 +MD5 51ee9832a194be859c3e76f998c75f2d files/digest-kismet-2.8.1-r1 200 +MD5 5d50e3232c94daf63372a5a74d8b39dc files/digest-kismet-2004.02.01 68 +MD5 752e77b324cb8708cb1c39301b1a552f files/digest-kismet-2004.04.1 138 MD5 7571e627220475fa712fd8a43970db6c files/digest-kismet-3.0.1 64 +MD5 6c76e2449a2259febd33acaeff2366a3 files/digest-kismet-3.0.1-r1 133 MD5 58a8e5159f8d082deb63d27ad60b8d25 files/rc-conf-3 809 -MD5 8dfc64a8a4100cc38d8f00a3475bba9a files/digest-kismet-2.6.2-r1 131 -MD5 51ee9832a194be859c3e76f998c75f2d files/digest-kismet-2.8.1-r1 200 -MD5 63dd3cb4247737ee77391240518ec850 files/digest-kismet-2.8.0b-r1 202 MD5 4f429a351ffe6567eb2a8bd1dfedbce1 files/rc-script-3 1137 -MD5 752e77b324cb8708cb1c39301b1a552f files/digest-kismet-2004.04.1 138 MD5 91bf171a3c20d4cfa9626805f1f18de8 files/kismet_gcc34.gz 402 -MD5 6c76e2449a2259febd33acaeff2366a3 files/digest-kismet-3.0.1-r1 133 -MD5 5d50e3232c94daf63372a5a74d8b39dc files/digest-kismet-2004.02.01 68 +MD5 c63dd4e1f9460ee0e5f5a2d0d884a6ea files/kismet_amd64.patch 6545 diff --git a/net-wireless/kismet/files/kismet_amd64.patch b/net-wireless/kismet/files/kismet_amd64.patch new file mode 100644 index 000000000000..8371b0e74fff --- /dev/null +++ b/net-wireless/kismet/files/kismet_amd64.patch @@ -0,0 +1,170 @@ +kismet amd64 amd 64 bit patch. + +Got amd64 laptop mitac8355. Kismet unfortunately hangs up on 64 bit. So did some fast fix. + +And it could access 16G of RAM ;) + +$Id: kismet_amd64.patch,v 1.1 2004/09/02 23:49:24 malc Exp $ +email: k_w-at-bk-dot-ru + +diff -u ../kismet-2004-04-R1/configfile.cc ./configfile.cc +--- ../kismet-2004-04-R1/configfile.cc 2004-01-24 16:27:20.000000000 -0500 ++++ ./configfile.cc 2004-05-30 16:59:33.093508480 -0400 +@@ -251,12 +251,12 @@ + macmap<int> *dest_map, + int *bssid_invert, int *source_invert, int *dest_invert) { + // Break it into filter terms +- unsigned int parse_pos = 0; +- unsigned int parse_error = 0; ++ size_t parse_pos = 0; ++ size_t parse_error = 0; + + while (parse_pos < filter_str.length()) { +- unsigned int addr_term_end; +- unsigned int address_target = 0; // 1=bssid 2=source 4=dest 7=any ++ size_t addr_term_end; ++ size_t address_target = 0; // 1=bssid 2=source 4=dest 7=any + + if (filter_str[parse_pos] == ',' || filter_str[parse_pos] == ' ') { + parse_pos++; +@@ -310,10 +310,10 @@ + break; + } + +- unsigned int term_parse_pos = 0; ++ size_t term_parse_pos = 0; + while (term_parse_pos < term_contents.length()) { +- unsigned int term_end; +- unsigned int invert = 0; ++ size_t term_end; ++ size_t invert = 0; + + if (term_contents[term_parse_pos] == ' ' || term_contents[term_parse_pos] == ',') { + term_parse_pos++; +diff -u ../kismet-2004-04-R1/kismet_drone.cc ./kismet_drone.cc +--- ../kismet-2004-04-R1/kismet_drone.cc 2004-04-04 21:20:57.000000000 -0400 ++++ ./kismet_drone.cc 2004-05-30 17:10:15.081911408 -0400 +@@ -571,8 +571,8 @@ + } + + // Parse the allowed hosts into the vector +- unsigned int ahstart = 0; +- unsigned int ahend = allowed_hosts.find(","); ++ size_t ahstart = 0; ++ size_t ahend = allowed_hosts.find(","); + + int ahdone = 0; + while (ahdone == 0) { +@@ -590,7 +590,7 @@ + client_ipblock *ipb = new client_ipblock; + + // Find the netmask divider, if one exists +- unsigned int masksplit = hoststr.find("/"); ++ size_t masksplit = hoststr.find("/"); + if (masksplit == string::npos) { + // Handle hosts with no netmask - they're treated as single hosts + inet_aton("255.255.255.255", &(ipb->mask)); +diff -u ../kismet-2004-04-R1/kismet_server.cc ./kismet_server.cc +--- ../kismet-2004-04-R1/kismet_server.cc 2004-04-04 21:20:57.000000000 -0400 ++++ ./kismet_server.cc 2004-05-30 17:09:19.615343608 -0400 +@@ -1178,10 +1178,10 @@ + // Convert the WEP mappings to our real map + vector<string> raw_wepmap_vec; + raw_wepmap_vec = conf->FetchOptVec("wepkey"); +- for (unsigned int rwvi = 0; rwvi < raw_wepmap_vec.size(); rwvi++) { ++ for (size_t rwvi = 0; rwvi < raw_wepmap_vec.size(); rwvi++) { + string wepline = raw_wepmap_vec[rwvi]; + +- unsigned int rwsplit = wepline.find(","); ++ size_t rwsplit = wepline.find(","); + if (rwsplit == string::npos) { + fprintf(stderr, "FATAL: Malformed 'wepkey' option in the config file.\n"); + ErrorShutdown(); +@@ -1458,12 +1458,12 @@ + + vector<string> hostsvec = StrTokenize(allowed_hosts, ","); + +- for (unsigned int hostcomp = 0; hostcomp < hostsvec.size(); hostcomp++) { ++ for (size_t hostcomp = 0; hostcomp < hostsvec.size(); hostcomp++) { + client_ipblock *ipb = new client_ipblock; + string hoststr = hostsvec[hostcomp]; + + // Find the netmask divider, if one exists +- unsigned int masksplit = hoststr.find("/"); ++ size_t masksplit = hoststr.find("/"); + if (masksplit == string::npos) { + // Handle hosts with no netmask - they're treated as single hosts + inet_aton("255.255.255.255", &(ipb->mask)); +diff -u ../kismet-2004-04-R1/tcpserver.cc ./tcpserver.cc +--- ../kismet-2004-04-R1/tcpserver.cc 2003-03-20 16:02:53.000000000 -0500 ++++ ./tcpserver.cc 2004-05-30 17:05:17.872094168 -0400 +@@ -377,7 +377,7 @@ + + /* See if the buffer contains a command. */ + int killbits = 0; +- unsigned int nl = copt->cmdbuf.find("\r\n"); ++ size_t nl = copt->cmdbuf.find("\r\n"); + if (nl == string::npos) { + nl = copt->cmdbuf.find('\n'); + if (nl == string::npos) +@@ -422,8 +422,8 @@ + + // Find the first space - this is the command. If it doesn't look like something + // we can handle, pass it on. +- unsigned int start = 0; +- unsigned int space = in_command->cmd.find(" "); ++ size_t start = 0; ++ size_t space = in_command->cmd.find(" "); + if (space == string::npos) + return 1; + +@@ -482,7 +482,7 @@ + start = space + 1; + vector<int> field_vec; + +- unsigned int end = in_command->cmd.find(",", start); ++ size_t end = in_command->cmd.find(",", start); + + int done = 0; + int initial = 1; +@@ -499,7 +499,7 @@ + // Try once to match it to * - an int compare is cheaper than a string + if (initial) { + if (com == "*") { +- for (unsigned int fld = 0; fld < sprot->field_map.size(); fld++) ++ for (size_t fld = 0; fld < sprot->field_map.size(); fld++) + field_vec.push_back(fld); + break; + } +diff -u ../kismet-2004-04-R1/util.cc ./util.cc +--- ../kismet-2004-04-R1/util.cc 2003-12-09 16:36:38.000000000 -0500 ++++ ./util.cc 2004-05-27 21:49:31.000000000 -0400 +@@ -138,8 +138,8 @@ + } + + vector<string> StrTokenize(string in_str, string in_split) { +- unsigned int begin = 0; +- unsigned int end = in_str.find(in_split); ++ size_t begin = 0; ++ size_t end = in_str.find(in_split); + vector<string> ret; + + if (in_str.length() == 0) +@@ -159,7 +159,7 @@ + vector<string> LineWrap(string in_txt, unsigned int in_hdr_len, unsigned int in_maxlen) { + vector<string> ret; + +- unsigned int pos, prev_pos, start, hdroffset; ++ size_t pos, prev_pos, start, hdroffset; + start = hdroffset = 0; + + for (pos = prev_pos = in_txt.find(' ', in_hdr_len); pos != string::npos; pos = in_txt.find(' ', pos + 1)) { +@@ -359,7 +359,7 @@ + vector<int> ret; + int ch; + +- for (unsigned int x = 0; x < optlist.size(); x++) { ++ for (size_t x = 0; x < optlist.size(); x++) { + if (sscanf(optlist[x].c_str(), "%d", &ch) != 1) { + ret.clear(); + break; diff --git a/net-wireless/kismet/kismet-2004.04.1.ebuild b/net-wireless/kismet/kismet-2004.04.1.ebuild index 0d9eeaa700f5..20f9fa76d93c 100644 --- a/net-wireless/kismet/kismet-2004.04.1.ebuild +++ b/net-wireless/kismet/kismet-2004.04.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2004.04.1.ebuild,v 1.5 2004/07/27 20:53:43 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2004.04.1.ebuild,v 1.6 2004/09/02 23:49:24 malc Exp $ inherit gnuconfig eutils @@ -14,7 +14,7 @@ SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~x86 ~amd64" IUSE="acpi gps ethereal" DEPEND="gps? ( >=dev-libs/expat-1.95.4 dev-libs/gmp media-gfx/imagemagick ) @@ -26,6 +26,7 @@ S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} epatch ${FILESDIR}/kismet_gcc34.gz + epatch ${FILESDIR}/kismet_amd64.patch gnuconfig_update ${S} } |