|
|
4aa6d5e |
%global _version 2009-06-R1
|
|
|
77c40ea |
|
|
|
1ac0a1f |
## {Local macros...
|
|
|
1ac0a1f |
%global cfgdir %_sysconfdir/%name
|
|
|
1ac0a1f |
%global _rpmversion 0.0.%(echo %_version | tr - .)
|
|
|
1ac0a1f |
## ...local macros}
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%{!?release_func:%global release_func() %1%{?dist}}
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
Summary: WLAN detector, sniffer and IDS
|
|
|
1ac0a1f |
Name: kismet
|
|
|
1ac0a1f |
Version: %_rpmversion
|
|
|
4aa6d5e |
Release: %release_func 0
|
|
|
5825008 |
License: GPLv2+
|
|
|
1ac0a1f |
Group: Applications/Internet
|
|
|
1ac0a1f |
URL: http://www.kismetwireless.net/
|
|
|
1ac0a1f |
Source0: http://www.kismetwireless.net/code/%name-%_version.tar.gz
|
|
|
1ac0a1f |
Source1: http://www.kismetwireless.net/code/%name-%_version.tar.gz.asc
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
Source12: kismet_capture.pam
|
|
|
4aa6d5e |
Source13: kismet_capture.console
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
Patch16: kismet-2009-06-R1-fmt.patch
|
|
|
4aa6d5e |
Patch17: kismet-2009-06-R1-perms.patch
|
|
|
4aa6d5e |
Patch18: kismet-2009-06-R1-envp.patch
|
|
|
4aa6d5e |
|
|
|
1ac0a1f |
BuildRoot: %_tmppath/%name-%version-%release-root
|
|
|
4aa6d5e |
BuildRequires: ncurses-devel diffutils
|
|
|
4aa6d5e |
BuildRequires: libpcap-devel pcre-devel
|
|
|
5f3bbfa |
BuildRequires: openssl-devel libcap-devel libnl-devel
|
|
|
4aa6d5e |
Requires: usermode
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
# HACK: work around https://fedorahosted.org/usermode/ticket/1
|
|
|
4aa6d5e |
Source50: kismet_capture_wrap.c
|
|
|
4aa6d5e |
BuildRequires: dietlibc
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
%package plugins
|
|
|
4aa6d5e |
Summary: Plugins for kismet
|
|
|
1ac0a1f |
Group: Applications/Internet
|
|
|
1ac0a1f |
Requires: %name = %version-%release
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%description
|
|
|
1ac0a1f |
Kismet is an 802.11 layer2 wireless network detector, sniffer, and
|
|
|
1ac0a1f |
intrusion detection system. Kismet will work with any wireless card
|
|
|
1ac0a1f |
which supports raw monitoring (rfmon) mode, and can sniff 802.11b,
|
|
|
1ac0a1f |
802.11a, and 802.11g traffic.
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
Kismet identifies networks by passively collecting packets and detecting
|
|
|
1ac0a1f |
standard named networks, detecting (and given time, decloaking) hidden
|
|
|
1ac0a1f |
networks, and infering the presence of nonbeaconing networks via data
|
|
|
1ac0a1f |
traffic.
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
%description plugins
|
|
|
1ac0a1f |
Kismet is an 802.11 layer2 wireless network detector, sniffer, and
|
|
|
1ac0a1f |
intrusion detection system. Kismet will work with any wireless card
|
|
|
1ac0a1f |
which supports raw monitoring (rfmon) mode, and can sniff 802.11b,
|
|
|
1ac0a1f |
802.11a, and 802.11g traffic.
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
This subpackage contains plugins shipped by the kismet package.
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%prep
|
|
|
1ac0a1f |
%setup -q -n %name-%_version
|
|
|
4aa6d5e |
%patch16 -p1
|
|
|
4aa6d5e |
%patch17 -p1
|
|
|
4aa6d5e |
%patch18 -p1
|
|
|
1ac0a1f |
|
|
|
5f3bbfa |
/bin/cp -a /usr/lib/rpm/config.sub .
|
|
|
5f3bbfa |
|
|
|
1ac0a1f |
# set our 'kismet' user, disable GPS and log into %logdir by
|
|
|
1ac0a1f |
# default
|
|
|
4aa6d5e |
sed -i \
|
|
|
f0fe207 |
-e '\!^ouifile=/etc/manuf!d' \
|
|
|
f0fe207 |
-e '\!^ouifile=/usr/share/wireshark/wireshark/manuf!d' \
|
|
|
4aa6d5e |
conf/kismet.conf.in conf/kismet_drone.conf
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%build
|
|
|
7ca63d1 |
#export ac_cv_header_linux_netlink_h=yes # we have netlink.h; just the check is buggy
|
|
|
1ac0a1f |
export ac_cv_lib_uClibcpp_main=no # we do not want to build against uClibc++, even when available
|
|
|
7ca63d1 |
export LDFLAGS='-Wl,--as-needed'
|
|
|
5f3bbfa |
%configure --sysconfdir=%cfgdir
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
# HOME will be set to @srcdir@ which is disturbing distcc
|
|
|
1ac0a1f |
make clean
|
|
|
1ac0a1f |
make %{?_smp_mflags} HOME="$HOME"
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
for i in plugin-{ptw,spectools}; do
|
|
|
4aa6d5e |
make -C $i KIS_SRC_DIR=`pwd` \
|
|
|
4aa6d5e |
CXX='%__cxx' CC='%__cc' LD='%__cxx' \
|
|
|
4aa6d5e |
CFLAGS="-I\$(KIS_SRC_DIR) -fPIC $RPM_OPT_FLAGS" \
|
|
|
4aa6d5e |
LDFLAGS="-shared -rdynamic -Wl,--as-needed"
|
|
|
4aa6d5e |
done
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
# HACK: work around https://fedorahosted.org/usermode/ticket/1
|
|
|
4aa6d5e |
diet %__cc $RPM_OPT_FLAGS %SOURCE50 -o kismet_capture.wrap
|
|
|
4aa6d5e |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%install
|
|
|
4aa6d5e |
rm -rf $RPM_BUILD_ROOT _tmp
|
|
|
4aa6d5e |
|
|
|
1ac0a1f |
make install \
|
|
|
1ac0a1f |
DESTDIR="$RPM_BUILD_ROOT" \
|
|
|
1ac0a1f |
INSTUSR="$(id -un)" INSTGRP="$(id -gn)" MANGRP="$(id -gn)"
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
for i in plugin-{ptw,spectools}; do
|
|
|
4aa6d5e |
make -C $i install KIS_DEST_DIR=`pwd`/_tmp
|
|
|
4aa6d5e |
done
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
install -d $RPM_BUILD_ROOT{%homedir,%crontabdir,%_libdir/kismet{,_client},%_libexecdir,%_sysconfdir/{sysconfig,pam.d,security/console.apps}}
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
install -p -m 0644 %SOURCE12 $RPM_BUILD_ROOT%_sysconfdir/pam.d/kismet_capture
|
|
|
4aa6d5e |
install -p -m 0644 %SOURCE13 $RPM_BUILD_ROOT%_sysconfdir/security/console.apps/kismet_capture
|
|
|
4aa6d5e |
install -p -m 0755 kismet_capture $RPM_BUILD_ROOT%_libexecdir/
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
install -Dp -m 0755 _tmp/lib/kismet/* $RPM_BUILD_ROOT%_libdir/kismet/
|
|
|
4aa6d5e |
install -Dp -m 0755 _tmp/lib/kismet_client/* $RPM_BUILD_ROOT%_libdir/kismet_client/
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
#ln -s ./consolehelper $RPM_BUILD_ROOT%_bindir/kismet_capture
|
|
|
4aa6d5e |
install -p -m 0755 kismet_capture.wrap $RPM_BUILD_ROOT%_bindir/kismet_capture
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%clean
|
|
|
1ac0a1f |
rm -rf $RPM_BUILD_ROOT
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%files
|
|
|
1ac0a1f |
%defattr(-,root,root,-)
|
|
|
4aa6d5e |
%doc CHANGELOG* GPL README docs
|
|
|
4aa6d5e |
%dir %attr(0755,root,root) %cfgdir
|
|
|
1ac0a1f |
%config(noreplace) %cfgdir/*
|
|
|
1ac0a1f |
%_bindir/kismet*
|
|
|
1ac0a1f |
%_datadir/kismet
|
|
|
1ac0a1f |
%_mandir/*/kismet*
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
%dir %_libdir/kismet
|
|
|
4aa6d5e |
%dir %_libdir/kismet_client
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
%_sysconfdir/pam.d/*
|
|
|
4aa6d5e |
%_sysconfdir/security/console.apps/*
|
|
|
4aa6d5e |
%_libexecdir/*
|
|
|
1ac0a1f |
|
|
|
4aa6d5e |
|
|
|
4aa6d5e |
%files plugins
|
|
|
1ac0a1f |
%defattr(-,root,root,-)
|
|
|
4aa6d5e |
%dir %_libdir/kismet/*.so
|
|
|
4aa6d5e |
%dir %_libdir/kismet_client/*.so
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
%changelog
|
|
|
4aa6d5e |
* Sun Aug 9 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2009.06.R1-0
|
|
|
4aa6d5e |
- updated to 2009-06-R1
|
|
|
4aa6d5e |
- reworked large parts of the package due to major upstream changes:
|
|
|
4aa6d5e |
* there is no separate user anymore but a kismet_capture consolehelper wrapper
|
|
|
4aa6d5e |
* a lot of the old filesystem layout has been changed/removed
|
|
|
4aa6d5e |
* removed -extras subpackage; added -plugins one
|
|
|
4aa6d5e |
|
|
|
1bcc682 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2008.05.R1-6
|
|
|
1bcc682 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
1bcc682 |
|
|
|
694f255 |
* Wed Mar 18 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.0.2008.05.R1-5
|
|
|
694f255 |
- Add patch to fix build against GCC 4.4 (#490811)
|
|
|
694f255 |
|
|
|
b5fd187 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2008.05.R1-4
|
|
|
b5fd187 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b5fd187 |
|
|
|
5825008 |
* Tue Aug 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.2008.05.R1-3
|
|
|
5825008 |
- fix license tag
|
|
|
5825008 |
|
|
|
2c1f7a0 |
* Sat Jun 21 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2008.05.R1-2
|
|
|
2c1f7a0 |
- applied forgotten patch
|
|
|
3272597 |
- honor $NO_TMPWATCH instead of $NO_LOGROTATE in the tmpwatch script (#427262)
|
|
|
2c1f7a0 |
|
|
|
73623bc |
* Sat Jun 21 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2008.05.R1-1
|
|
|
73623bc |
- updated to 2008-05-R1
|
|
|
73623bc |
- removed some patches and added new ones
|
|
|
73623bc |
|
|
Caolan McNamara |
49e85cd |
* Fri Jun 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.0.2007.10.R1-4
|
|
Caolan McNamara |
49e85cd |
- tweak configure to use -lMagickCore not -lMagick to rebuild for dependancies
|
|
Caolan McNamara |
49e85cd |
|
|
|
67fedbe |
* Fri Feb 22 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2007.10.R1-3
|
|
|
67fedbe |
- fixed build with gcc43 (#434084, thx to Erik van Pienbroek)
|
|
|
67fedbe |
|
|
|
67fedbe |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
|
|
|
ccfb0fb |
- Autorebuild for GCC 4.3
|
|
|
ccfb0fb |
|
|
|
40043b5 |
* Sat Nov 10 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2007.10.R1-2
|
|
|
40043b5 |
- rebuilt for new libexpat
|
|
|
40043b5 |
|
|
|
034ff37 |
* Mon Oct 8 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2007.10.R1-1
|
|
|
034ff37 |
- updated to 2007-10-R1
|
|
|
034ff37 |
- dropped/rediffed patches
|
|
|
034ff37 |
- added BR on dbus-devel
|
|
|
034ff37 |
|
|
|
af8fc07 |
* Sun Feb 4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2007.01.R1b-7
|
|
|
af8fc07 |
- further x86_64 fixes for printf() format-string modifiers
|
|
|
af8fc07 |
|
|
|
dd81128 |
* Sat Feb 3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2007.01.R1b-6
|
|
|
7ca63d1 |
- updated to 2007-01-R1b
|
|
|
dd81128 |
- removed most patches which were applied upstream; rediffed remaining
|
|
|
dd81128 |
ones
|
|
|
7ca63d1 |
- added -setgroups patch
|
|
|
7ca63d1 |
- added libpcap-devel BR; removed the glib-devel + bzip2-devel one
|
|
|
7ca63d1 |
- build with '-Wl,--as-needed'
|
|
|
7ca63d1 |
|
|
|
c62b079 |
* Fri Sep 15 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2006.04.R1-4
|
|
|
c62b079 |
- rebuilt
|
|
|
c62b079 |
|
|
|
77c40ea |
* Sun Jul 9 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2006.04.R1-3
|
|
|
77c40ea |
- use new fedora-usermgmt code
|
|
|
77c40ea |
|
|
|
1ac0a1f |
* Sat Apr 29 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2006.04.R1-2
|
|
|
1ac0a1f |
- fixed compilation problems on AMD64 introduced by my -alias patch
|
|
|
1ac0a1f |
(reported by Hans de Goede)
|
|
|
1ac0a1f |
- fixed ssize_t vs. int problem on AMD64 (found and reported by Hans
|
|
|
1ac0a1f |
de Goede)
|
|
|
1ac0a1f |
- initial import into Fedora Extra (review #165314)
|
|
|
b91a7b8 |
- added 'freetype-devel' BR which is required for -devel branch
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Sat Apr 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2006.04.R1-1
|
|
|
1ac0a1f |
- updated to 2006-04-R1
|
|
|
1ac0a1f |
- fixed/improved some ./configure checks
|
|
|
1ac0a1f |
- removed the starting 'A' from the summary
|
|
|
1ac0a1f |
- added a bunch of patches fixing compiler warnings
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Fri Mar 17 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2005.08.R1-3
|
|
|
1ac0a1f |
- fixed the usermgmt in the %%postun script: test for uninstallation
|
|
|
1ac0a1f |
and swap order of user- and groupdel operations
|
|
|
1ac0a1f |
- moved logs to /var/log/kismet
|
|
|
1ac0a1f |
- placed status information directly under /var/lib/kismet instead of
|
|
|
1ac0a1f |
/var/lib/kismet/.kismet
|
|
|
1ac0a1f |
- added /etc/cron.dail/tmpwatch.kismet to cleanup the generated
|
|
|
1ac0a1f |
logfiles; used tmpwatch because kismet creates new, differently
|
|
|
1ac0a1f |
named logfiles.
|
|
|
1ac0a1f |
- added -jobcontrol patch
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Thu Mar 16 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2005.08.R1-2
|
|
|
1ac0a1f |
- set *USR and *GRP variables to avoid problems with certain 'install'
|
|
|
1ac0a1f |
versions
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Thu Aug 18 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2005.08.R1-1
|
|
|
1ac0a1f |
- updated to 2005-08-R1 (SECURITY)
|
|
|
1ac0a1f |
- do not use 'subst()' in %%prep anymore; the files *will* be touched
|
|
|
1ac0a1f |
so we do not need to care about the timestamp
|
|
|
1ac0a1f |
- fixed copy&paste error in the gecos entry of the 'kismet' user
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Sun Aug 7 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2005.07.R1a-1
|
|
|
1ac0a1f |
- updated to 2005-07-R1a
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
* Sat Jul 9 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.0.2005.06.R1-1
|
|
|
1ac0a1f |
- Initial build.
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
|
|
|
1ac0a1f |
## Local Variables:
|
|
|
1ac0a1f |
## outline-regexp: "##\\s-*{.*\\.\\.\\."
|
|
|
1ac0a1f |
## outline-heading-end-regexp: "##\\s-*\\.\\.\\..*}"
|
|
|
1ac0a1f |
## End:
|