kismet stable port information

Package: kismet
Version: 3.0.1
Revision: 1035

# framework WiFi is ppc-only binary
Architecture: powerpc
Distribution: 10.4

Description: 802.11 wireless network sniffer
DescDetail: <<
Kismet is an 802.11 wireless network sniffer - this is different from
a normal network sniffer (such as Ethereal or tcpdump) because it
separates and identifies different wireless networks in the area.
Kismet works with any 802.11b wireless card which is capable of
reporting raw packets (rfmon support), which include any prism2 based
card (Linksys, D-Link, Rangelan, etc), Cisco Aironet cards, and
Orinoco based cards. Kismet also supports the WSP100 802.11b remote
sensor by Network Chemistry and is able to monitor 802.11a networks
with cards which use the ar5k chipset.
<<
DescUsage: <<
QUICK START

Detailed information about each of these steps can be found in the
appropriate section of the documentation.

1. Compile and Install Kismet
2. Configure kismet.conf and kismet_ui.conf for your card and
setup. Make sure to put a valid, non-root user as the 'suiduser'
option. This user is the account kismet will run as once it has
attached to the capture source.
3. Run kismet_monitor to enable rfmon mode, optionally with the
channel hopper. kismet_monitor must be run as root because it
changes the state of the card.
4. Run kismet. Kismet should be run as the user you specified as
the 'suiduser'. If kismet is started as root, it will drop privs
to this user, but the frontend will still run as root.

If you have not already, read the docs in docs/ and edit
etc/kismet/kismet.conf to configure it for your system. If you do not
configure this, Kismet will NOT run properly!
<<
DescPort: <<
Remove all traces of included GNU getopt (will use Fink's). Added
needed flags to find it and keep getopt.h happy. Sources all specifiy
their own getopt.h, so patch to use any.

This needs Viha (for AirPort support) (README says supports 0.0.1a,
may work with 0.0.2). But 0.0.1a is only available as a precompiled
binary that cannot be relocated from /Library (so cannot make a fink
package). The only 0.0.2 thing I see looks like a very different
program altogether, so will just force the user to manually install
viha-0.0.1a via a system-viha package.

Fink's wireshark (-ssl) installs libwiretap but no headers, so disable.

All config files from etc/ consolidated into etc/%n.

Not installing the extras (so not docs/README.extras either).

Need CC=g++ so can compile against framework WiFi.

Fix some syntax problems and library changes for modern ImageMagick.
<<
DescPackaging: Formerly maintained by Daniel Macks
Homepage: http://www.kismetwireless.net/
License: GPL
Maintainer: None
BuildDepends: <<
bzip2-dev, fink (>= 0.24.12-1), expat1, imagemagick1-dev,
lcms, libjpeg, libncurses5, libpng3, libtiff,
libxml2, x11-dev, gcc3.3
<<
Depends: <<
bzip2-shlibs, expat1-shlibs, imagemagick1-shlibs,
lcms-shlibs, libjpeg-shlibs, libncurses5-shlibs, libpng3-shlibs, libtiff-shlibs,
libxml2-shlibs, system-viha (>= 0.0.1a-1), wget (>= 1.10.1-1), wireshark-ssl | wireshark, x11
<<
Conflicts: system-viha (>= 0.0.2-1)
Recommends: gpsdrive
GCC: 3.3
Source: http://www.kismetwireless.net/code/old/%n-%v.tar.gz
Source-MD5: 7ba34081eb93d7ca27377593ba40524b
PatchFile: %n.patch
PatchFile-MD5: 94a35b604d49d9927c84e1a6b56f97ae
PatchScript: <<
%{default_script}
rm -f getopt.*
perl -pi.bak -e 's/getopt.o//g' Makefile.in
perl -pi.bak -e 's/"getopt.h"//' `grep -lr '"getopt.h"' .`
perl -pi.bak -e 's|/usr/local/etc|%p/etc/%n|' README docs/README.html man/kismet.conf.5
<<
SetCC: g++-3.3
ConfigureParams: --mandir='${prefix}/share/man' --sysconfdir='${prefix}/etc/%n' --without-ethereal
CompileScript: <<
./configure %c
make dep
make
<<
DocFiles: CHANGELOG FAQ GPL README TODO docs/DEVEL.* docs/README.*
ConfFiles: <<
%p/etc/%n/ap_manuf
%p/etc/%n/client_manuf
%p/etc/%n/kismet.conf
%p/etc/%n/kismet_drone.conf
%p/etc/%n/kismet_ui.conf
<<

kismet stable port .patch

diff -Nurd -x'*~' kismet-3.0.1.orig/configure kismet-3.0.1/configure
--- kismet-3.0.1.orig/configure 2003-08-07 00:24:06.000000000 -0400
+++ kismet-3.0.1/configure 2008-05-03 18:44:23.000000000 -0400
@@ -6785,10 +6785,14 @@

if test "$magickmajor" -lt 5; then
magickold="yes";
- elif test "$magickmajor" -eq 5 -a "$magickminor" -lt 4; then
- magickold="yes";
- elif test "$magickmajor" -eq 5 -a "$magickminor" -eq 4 -a "$magicktiny" -lt 7; then
+ elif test "$magickmajor" -eq 5; then
+ if test "$magickminor" -lt 4; then
magickold="yes";
+ elif test "$magickminor" -eq 4; then
+ if test "$magicktiny" -lt 7; then
+ magickold="yes";
+ fi
+ fi
fi
fi

@@ -7091,13 +7095,13 @@
fi

if test "$magickhdr" = "yes"; then
- echo "$as_me:$LINENO: checking for WriteImage in -lMagick" >&5
-echo $ECHO_N "checking for WriteImage in -lMagick... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for WriteImage in -lMagickCore" >&5
+echo $ECHO_N "checking for WriteImage in -lMagickCore... $ECHO_C" >&6
if test "${ac_cv_lib_Magick_WriteImage+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lMagick $LIBS"
+LIBS="-lMagickCore $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
diff -Nurd -x'*~' kismet-3.0.1.orig/gpsmap.cc kismet-3.0.1/gpsmap.cc
--- kismet-3.0.1.orig/gpsmap.cc 2003-07-04 00:05:07.000000000 -0400
+++ kismet-3.0.1/gpsmap.cc 2003-10-31 06:06:18.000000000 -0500
@@ -742,11 +742,11 @@
}

if (in_printstats)
- printf("Track %d: %d samples.\n", vec, track_vec[vec].size());
+ printf("Track %d: %ld samples.\n", vec, track_vec[vec].size());
}
}

- printf("Processing %d networks.\n", bssid_gpsnet_map.size());
+ printf("Processing %ld networks.\n", bssid_gpsnet_map.size());

for (map::const_iterator x = bssid_gpsnet_map.begin();
x != bssid_gpsnet_map.end(); ++x) {
diff -Nurd -x'*~' kismet-3.0.1.orig/panelfront_display.cc kismet-3.0.1/panelfront_display.cc
--- kismet-3.0.1.orig/panelfront_display.cc 2003-08-05 02:04:06.000000000 -0400
+++ kismet-3.0.1/panelfront_display.cc 2003-10-31 03:51:03.000000000 -0500
@@ -208,7 +208,7 @@
snprintf(element, 4, "%3d", (idle_time < (decay * 2)) ? net->noise : 0);
len = 3;
} else if (colindex == mcol_clients) {
- snprintf(element, 5, "%4d", net->client_map.size());
+ snprintf(element, 5, "%4ld", net->client_map.size());
len = 4;
} else if (colindex == mcol_datasize) {
if (net->datasize < 1024) // Less than 1k gets raw bytes
@@ -1368,7 +1368,7 @@
kwin->text.push_back(output);

if (details_network->networks.size() > 1) {
- snprintf(output, print_width, "Networks: %d", details_network->networks.size());
+ snprintf(output, print_width, "Networks: %ld", details_network->networks.size());
kwin->text.push_back(output);

if (details_network->virtnet->gps_fixed != -1) {
@@ -1540,7 +1540,7 @@
snprintf(output, print_width, "Latest : %.24s", ctime((const time_t *) &dnet->last_time));
kwin->text.push_back(output);

- snprintf(output, print_width, "Clients : %d", dnet->client_map.size());
+ snprintf(output, print_width, "Clients : %ld", dnet->client_map.size());
kwin->text.push_back(output);

switch (dnet->type) {
@@ -2429,7 +2429,7 @@
snprintf(output, print_width, "Start : %.24s", ctime((const time_t *) &start_time));
details_text.push_back(output);

- snprintf(output, print_width, "Servers : %d", context_list.size());
+ snprintf(output, print_width, "Servers : %ld", context_list.size());
details_text.push_back(output);

snprintf(output, print_width, "Networks: %d", num_networks);
diff -Nurd -x'*~' kismet-3.0.1.orig/tcpclient.cc kismet-3.0.1/tcpclient.cc
--- kismet-3.0.1.orig/tcpclient.cc 2003-08-02 14:21:46.000000000 -0400
+++ kismet-3.0.1/tcpclient.cc 2003-10-31 03:46:56.000000000 -0500
@@ -516,7 +516,7 @@
char alrmstr[2048];
char atype[128];
alert_info alrm;
- if (sscanf(in_data+hdrlen, "%ld %ld %128s \001%2047[^\001]\001\n", &alrm.alert_ts.tv_sec,
+ if (sscanf(in_data+hdrlen, "%d %d %128s \001%2047[^\001]\001\n", &alrm.alert_ts.tv_sec,
&alrm.alert_ts.tv_usec, atype, alrmstr) < 3)
return 0;
alrm.alert_text = string(atype) + string(" ") + string(alrmstr);

kismet _unstable_ port information

Package: kismet
Version: 3.0.1
Revision: 1035

# framework WiFi is ppc-only binary
Architecture: powerpc
Distribution: 10.4

Description: 802.11 wireless network sniffer
DescDetail: <<
Kismet is an 802.11 wireless network sniffer - this is different from
a normal network sniffer (such as Ethereal or tcpdump) because it
separates and identifies different wireless networks in the area.
Kismet works with any 802.11b wireless card which is capable of
reporting raw packets (rfmon support), which include any prism2 based
card (Linksys, D-Link, Rangelan, etc), Cisco Aironet cards, and
Orinoco based cards. Kismet also supports the WSP100 802.11b remote
sensor by Network Chemistry and is able to monitor 802.11a networks
with cards which use the ar5k chipset.
<<
DescUsage: <<
QUICK START

Detailed information about each of these steps can be found in the
appropriate section of the documentation.

1. Compile and Install Kismet
2. Configure kismet.conf and kismet_ui.conf for your card and
setup. Make sure to put a valid, non-root user as the 'suiduser'
option. This user is the account kismet will run as once it has
attached to the capture source.
3. Run kismet_monitor to enable rfmon mode, optionally with the
channel hopper. kismet_monitor must be run as root because it
changes the state of the card.
4. Run kismet. Kismet should be run as the user you specified as
the 'suiduser'. If kismet is started as root, it will drop privs
to this user, but the frontend will still run as root.

If you have not already, read the docs in docs/ and edit
etc/kismet/kismet.conf to configure it for your system. If you do not
configure this, Kismet will NOT run properly!
<<
DescPort: <<
Remove all traces of included GNU getopt (will use Fink's). Added
needed flags to find it and keep getopt.h happy. Sources all specifiy
their own getopt.h, so patch to use any.

This needs Viha (for AirPort support) (README says supports 0.0.1a,
may work with 0.0.2). But 0.0.1a is only available as a precompiled
binary that cannot be relocated from /Library (so cannot make a fink
package). The only 0.0.2 thing I see looks like a very different
program altogether, so will just force the user to manually install
viha-0.0.1a via a system-viha package.

Fink's wireshark (-ssl) installs libwiretap but no headers, so disable.

All config files from etc/ consolidated into etc/%n.

Not installing the extras (so not docs/README.extras either).

Need CC=g++ so can compile against framework WiFi.

Fix some syntax problems and library changes for modern ImageMagick.
<<
DescPackaging: Formerly maintained by Daniel Macks
Homepage: http://www.kismetwireless.net/
License: GPL
Maintainer: None
BuildDepends: <<
bzip2-dev, fink (>= 0.24.12-1), expat1, imagemagick1-dev,
lcms, libjpeg, libncurses5, libpng3, libtiff,
libxml2, x11-dev, gcc3.3
<<
Depends: <<
bzip2-shlibs, expat1-shlibs, imagemagick1-shlibs,
lcms-shlibs, libjpeg-shlibs, libncurses5-shlibs, libpng3-shlibs, libtiff-shlibs,
libxml2-shlibs, system-viha (>= 0.0.1a-1), wget (>= 1.10.1-1), wireshark-ssl | wireshark, x11
<<
Conflicts: system-viha (>= 0.0.2-1)
Recommends: gpsdrive
GCC: 3.3
Source: http://www.kismetwireless.net/code/old/%n-%v.tar.gz
Source-MD5: 7ba34081eb93d7ca27377593ba40524b
PatchFile: %n.patch
PatchFile-MD5: 94a35b604d49d9927c84e1a6b56f97ae
PatchScript: <<
%{default_script}
rm -f getopt.*
perl -pi.bak -e 's/getopt.o//g' Makefile.in
perl -pi.bak -e 's/"getopt.h"//' `grep -lr '"getopt.h"' .`
perl -pi.bak -e 's|/usr/local/etc|%p/etc/%n|' README docs/README.html man/kismet.conf.5
<<
SetCC: g++-3.3
ConfigureParams: --mandir='${prefix}/share/man' --sysconfdir='${prefix}/etc/%n' --without-ethereal
CompileScript: <<
./configure %c
make dep
make
<<
DocFiles: CHANGELOG FAQ GPL README TODO docs/DEVEL.* docs/README.*
ConfFiles: <<
%p/etc/%n/ap_manuf
%p/etc/%n/client_manuf
%p/etc/%n/kismet.conf
%p/etc/%n/kismet_drone.conf
%p/etc/%n/kismet_ui.conf
<<

kismet _unstable_ port .patch

diff -Nurd -x'*~' kismet-3.0.1.orig/configure kismet-3.0.1/configure
--- kismet-3.0.1.orig/configure 2003-08-07 00:24:06.000000000 -0400
+++ kismet-3.0.1/configure 2008-05-03 18:44:23.000000000 -0400
@@ -6785,10 +6785,14 @@

if test "$magickmajor" -lt 5; then
magickold="yes";
- elif test "$magickmajor" -eq 5 -a "$magickminor" -lt 4; then
- magickold="yes";
- elif test "$magickmajor" -eq 5 -a "$magickminor" -eq 4 -a "$magicktiny" -lt 7; then
+ elif test "$magickmajor" -eq 5; then
+ if test "$magickminor" -lt 4; then
magickold="yes";
+ elif test "$magickminor" -eq 4; then
+ if test "$magicktiny" -lt 7; then
+ magickold="yes";
+ fi
+ fi
fi
fi

@@ -7091,13 +7095,13 @@
fi

if test "$magickhdr" = "yes"; then
- echo "$as_me:$LINENO: checking for WriteImage in -lMagick" >&5
-echo $ECHO_N "checking for WriteImage in -lMagick... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for WriteImage in -lMagickCore" >&5
+echo $ECHO_N "checking for WriteImage in -lMagickCore... $ECHO_C" >&6
if test "${ac_cv_lib_Magick_WriteImage+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lMagick $LIBS"
+LIBS="-lMagickCore $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
diff -Nurd -x'*~' kismet-3.0.1.orig/gpsmap.cc kismet-3.0.1/gpsmap.cc
--- kismet-3.0.1.orig/gpsmap.cc 2003-07-04 00:05:07.000000000 -0400
+++ kismet-3.0.1/gpsmap.cc 2003-10-31 06:06:18.000000000 -0500
@@ -742,11 +742,11 @@
}

if (in_printstats)
- printf("Track %d: %d samples.\n", vec, track_vec[vec].size());
+ printf("Track %d: %ld samples.\n", vec, track_vec[vec].size());
}
}

- printf("Processing %d networks.\n", bssid_gpsnet_map.size());
+ printf("Processing %ld networks.\n", bssid_gpsnet_map.size());

for (map::const_iterator x = bssid_gpsnet_map.begin();
x != bssid_gpsnet_map.end(); ++x) {
diff -Nurd -x'*~' kismet-3.0.1.orig/panelfront_display.cc kismet-3.0.1/panelfront_display.cc
--- kismet-3.0.1.orig/panelfront_display.cc 2003-08-05 02:04:06.000000000 -0400
+++ kismet-3.0.1/panelfront_display.cc 2003-10-31 03:51:03.000000000 -0500
@@ -208,7 +208,7 @@
snprintf(element, 4, "%3d", (idle_time < (decay * 2)) ? net->noise : 0);
len = 3;
} else if (colindex == mcol_clients) {
- snprintf(element, 5, "%4d", net->client_map.size());
+ snprintf(element, 5, "%4ld", net->client_map.size());
len = 4;
} else if (colindex == mcol_datasize) {
if (net->datasize < 1024) // Less than 1k gets raw bytes
@@ -1368,7 +1368,7 @@
kwin->text.push_back(output);

if (details_network->networks.size() > 1) {
- snprintf(output, print_width, "Networks: %d", details_network->networks.size());
+ snprintf(output, print_width, "Networks: %ld", details_network->networks.size());
kwin->text.push_back(output);

if (details_network->virtnet->gps_fixed != -1) {
@@ -1540,7 +1540,7 @@
snprintf(output, print_width, "Latest : %.24s", ctime((const time_t *) &dnet->last_time));
kwin->text.push_back(output);

- snprintf(output, print_width, "Clients : %d", dnet->client_map.size());
+ snprintf(output, print_width, "Clients : %ld", dnet->client_map.size());
kwin->text.push_back(output);

switch (dnet->type) {
@@ -2429,7 +2429,7 @@
snprintf(output, print_width, "Start : %.24s", ctime((const time_t *) &start_time));
details_text.push_back(output);

- snprintf(output, print_width, "Servers : %d", context_list.size());
+ snprintf(output, print_width, "Servers : %ld", context_list.size());
details_text.push_back(output);

snprintf(output, print_width, "Networks: %d", num_networks);
diff -Nurd -x'*~' kismet-3.0.1.orig/tcpclient.cc kismet-3.0.1/tcpclient.cc
--- kismet-3.0.1.orig/tcpclient.cc 2003-08-02 14:21:46.000000000 -0400
+++ kismet-3.0.1/tcpclient.cc 2003-10-31 03:46:56.000000000 -0500
@@ -516,7 +516,7 @@
char alrmstr[2048];
char atype[128];
alert_info alrm;
- if (sscanf(in_data+hdrlen, "%ld %ld %128s \001%2047[^\001]\001\n", &alrm.alert_ts.tv_sec,
+ if (sscanf(in_data+hdrlen, "%d %d %128s \001%2047[^\001]\001\n", &alrm.alert_ts.tv_sec,
&alrm.alert_ts.tv_usec, atype, alrmstr) < 3)
return 0;
alrm.alert_text = string(atype) + string(" ") + string(alrmstr);