packages: kismet/kismet.spec - server subpackage, add kismet user
glen
glen at pld-linux.org
Thu Jan 13 19:04:48 CET 2011
Author: glen Date: Thu Jan 13 18:04:48 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- server subpackage, add kismet user
---- Files affected:
packages/kismet:
kismet.spec (1.59 -> 1.60)
---- Diffs:
================================================================
Index: packages/kismet/kismet.spec
diff -u packages/kismet/kismet.spec:1.59 packages/kismet/kismet.spec:1.60
--- packages/kismet/kismet.spec:1.59 Thu Jan 13 10:15:58 2011
+++ packages/kismet/kismet.spec Thu Jan 13 19:04:43 2011
@@ -1,16 +1,13 @@
# $Revision$, $Date$
# TODO
# - Anybody knows, why it will not build, when kernel-headers are installed?
-# - maybe subpkg server and add initscript to it? especially as kismet server
-# can be remote. kismet_capture would still be in client package?
-# - update ncurses patch for tinfo, make it detect wide versions as well
#
%define tarver %(echo %{version} | tr _ -)
Summary: Wireless network sniffer
Summary(pl.UTF-8): Sniffer sieci bezprzewodowych
Name: kismet
Version: 2010_07_R1
-Release: 0.4
+Release: 0.6
License: GPL
Group: Networking/Utilities
Source0: http://www.kismetwireless.net/code/%{name}-%{tarver}.tar.gz
@@ -30,6 +27,7 @@
BuildRequires: pcre-devel
BuildRequires: pkgconfig
BuildRequires: sed >= 4.0
+Suggests: %{name}-server
# it uses internal structures - so strict deps
%requires_eq libpcap
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -52,6 +50,17 @@
przechwytywanie pakietów poprzez libpcap (Cisco), oraz ograniczone
wsparcie dla kart bez obsługi Monitora RF.
+%package server
+Summary: Server for Kismet
+Group: Networking/Daemons
+Requires(postun): /usr/sbin/groupdel
+Requires(pre): /usr/sbin/groupadd
+Provides: group(kismet)
+
+%description server
+This package contains kismet_server which you can access with kismet
+protocol compatible clients.
+
%prep
%setup -q -n %{name}-%{tarver}
%patch0 -p1
@@ -97,33 +106,41 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre server
+%groupadd -P %{name}-server -g 180 kismet
+
+%preun server
+if [ "$1" = "0" ]; then
+ %groupremove kismet
+fi
+
%files
%defattr(644,root,root,755)
%doc docs/* CHANGELOG README README.plugin-*
%attr(755,root,root) %{_bindir}/kismet
%attr(755,root,root) %{_bindir}/kismet_client
-%attr(755,root,root) %{_bindir}/kismet_drone
-%attr(755,root,root) %{_bindir}/kismet_server
-# TODO: create kismet group instead
-%attr(4750,root,adm) %{_bindir}/kismet_capture
%{_datadir}/%{name}
%{_mandir}/man1/kismet.1*
%{_mandir}/man1/kismet_drone.1*
-%{_mandir}/man5/kismet.conf.5*
-%{_mandir}/man5/kismet_drone.conf.5*
+%dir %{_libdir}/kismet_client
+%attr(755,root,root) %{_libdir}/kismet_client/btscan_ui.so
+%attr(755,root,root) %{_libdir}/kismet_client/spectools_ui.so
+
+%files server
+%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/kismet.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/kismet_drone.conf
+%attr(4750,root,kismet) %{_bindir}/kismet_capture
+%attr(755,root,root) %{_bindir}/kismet_drone
+%attr(755,root,root) %{_bindir}/kismet_server
+%{_mandir}/man5/kismet.conf.5*
+%{_mandir}/man5/kismet_drone.conf.5*
%dir %{_libdir}/kismet
-%dir %{_libdir}/kismet_client
%attr(755,root,root) %{_libdir}/kismet/aircrack-kismet.so
%attr(755,root,root) %{_libdir}/kismet/autowep-kismet.so
%attr(755,root,root) %{_libdir}/kismet/btscan.so
%attr(755,root,root) %{_libdir}/kismet/spectool_net.so
-%attr(755,root,root) %{_libdir}/kismet_client/btscan_ui.so
-%attr(755,root,root) %{_libdir}/kismet_client/spectools_ui.so
-
-# TODO: kismet group
-%dir %attr(770,root,adm) /var/log/%{name}
+%dir %attr(770,root,kismet) /var/log/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -131,6 +148,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.60 2011/01/13 18:04:43 glen
+- server subpackage, add kismet user
+
Revision 1.59 2011/01/13 09:15:58 glen
- fix log dir
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kismet/kismet.spec?r1=1.59&r2=1.60&f=u
More information about the pld-cvs-commit
mailing list