--- /dev/null
+--- kismet-2010-07-R1/conf/kismet.conf.in~ 2010-05-23 17:04:25.000000000 +0300
++++ kismet-2010-07-R1/conf/kismet.conf.in 2011-01-12 23:48:34.065930750 +0200
+@@ -10,7 +10,7 @@
+ servername=Kismet_2009
+
+ # Prefix of where we log (as used in the logtemplate later)
+-# logprefix=/some/path/to/logs
++logprefix=@localstatedir@/log/kismet
+
+ # Do we process the contents of data frames? If this is enabled, data
+ # frames will be truncated to the headers only immediately after frame type
+@@ -121,8 +121,8 @@
+ # OUI file, expected format 00:11:22<tab>manufname
+ # IEEE OUI file used to look up manufacturer info. We default to the
+ # wireshark one since most people have that.
+-ouifile=/etc/manuf
+-ouifile=/usr/share/wireshark/wireshark/manuf
++#ouifile=/etc/manuf
++#ouifile=/usr/share/wireshark/wireshark/manuf
+ ouifile=/usr/share/wireshark/manuf
+
+ # Do we have a GPS?
# TODO
# - Anybody knows, why it will not build, when kernel-headers are installed?
-# - maybe subpkg server and add initscript to it?
+# - maybe subpkg server and add initscript to it? especially as kismet server can be remote
#
%define tarver %(echo %{version} | tr _ -)
Summary: Wireless network sniffer
Summary(pl.UTF-8): Sniffer sieci bezprzewodowych
Name: kismet
Version: 2010_07_R1
-Release: 0.1
+Release: 0.2
License: GPL
Group: Networking/Utilities
Source0: http://www.kismetwireless.net/code/%{name}-%{tarver}.tar.gz
# Source0-md5: 85e59186eb529889118b5635f35cf57d
+Patch0: config.patch
URL: http://www.kismetwireless.net/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q -n %{name}-%{tarver}
+%patch0 -p1
# make lib64 aware, include exec bits on install
%{__sed} -i -e 's!\$(prefix)/lib/!%_libdir/!g' plugin-*/Makefile
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir},/var/lib/%{name}}
for dir in . %plugins; do
%{__make} -C $dir install \
DESTDIR="$RPM_BUILD_ROOT" \
%attr(755,root,root) %{_libdir}/kismet/spectool_net.so
%attr(755,root,root) %{_libdir}/kismet_client/btscan_ui.so
%attr(755,root,root) %{_libdir}/kismet_client/spectools_ui.so
+
+%dir /var/lib/%{name}