File kismet-2007-10-R1.spec of Package kismet-2007-10-R1

# note: this was stolen from 
# https://build.opensuse.org/project/show?project=home%3Arkwasny
# and modified by Eric Gearhart (eric@nixwizard.net)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# neededforbuild devs gcc-c++ glib2-devel gmp libexif pkgconfig wget
# ImageMagick ImageMagick-devel ethereal expat freetype2 
# freetype2-devel gcc-c++ glib2 glib2-devel gmp libexif libjpeg liblcms 
# liblcms-devel libstdc++ libstdc++-devel libtiff pkgconfig wget

#BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp 
#cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup #findutils flex gawk gdbm-devel gettext-devel glibc glibc-devel glibc-locale gpm #grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc #libnscd libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses #ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch #permissions popt procinfo procps psmisc pwdutils rcs readline sed strace #sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel #ImageMagick ImageMagick-devel autoconf automake binutils ethereal expat #fontconfig fontconfig-devel freetype2 freetype2-devel gcc gcc-c++ gdbm gettext #glib2 glib2-devel gmp gnome-filesystem libexif libjpeg libjpeg-devel liblcms #liblcms-devel libstdc++-devel libtiff libtiff-devel libtool perl pkgconfig rpm #wget xorg-x11-devel xorg-x11-libs

BuildRequires: gcc-c++ glib2-devel gmp libexif pkgconfig wget ethereal ncurses-devel

Name:         kismet-2007
Version:      10
Release:      1
Requires:     wget wireless-tools
Autoreqprov:  on
Group:        Productivity/Networking/Diagnostic
License:      GPL
URL:          http://www.kismetwireless.net/
Summary:      An 802.11 Wireless Network Sniffer
Source0:      %{name}-%{version}-R1.tar.gz
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Kismet is an 802.11 wireless network sniffer - this is different from a
normal network sniffer (such as Ethereal or tcpdump) because it
separates and identifies different wireless networks in the area.
Kismet works with any 802.11b wireless card which is capable of
reporting raw packets (rfmon support), which include any Prism2 based
card (Linksys, D-Link, Rangelan, and more), Cisco Aironet cards, and
Orinoco-based cards. Kismet also supports the WSP100 802.11b remote
sensor by Network Chemistry and is able to monitor 802.11a networks
with cards which use the ar5k chipset.

%debug_package
%prep
%setup -q -n %{name}-%{version}-R1

%build
#%{?suse_update_config:%{suse_update_config -f . libpcap-0.7.2}}
aclocal --force
autoconf --force
export PKG_CONFIG_PATH=/opt/gnome/%{_lib}/pkgconfig
CFLAGS="$RPM_OPT_FLAGS -Wall -L/usr/X11R6/%{_lib} -I/usr/X11R6/include"	\
LDFLAGS="-L/usr/X11R6/%{_lib}"		\
  ./configure --prefix=%{_prefix}	\
  --sysconfdir=%{_sysconfdir}		\
  --infodir=%{_infodir} 		\
  --mandir=%{_mandir}			\
  --enable-ipv6				\
  --disable-setuid
#  --with-ethereal			\
make dep
make

%install
make install DESTDIR=$RPM_BUILD_ROOT INSTUSR="$(id -u)" MANGRP="$(id -g)" INSTGRP="$(id -u)"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README CHANGELOG
%config %{_sysconfdir}/kismet.conf
%config %{_sysconfdir}/kismet_ui.conf
%config %{_sysconfdir}/kismet_drone.conf
%{_sysconfdir}/ap_manuf
%{_sysconfdir}/client_manuf
%{_datadir}/kismet
%{_mandir}/*/*
%{_prefix}/bin/*
openSUSE Build Service is sponsored by