Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 6e5e6db7d387b0491a1bc75a9a902f99 > files > 2

kismet-3.1.041001-4mdk.src.rpm

%define name kismet
%define upstream 2004-10-R1


# numbering scheme 
# month + year + tiny
# i hope they will not release a real 3.1
# numbering : Year Month Number ( so feb 2004, first version is 040201 )
%define version 3.1.041001
%define release 4mdk

Summary: Kismet is an 802.11b network sniffer and network dissector
Name: %name
Version: %version
Release: %release
Group: Networking/Other
License: GPL
Url: http://www.kismetwireless.net
Source: http://www.kismetwireless.net/code/%{name}-%{upstream}.tar.bz2
BuildRoot: %_tmppath/%{name}-%{version}-buildroot
Buildrequires: libncurses-devel perl libpcap-devel
Buildrequires: ImageMagick-devel
Buildrequires: libexpat-devel wget
Buildrequires: glib-devel
BuildRequires: autoconf2.5
BuildRequires: flex bison

%description
Kismet is an 802.11b network sniffer and network dissector. It is
capable of sniffing using most wireless cards, automatic network IP
block detection via UDP, ARP, and DHCP packets, Cisco equipment lists
via Cisco Discovery Protocol, weak cryptographic packet logging, and
Ethereal and tcpdump compatible packet dump files. It also includes
the ability to plot detected networks and estimated network ranges on
downloaded maps or user supplied image files.

%prep

%setup -q -n %{name}-%{upstream}
perl -pi -e 's/-o \$\(INSTUSR\) -g \$\(INSTGRP\)//' Makefile.in
perl -pi -e 's/-o \$\(INSTUSR\) -g \$\(MANGRP\)//' Makefile.in
cat <<EOF > fix.h
#ifndef __FIX_H__
#define __FIX_H__
#define u32 __u32
#define u64 __u64
#define u16 __u16
#define u8  __u8
#endif
EOF

%build
export WANT_AUTOCONF_2_5=1
autoconf
%configure --without-ethereal 
#--enable-syspcap
%make
cat <<EOF >README.Mandrake
Since 3.1, kismet changed the configuration format,
especially for the sources naming.

See the list of sources in kis_packsources.cc .

The naming of the rpm is not the same as the upstream
authors. They change so oftern i decided to carry a custom
format for rpm version.
Format of the version is 3.1.YYMMNN with :
YY = Year
MM = Month
NN = Number of version this month

( so feb 2004, first version is 040201 )

This version is labeled  %{name}-%{upstream} on the website.
EOF
%install


rm -rf $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT

%makeinstall
perl -pi -e 's#/usr/local/#/usr/#' $RPM_BUILD_ROOT/%{_sysconfdir}/kismet.conf

%clean
rm -rf $RPM_BUILD_ROOT

%post

if [ -f %{_sysconfdir}/kismet.conf ] ;
then
	if ! egrep -q "^piddir="  %{_sysconfdir}/kismet.conf 
	then 
		echo "piddir=/var/run/" >> %{_sysconfdir}/kismet.conf
	fi
fi

%files
%defattr(-,root,root)
%doc CHANGELOG GPL README TIMESTAMP TODO README.Mandrake 
# kis_packsources.cc is here because it contains the list of sources
%doc docs/DEVEL.* docs/README.* kis_packsources.cc
%config(noreplace) %{_sysconfdir}/kismet.conf
%config(noreplace) %{_sysconfdir}/kismet_ui.conf
%config(noreplace) %{_sysconfdir}/*_manuf
%config(noreplace) %{_sysconfdir}/kismet_drone.conf
%_bindir/*
%_datadir/%name
%_mandir/man1/*
%_mandir/man5/*

%changelog
* Mon Mar 21 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 3.1.041001-4mdk
- Rebuild for new ImageMagick

* Fri Feb 25 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 3.1.041001-3mdk
- Rebuild for new ImageMagick

* Wed Nov 17 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 3.1.041001-2mdk
- add BuildRequires: flex bison

* Wed Nov 03 2004 Pascal Terjan <pterjan@mandrake.org> 3.1.041001-1mdk
- 2004-10-R1
- drop patches 0, 1 and 2

* Wed Aug 04 2004 Michael Scherer <misc@mandrake.org> 3.1.040401-4mdk 
- rebuild for ImageMagick, patch 2

* Tue Jul 06 2004 Michael Scherer <misc@mandrake.org> 3.1.040401-3mdk 
- rebuild for ImageMagick
- fix header inclusion

* Sun Jun 06 2004 Michael Scherer <misc@mandrake.org> 3.1.040401-2mdk 
- rebuild for new gcc

* Thu Apr 08 2004 Michael Scherer <misc@mandrake.org> 3.1.040401-1mdk 
- new version ( 2004-04-R1 )
- fixed and explain the versionning scheme

* Tue Mar 02 2004 Michael Scherer <misc@mandrake.org> 3.1.020401-2mdk 
- fix install script, thanks to sunny

* Fri Feb 13 2004 Michael Scherer <misc@mandrake.org> 3.1.020401-1mdk
- new version, new versionning scheme
- remove patch 1 and 2
- revert to use bundled libpcap
- add post script to ease upgrade
 
* Sun Sep 14 2003 Pascal Terjan <CMoi@tuxfamily.org> 3.0.1-3mdk
- Fix BuildRequires 

* Sun Aug 31 2003 Michael Scherer <scherer.michael@free.fr> 3.0.1-2mdk 
- force autoconf2.5
- rm $RPM_BUILD_ROOT before install

* Thu Aug 13 2003 Michael Scherer <scherer.michael@free.fr> 3.0.1-1mdk
- 3.0.1
- patch #1 configure.in, to really detect libpcap on the system
- patch #2 , to use some include of libpcap, in order to compile
- drop patch0, replaced by a perl oneliner
 
* Wed Jul 23 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.8.1-3mdk
- buildrequires from Michael Scherer

* Wed Feb 26 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.8.1-2mdk
- rebuild

* Mon Jan 27 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.8.1-1mdk
- 2.8.1

* Fri Jan 10 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.8.0b-1mdk
- new
- patch0: remove uid & gid in Makefile

* Sat Sep 21 2002 Mike Kershaw <dragorn@kismetwireless.net>
- Added manuf tag files, additional man files

* Wed Aug 21 2002 Jeremiah Johnson <jjohnson@sunrise-linux.com>
- Initial specfile creation.