packages: kismet/kismet.spec - release 5: package the plugins
radek
radek at pld-linux.org
Sun May 16 23:45:49 CEST 2010
Author: radek Date: Sun May 16 21:45:49 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- release 5: package the plugins
---- Files affected:
packages/kismet:
kismet.spec (1.51 -> 1.52)
---- Diffs:
================================================================
Index: packages/kismet/kismet.spec
diff -u packages/kismet/kismet.spec:1.51 packages/kismet/kismet.spec:1.52
--- packages/kismet/kismet.spec:1.51 Thu Apr 15 09:16:34 2010
+++ packages/kismet/kismet.spec Sun May 16 23:45:44 2010
@@ -8,7 +8,7 @@
Name: kismet
Version: 2010_01_R1
%define _ver 2010-01-R1
-Release: 4
+Release: 5
License: GPL
Group: Networking/Utilities
Source0: http://www.kismetwireless.net/code/%{name}-%{_ver}.tar.gz
@@ -29,6 +29,8 @@
%requires_eq libpcap
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define plugins plugin-autowep plugin-btscan plugin-ptw plugin-spectools
+
%description
Kismet is a 802.11b wireless network sniffer. It is capable of
sniffing using almost any wireless card supported in Linux, including
@@ -66,6 +68,11 @@
%{__make}
+for plugin in %plugins; do
+ sed -ie 's/install -o $(INSTUSR) -g $(INSTGRP)/install/' $plugin/Makefile
+ %{__make} KIS_SRC_DIR=$PWD -C $plugin;
+done
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
@@ -80,6 +87,18 @@
SHARE=$RPM_BUILD_ROOT%{_datadir}/%{name} \
MAN=$RPM_BUILD_ROOT%{_mandir}
+for plugin in %plugins; do
+ %{__make} KIS_SRC_DIR=$PWD -C $plugin install \
+ INSTGRP=$(id -g) \
+ MANGRP=$(id -g) \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{_prefix} \
+ ETC=$RPM_BUILD_ROOT%{_sysconfdir} \
+ BIN=$RPM_BUILD_ROOT%{_bindir} \
+ SHARE=$RPM_BUILD_ROOT%{_datadir}/%{name} \
+ MAN=$RPM_BUILD_ROOT%{_mandir}
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -90,6 +109,9 @@
%{_datadir}/%{name}
%{_mandir}/man?/*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}*
+# FIXME: verify this path on x86_64, does Kismet search in lib64 or here?
+%attr(755,root,root) %{_prefix}/lib/kismet
+%attr(755,root,root) %{_prefix}/lib/kismet_client
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -97,6 +119,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.52 2010/05/16 21:45:44 radek
+- release 5: package the plugins
+
Revision 1.51 2010/04/15 07:16:34 arekm
- release 4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kismet/kismet.spec?r1=1.51&r2=1.52&f=u
More information about the pld-cvs-commit
mailing list