]> git.pld-linux.org Git - packages/kismet.git/blob - kismet.spec
- up to 2008_05_R1
[packages/kismet.git] / kismet.spec
1 #
2 # TODO: Anybody knows, why it will not build,
3 #       when kernel-headers are installed?
4 #
5 Summary:        Wireless network sniffer
6 Summary(pl.UTF-8):      Sniffer sieci bezprzewodowych
7 Name:           kismet
8 Version:        2008_05_R1
9 %define _ver    2008-05-R1
10 Release:        5
11 License:        GPL
12 Group:          Networking/Utilities
13 Source0:        http://www.kismetwireless.net/code/%{name}-%{_ver}.tar.gz
14 # Source0-md5:  6ee365d36354b4dee4945e67f8149294
15 URL:            http://www.kismetwireless.net/
16 BuildRequires:  ImageMagick-devel
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gmp-devel
20 BuildRequires:  libpcap-devel >= 2:0.9.4-1
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libwiretap-devel
23 BuildRequires:  ncurses-ext-devel
24 # it uses internal structures - so strict deps
25 %requires_eq    libpcap
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Kismet is a 802.11b wireless network sniffer. It is capable of
30 sniffing using almost any wireless card supported in Linux, including
31 Prism2 based cards supported by the Wlan-NG project (Linksys, Dlink,
32 Rangelan, etc), cards which support standard packet capture via
33 libpcap (Cisco), and limited support for cards without RF Monitor
34 support.
35
36 %description -l pl.UTF-8
37 Kismet to sniffer bezprzewodowych sieci 802.11b. Jest zdolny do
38 sniffowania używając prawie dowolnych bezprzewodowych kart sieciowych
39 w Linuksie włączając w to karty Prism2 wspierane przez projekt Wlan-NG
40 (Linksys, Dlink, Rangelan, etc), kart które umożliwiają
41 przechwytywanie pakietów poprzez libpcap (Cisco), oraz ograniczone
42 wsparcie dla kart bez obsługi Monitora RF.
43
44 %prep
45 %setup -q -n %{name}-%{_ver}
46
47 sed -i -e 's#-o $(INSTUSR)##g' -e 's#-o $(INSTGRP)##g' Makefile.in
48
49 %build
50 cp -f /usr/share/automake/config.* .
51 %{__aclocal}
52 %{__autoconf}
53 CPPFLAGS="-I/usr/include/ncurses"
54 %configure \
55         --enable-syspcap \
56         --with-linuxheaders=no \
57         --with-ethereal=%{_includedir} \
58 %ifarch arm
59         --enable-zaurus
60 %endif
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
67
68 %{__make} install \
69         INSTGRP=$(id -g) \
70         MANGRP=$(id -g) \
71         prefix=$RPM_BUILD_ROOT%{_prefix} \
72         exec_prefix=$RPM_BUILD_ROOT%{_prefix} \
73         ETC=$RPM_BUILD_ROOT%{_sysconfdir} \
74         BIN=$RPM_BUILD_ROOT%{_bindir} \
75         SHARE=$RPM_BUILD_ROOT%{_datadir}/%{name} \
76         MAN=$RPM_BUILD_ROOT%{_mandir}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc docs/* CHANGELOG CHANGELOG-OLD README TODO
84 %attr(755,root,root) %{_bindir}/*
85 %{_sysconfdir}/*_manuf
86 %{_datadir}/%{name}
87 %{_mandir}/man?/*
88 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}*
This page took 0.033726 seconds and 4 git commands to generate.