X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=kismet.spec;h=a0ff4f168d46e8a68a4d11ad4ad892a81f91c9e6;hb=3659c40e3d4ed18e3f3c19586c9013e60c613c11;hp=ffd4ad25a8384b1236c24824ae736db4b3f08b41;hpb=a824f1d9c3db3e2542acb19eaf6ee52a34b2e5f7;p=packages%2Fkismet.git diff --git a/kismet.spec b/kismet.spec index ffd4ad2..a0ff4f1 100644 --- a/kismet.spec +++ b/kismet.spec @@ -1,21 +1,31 @@ +# +# TODO: Anybody knows, why it will not build, +# when kernel-headers are installed? +# Summary: Wireless network sniffer -Summary(pl): Sniffer sieci bezprzewodowych +Summary(pl.UTF-8): Sniffer sieci bezprzewodowych Name: kismet -Version: 2.8.1 -Release: 1 +Version: 2007_01_R1b +%define _ver 2007-01-R1b +Release: 3 License: GPL Group: Networking/Utilities -Source0: http://www.kismetwireless.net/code/%{name}-%{version}.tar.gz +Source0: http://www.kismetwireless.net/code/%{name}-%{_ver}.tar.gz +# Source0-md5: a1dcea71f0c3f881ef72f5bca2db7b39 +Patch0: %{name}-c++.patch URL: http://www.kismetwireless.net/ BuildRequires: ImageMagick-devel -BuildRequires: XFree86-devel -BuildRequires: expat-devel -BuildRequires: libpcap-devel -BuildRequires: ncurses-devel -BuildRequires: zlib-devel +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gmp-devel +BuildRequires: libpcap-devel >= 2:0.9.4-1 +BuildRequires: libstdc++-devel +BuildRequires: libwiretap-devel +BuildRequires: ncurses-ext-devel +# it uses internal structures - so strict deps +%requires_eq libpcap BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) - %description Kismet is a 802.11b wireless network sniffer. It is capable of sniffing using almost any wireless card supported in Linux, including @@ -24,33 +34,37 @@ Rangelan, etc), cards which support standard packet capture via libpcap (Cisco), and limited support for cards without RF Monitor support. -%description -l pl +%description -l pl.UTF-8 Kismet to sniffer bezprzewodowych sieci 802.11b. Jest zdolny do -sniffowania u¿ywaj±c prawie dowolnych bezprzewodowych kart sieciowych -w Linuxie w³±czaj±c w to karty Prism2 wspierane przez projekt Wlan-NG -(Linksys, Dlink, Rangelan, etc), kart które umo¿liwiaj± -przechwytywanie pakietów poprzez libpcap (Cisco), oraz ograniczone -wsparcie dla kart bez obs³ugi Monitora RF. +sniffowania używając prawie dowolnych bezprzewodowych kart sieciowych +w Linuksie włączając w to karty Prism2 wspierane przez projekt Wlan-NG +(Linksys, Dlink, Rangelan, etc), kart które umożliwiają +przechwytywanie pakietów poprzez libpcap (Cisco), oraz ograniczone +wsparcie dla kart bez obsługi Monitora RF. %prep -%setup -q +%setup -q -n %{name}-%{_ver} +%patch0 -p1 -%build -cp Makefile.in Makefile.new -sed -e 's#-o $(INSTUSR)##g' -e 's#-o $(INSTGRP)##g' \ - Makefile.new > Makefile.in +sed -i -e 's#-o $(INSTUSR)##g' -e 's#-o $(INSTGRP)##g' Makefile.in +%build +cp -f /usr/share/automake/config.* . +%{__aclocal} +%{__autoconf} +CPPFLAGS="-I/usr/include/ncurses" %configure \ - CPPFLAGS="-I%{_includedir}/X11 -I/usr/include/ncurses" \ + --enable-syspcap \ + --with-linuxheaders=no \ + --with-ethereal=%{_includedir} \ %ifarch arm - --enable-zaurus \ + --enable-zaurus %endif - --enable-syspcap -%{__make} dep all + +%{__make} %install rm -rf $RPM_BUILD_ROOT - install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}} %{__make} install \ @@ -68,8 +82,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc docs/* CHANGELOG FAQ README +%doc docs/* CHANGELOG CHANGELOG-OLD README %attr(755,root,root) %{_bindir}/* +%{_sysconfdir}/*_manuf %{_datadir}/%{name} %{_mandir}/man?/* -%config(noreplace) %{_sysconfdir}/%{name}* +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}*