From: Elan Ruusamäe Date: Wed, 12 Jan 2011 21:57:34 +0000 (+0000) Subject: - adjust defaults in config, add default logdir /var/log/kismet X-Git-Tag: auto/th/kismet-2010_07_R1-1~6 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fkismet.git;a=commitdiff_plain;h=74f46803d7d0f3eb7216dd48b21d390f95b7bd2d - adjust defaults in config, add default logdir /var/log/kismet Changed files: config.patch -> 1.1 kismet.spec -> 1.57 --- diff --git a/config.patch b/config.patch new file mode 100644 index 0000000..52e70f7 --- /dev/null +++ b/config.patch @@ -0,0 +1,22 @@ +--- 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:22manufname + # 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? diff --git a/kismet.spec b/kismet.spec index 438ff8b..f362f62 100644 --- a/kismet.spec +++ b/kismet.spec @@ -1,17 +1,18 @@ # 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 @@ -50,6 +51,7 @@ wsparcie dla kart bez obsługi Monitora RF. %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 @@ -76,7 +78,7 @@ done %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" \ @@ -111,3 +113,5 @@ rm -rf $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}