diff options
author | Stephen Klimaszewski <steev@gentoo.org> | 2012-02-17 04:52:21 +0000 |
---|---|---|
committer | Stephen Klimaszewski <steev@gentoo.org> | 2012-02-17 04:52:21 +0000 |
commit | 4478882d9679e2e5b96a40b554e56df784f67ce3 (patch) | |
tree | 76d9f351ed08b1f7db98f97a1e2bcf92f7cdd309 /net-wireless | |
parent | Depend on >=libgcrypt-1.4.2 (bug #404167, thanks to Wille Kuutti for reportin... (diff) | |
download | historical-4478882d9679e2e5b96a40b554e56df784f67ce3.tar.gz historical-4478882d9679e2e5b96a40b554e56df784f67ce3.tar.bz2 historical-4478882d9679e2e5b96a40b554e56df784f67ce3.zip |
New Kismet release, courtesy of ZeroChaos of Pentoo. He's also offered to proxy-maintain, so add him as proxy-maintainer, myself as committer.
Package-Manager: portage-2.1.10.46/cvs/Linux x86_64
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/kismet/ChangeLog | 13 | ||||
-rw-r--r-- | net-wireless/kismet/Manifest | 20 | ||||
-rw-r--r-- | net-wireless/kismet/files/bluechanfix_r3184.patch | 15 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet-console-scrolling-backport.patch | 12 | ||||
-rw-r--r-- | net-wireless/kismet/files/makefile.patch | 119 | ||||
-rw-r--r-- | net-wireless/kismet/files/plugins-ldflags.patch | 10 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-2011.03.2.ebuild | 160 | ||||
-rw-r--r-- | net-wireless/kismet/metadata.xml | 42 |
8 files changed, 365 insertions, 26 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog index db38fdd6eadc..332d17dae741 100644 --- a/net-wireless/kismet/ChangeLog +++ b/net-wireless/kismet/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-wireless/kismet -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.109 2011/10/27 16:10:23 jer Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.110 2012/02/17 04:52:21 steev Exp $ + +*kismet-2011.03.2 (17 Feb 2012) + + 17 Feb 2012; Steev Klimaszewsk <steev@gentoo.org> + +files/bluechanfix_r3184.patch, +kismet-2011.03.2.ebuild, + +files/kismet-console-scrolling-backport.patch, +files/makefile.patch, + +files/plugins-ldflags.patch, metadata.xml: + New Kismet release, courtesy of ZeroChaos of Pentoo. He's also offered to + proxy-maintain, so add him as proxy-maintainer, myself as committer. 27 Oct 2011; Jeroen Roovers <jer@gentoo.org> kismet-2010.01.1.ebuild, kismet-2010.01.1-r1.ebuild: diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest index 2b59732ce0b9..39494bdcc2a3 100644 --- a/net-wireless/kismet/Manifest +++ b/net-wireless/kismet/Manifest @@ -1,26 +1,22 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX bluechanfix_r3184.patch 452 RMD160 cc207c174d02c25f60f0e383f39435f35fa843e3 SHA1 a3c95e2cad5b105e2b875bec0631b85ec7e1018b SHA256 f7c9449039c76f5a919ad8399ce49b518c01046db1566bce25fd34496482faf0 AUX gcc-4.3.patch 1221 RMD160 6c9c7da7c90367a363dd5d6a4e23eeee89791552 SHA1 2aff87ae336cb27d8e96831a7ab57d3f328ca78e SHA256 5e98a582f93169f5525338b9842c9196ff8d2764c69f4dc412acafb67e3b002b AUX kismet-2007.10.1-Makefile.in.patch 2716 RMD160 abccd73749e80afe299ef46ed7ce39f132d8805c SHA1 4bbe30845e190e01dc495573f7bcedbd8da9c089 SHA256 d74c9b7c558beff78908e3d720d2b1783c101e12c2b719315b5ac3abb2c8808a AUX kismet-2007.10.1-conf.d 403 RMD160 cf6cad4dc844ccf9c807edfb5adec2351c0cd249 SHA1 50ce39c8989ddf214f72b3ac14f2a989d6121d15 SHA256 d2f5bb606e4dac45c8de27843ab460b9dac02e83979e52e1b8b3ca3af841adeb AUX kismet-2007.10.1-init.d 749 RMD160 c9dfda5e93ae8fa59679194241dd9508830dc617 SHA1 b3efd2d802aa34eee278fa8b4933e3eec8c33308 SHA256 1dd3fd3fee724490908abe072577ab159c2371820561872f8af0e30ea2f83054 AUX kismet-2008.05.1-glibc-2.10.patch 408 RMD160 8a215877f85874a920c657956ca1309ce4698bb4 SHA1 e6e18c440b51bb786317878e526aa5f1cdbcad00 SHA256 a9a21167e0d000664c420f6eed2520119334b8d81cfc1730f70ac0396db4d716 +AUX kismet-console-scrolling-backport.patch 555 RMD160 f7ed68284e54b1ca60e6d0b4e7972d474e704197 SHA1 6425814984c0d8724857dc71d4b800d3e8b2b42b SHA256 8b3ce7113e5214ffba9dd75b6027adb9f92f6e56dc3dbfde2045c77b5c44223f AUX kismet.confd 403 RMD160 cf6cad4dc844ccf9c807edfb5adec2351c0cd249 SHA1 50ce39c8989ddf214f72b3ac14f2a989d6121d15 SHA256 d2f5bb606e4dac45c8de27843ab460b9dac02e83979e52e1b8b3ca3af841adeb AUX kismet.initd 742 RMD160 f91c46a9a3d1cac2610659e65a1a3538af4f2772 SHA1 54aa3d489e2fade47cca11a036cb1237dab7786a SHA256 b4420c22264ff3604bf956b65bca5b564cbb70676c3f48d5e444f3aa6687a624 +AUX makefile.patch 5112 RMD160 49a99899c1358c9f1ff37c03cb25166cd18ac61d SHA1 b9c195d0b72035c545fda2a19a8a487757f79710 SHA256 17f7074d0a6d3bf0f54278dd6d7a82a3fe1f2a935cd3dcef693b0177dc0ddd1a +AUX plugins-ldflags.patch 385 RMD160 c6b1ff5adff82b6b5c42703ff322c95ef3c24ff7 SHA1 34cc545832db7ad8ed90a9d2a52e048487dc5548 SHA256 0cff39e40278880d4810569dc1a17c156a3e3a11579b0ce94ce394795aba1765 DIST kismet-2007-10-R1.tar.gz 646452 RMD160 7cb62a3fd964c9ee7e4ec6bef050558c806ab495 SHA1 a1c682797ad6842b53f9e0f038254aa8326e0fb4 SHA256 023e7f47039c1ad8615052e464f76a3cd496a423449b931036d127c56d58b2b9 DIST kismet-2008-05-R1.tar.gz 655362 RMD160 5613207b45f85fa72d146009434df984f721ccdc SHA1 8355aeb0374a39549dfdc0c73160125eadd7c6e2 SHA256 a298d44f8a6ec977021cd492a720987ded81b5c4baf5f68b36f1282a23c9f7d3 DIST kismet-2010-01-R1.tar.gz 887325 RMD160 fb77368ccf702971bb877d83d5c7e819daeecbb3 SHA1 4ac00edd8607196dffc450535487104edef76c1d SHA256 9d1d1eae686d546e2fb8d6b4b3dcc106b7de5bd2bf4cf36d123b74625a8ed880 +DIST kismet-2011-03-R2.tar.gz 924988 RMD160 58fcc5e8e438fa9d94959ea0c5b2c914ebf44081 SHA1 c01706b0441a3ea412386930bcbaf56187c66d27 SHA256 71a099fb724951cdd55c28e492432ca21657534c91a536c206f3e0a8686d2a64 EBUILD kismet-2007.10.1.ebuild 1419 RMD160 404a8e7728914df6ef7068f27defd4e5ec43f2b0 SHA1 8e24517a45032a0e751236c56d0c0b84924afc20 SHA256 03091b90c603852024258b63035840f3d1eb6f94772b07d76b24d153e32385c2 EBUILD kismet-2008.05.1.ebuild 1574 RMD160 544efe108a3cde2c2da659b465d53e55149e23fb SHA1 78a0209330c2649cda6da1ace1f900dc7c1afe76 SHA256 61a51e9f1631fb853b0ee6ef4c63367b11b55c27d09ac8d252bd4607add9d3f0 EBUILD kismet-2010.01.1-r1.ebuild 2443 RMD160 a5bf0a6344e0e115f2a42b2d6a7bd2ca04035bb4 SHA1 98b5279e60e95775fd768fa4bfdaa01a9bceb225 SHA256 bcbad0bd18327c39ae416898678f95ba073e10cf96b995bb760cab20e05ad8ce EBUILD kismet-2010.01.1.ebuild 2370 RMD160 681932115c9271e72b5ad079f4679da482fcb794 SHA1 515cad7e6f8eea9849e36af799e5ba4b278e3d28 SHA256 27bae72fc30903da6fb3b5db6d7c545ce520c9bf90f017ea0aa7b48f06063563 -MISC ChangeLog 17156 RMD160 e181d49fe4bd8f6fd90c5eacac3a544f1d769d3e SHA1 b9ddf60ec5dce127c0a41c78aa378b94895a8a3a SHA256 9b295a9359389e4f470d648b4cff3c06f5a8beab5395af41d7c5326dfa798765 -MISC metadata.xml 552 RMD160 ac5820ee19b694374876b887aff5e5e7be8b7f73 SHA1 8d57a7573e227c255dee709384d082d534ee13a0 SHA256 e87bf6a1e6df8ede45193d4a2aabf3e9da854fd03a03aa90e328981238ebebab ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iEYEARECAAYFAk6pgnYACgkQVWmRsqeSphNzWACfWsF/djasJkuu6tPtdOkjG7CP -PCAAn194E9G4NvqM+Fll9iO2GHs/WAel -=g7KJ ------END PGP SIGNATURE----- +EBUILD kismet-2011.03.2.ebuild 4275 RMD160 0accac91272f0ca27dad79200f3f48298098f720 SHA1 07e15c11f7628af7ecc8dfc265438d38e78de4ab SHA256 db84f8b8d6d8ebcdadeed88b092a67668c508c689fa810ea64598832f9b01a61 +MISC ChangeLog 17570 RMD160 5f70446a61d81e887f420da4d09a597f7e60c7d3 SHA1 1c38d151754fff45781b18ac1f085d29aacf612d SHA256 5066657cf04e0c084612eba845787bae2d5ddd88d34aaf9739ab3059be535c0f +MISC metadata.xml 1471 RMD160 fab31ad1b87137f94eea2d125743c88305b979fa SHA1 92ac5aef3b90f1a557311e39de094c0924447fc8 SHA256 74c18e6c799f8572c1376c44642ea65fd9ba19e4f10a4f755db30aff11c94c5b diff --git a/net-wireless/kismet/files/bluechanfix_r3184.patch b/net-wireless/kismet/files/bluechanfix_r3184.patch new file mode 100644 index 000000000000..bdc05cb0b51f --- /dev/null +++ b/net-wireless/kismet/files/bluechanfix_r3184.patch @@ -0,0 +1,15 @@ +Index: packetsourcetracker.cc +=================================================================== +--- packetsourcetracker.cc (revision 3183) ++++ packetsourcetracker.cc (working copy) +@@ -151,7 +151,10 @@ + break; + + case SOURCE_channel: +- osstr << psrc->channel; ++ if (psrc->strong_source != NULL) ++ osstr << psrc->strong_source->FetchChannel(); ++ else ++ osstr << psrc->channel; + cache->Cache(fnum, osstr.str()); + break; diff --git a/net-wireless/kismet/files/kismet-console-scrolling-backport.patch b/net-wireless/kismet/files/kismet-console-scrolling-backport.patch new file mode 100644 index 000000000000..01baea0bb735 --- /dev/null +++ b/net-wireless/kismet/files/kismet-console-scrolling-backport.patch @@ -0,0 +1,12 @@ +diff -Naur kismet-2011-03-R2-orig/kis_panel_windows.cc kismet-2011-03-R2/kis_panel_windows.cc +--- kismet-2011-03-R2-orig/kis_panel_windows.cc 2011-03-02 17:04:05.000000000 -0500 ++++ kismet-2011-03-R2/kis_panel_windows.cc 2012-02-07 11:53:39.634360668 -0500 +@@ -1936,7 +1936,7 @@ + + // Import the existing console + constext->SetFollowTail(1); +- constext->SetMaxText(50); ++ constext->SetMaxText(250); + if (kpinterface->FetchServerFramework() == NULL) { + constext->SetText("Kismet server not started (or not started via this client)"); + textcb = -1; diff --git a/net-wireless/kismet/files/makefile.patch b/net-wireless/kismet/files/makefile.patch new file mode 100644 index 000000000000..5580c58346f8 --- /dev/null +++ b/net-wireless/kismet/files/makefile.patch @@ -0,0 +1,119 @@ +diff -Naur kismet-2011-03-R2-orig/plugin-autowep/Makefile kismet-2011-03-R2/plugin-autowep/Makefile +--- kismet-2011-03-R2-orig/plugin-autowep/Makefile 2009-11-05 21:50:32.000000000 -0500 ++++ kismet-2011-03-R2/plugin-autowep/Makefile 2011-05-31 21:15:06.000000000 -0400 +@@ -1,6 +1,7 @@ + # You will need kismet newcore sources + KIS_SRC_DIR ?= /usr/src/kismet + KIS_INC_DIR ?= $(KIS_SRC_DIR) ++LIBDIR ?= /lib + + include $(KIS_SRC_DIR)/Makefile.inc + +@@ -21,8 +22,8 @@ + $(LD) $(PLUGINLDFLAGS) $(PLUGOBJS) -o $(PLUGOUT) $(LIBS) + + install: $(PLUGOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $^ $(DESTDIR)$(prefix)/lib/kismet/$^ ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $^ $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$^ + + userinstall: $(PLUGOUT) + mkdir -p ${HOME}/.kismet/plugins/ +diff -Naur kismet-2011-03-R2-orig/plugin-btscan/Makefile kismet-2011-03-R2/plugin-btscan/Makefile +--- kismet-2011-03-R2-orig/plugin-btscan/Makefile 2010-04-28 15:31:26.000000000 -0400 ++++ kismet-2011-03-R2/plugin-btscan/Makefile 2011-05-31 21:23:55.000000000 -0400 +@@ -1,6 +1,7 @@ + # You will need kismet newcore sources + KIS_SRC_DIR ?= /usr/src/kismet + KIS_INC_DIR ?= $(KIS_SRC_DIR) ++LIBDIR ?= /lib + + include $(KIS_SRC_DIR)/Makefile.inc + +@@ -27,10 +28,10 @@ + $(LD) $(PLUGINLDFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS) + + install: $(SRVOUT) $(CLIOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/lib/kismet/$(SRVOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet_client/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/lib/kismet_client/$(CLIOUT) ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$(SRVOUT) ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/$(CLIOUT) + + userinstall: $(SRVOUT) $(CLIOUT) + mkdir -p ${HOME}/.kismet/plugins/ +diff -Naur kismet-2011-03-R2-orig/plugin-dot15d4/Makefile kismet-2011-03-R2/plugin-dot15d4/Makefile +--- kismet-2011-03-R2-orig/plugin-dot15d4/Makefile 2010-07-29 20:59:16.000000000 -0400 ++++ kismet-2011-03-R2/plugin-dot15d4/Makefile 2011-05-31 21:17:25.000000000 -0400 +@@ -1,6 +1,7 @@ + # You will need kismet newcore sources + KIS_SRC_DIR ?= /usr/src/kismet + KIS_INC_DIR ?= $(KIS_SRC_DIR) ++LIBDIR ?= /lib + + include $(KIS_SRC_DIR)/Makefile.inc + +@@ -26,8 +27,8 @@ + $(LD) $(PLUGINLDFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS) + + install: $(SRVOUT) $(CLIOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/lib/kismet/$(SRVOUT) ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$(SRVOUT) + + userinstall: $(SRVOUT) $(CLIOUT) + mkdir -p ${HOME}/.kismet/plugins/ +diff -Naur kismet-2011-03-R2-orig/plugin-ptw/Makefile kismet-2011-03-R2/plugin-ptw/Makefile +--- kismet-2011-03-R2-orig/plugin-ptw/Makefile 2010-04-28 15:31:26.000000000 -0400 ++++ kismet-2011-03-R2/plugin-ptw/Makefile 2011-05-31 21:18:14.000000000 -0400 +@@ -1,6 +1,7 @@ + # You will need kismet newcore sources + KIS_SRC_DIR ?= /usr/src/kismet + KIS_INC_DIR ?= $(KIS_SRC_DIR) ++LIBDIR ?= /lib + + include $(KIS_SRC_DIR)/Makefile.inc + +@@ -21,9 +22,8 @@ + $(LD) $(PLUGINLDFLAGS) $(PLUGOBJS) -o $(PLUGOUT) $(LIBS) + + install: $(PLUGOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ +- +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $^ $(DESTDIR)$(prefix)/lib/kismet/$^ ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $^ $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$^ + + userinstall: $(PLUGOUT) + mkdir -p ${HOME}/.kismet/plugins/ +diff -Naur kismet-2011-03-R2-orig/plugin-spectools/Makefile kismet-2011-03-R2/plugin-spectools/Makefile +--- kismet-2011-03-R2-orig/plugin-spectools/Makefile 2010-01-07 18:33:30.000000000 -0500 ++++ kismet-2011-03-R2/plugin-spectools/Makefile 2011-05-31 21:19:09.000000000 -0400 +@@ -1,6 +1,7 @@ + # You will need kismet newcore sources + KIS_SRC_DIR ?= /usr/src/kismet + KIS_INC_DIR ?= $(KIS_SRC_DIR) ++LIBDIR ?= /lib + + include $(KIS_SRC_DIR)/Makefile.inc + +@@ -27,10 +28,10 @@ + $(LD) $(PLUGINLDFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS) + + install: $(SRVOUT) $(CLIOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/lib/kismet/$(SRVOUT) +- mkdir -p $(DESTDIR)$(prefix)/lib/kismet_client/ +- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/lib/kismet_client/$(CLIOUT) ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$(SRVOUT) ++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/ ++ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/$(CLIOUT) + + userinstall: $(SRVOUT) $(CLIOUT) + mkdir -p ${HOME}/.kismet/plugins/ diff --git a/net-wireless/kismet/files/plugins-ldflags.patch b/net-wireless/kismet/files/plugins-ldflags.patch new file mode 100644 index 000000000000..001ab78dab06 --- /dev/null +++ b/net-wireless/kismet/files/plugins-ldflags.patch @@ -0,0 +1,10 @@ +diff -Naur kismet-2011-03-R2-orig/Makefile.inc.in kismet-2011-03-R2/Makefile.inc.in +--- kismet-2011-03-R2-orig/Makefile.inc.in 2009-11-05 21:43:30.000000000 -0500 ++++ kismet-2011-03-R2/Makefile.inc.in 2011-06-01 00:13:13.000000000 -0400 +@@ -38,5 +38,5 @@ + MAN = ${DESTDIR}@mandir@ + WAV = ${SHARE}/wav/ + +-PLUGINLDFLAGS = @PLUGINLDFLAGS@ ++PLUGINLDFLAGS = @LDFLAGS@ @PLUGINLDFLAGS@ + diff --git a/net-wireless/kismet/kismet-2011.03.2.ebuild b/net-wireless/kismet/kismet-2011.03.2.ebuild new file mode 100644 index 000000000000..d03fa109dcb5 --- /dev/null +++ b/net-wireless/kismet/kismet-2011.03.2.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2011.03.2.ebuild,v 1.1 2012/02/17 04:52:21 steev Exp $ + +EAPI=4 + +inherit toolchain-funcs linux-info eutils + +MY_P=${P/\./-} +MY_P=${MY_P/./-R} +S=${WORKDIR}/${MY_P} + +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="https://www.kismetwireless.net/code/svn/trunk" + inherit subversion + KEYWORDS="" +else + SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~x86" +fi + +DESCRIPTION="IEEE 802.11 wireless LAN sniffer" +HOMEPAGE="http://www.kismetwireless.net/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+ncurses +pcre speech +plugin-autowep +plugin-btscan +plugin-dot15d4 +plugin-ptw +plugin-spectools +ruby +suid" + +RDEPEND="net-wireless/wireless-tools + kernel_linux? ( sys-libs/libcap + >=dev-libs/libnl-1.1 ) + net-libs/libpcap + pcre? ( dev-libs/libpcre ) + suid? ( sys-libs/libcap ) + ncurses? ( sys-libs/ncurses ) + !arm? ( speech? ( app-accessibility/flite ) ) + ruby? ( dev-lang/ruby ) + plugin-btscan? ( net-wireless/bluez \ + !=net-wireless/bluez-4.98-r1 ) + plugin-dot15d4? ( <dev-libs/libusb-1 ) + plugin-spectools? ( net-wireless/spectools )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_prepare() { + sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \ + conf/kismet.conf.in + + # Don't strip and set correct mangrp + sed -i -e 's| -s||g' \ + -e 's|@mangrp@|root|g' Makefile.in + + epatch "${FILESDIR}"/makefile.patch + epatch "${FILESDIR}"/plugins-ldflags.patch + epatch "${FILESDIR}"/bluechanfix_r3184.patch + epatch "${FILESDIR}"/kismet-console-scrolling-backport.patch +} + +src_configure() { + if ! use ncurses; then + myconf="${myconf} --disable-curses --disable-panel" + fi + + if ! use pcre; then + myconf="${myconf} --disable-pcre" + fi + + econf ${myconf} \ + --with-linuxheaders="${KV_DIR}" +} + +src_compile() { + emake dep + emake + + if use plugin-autowep; then + cd "${S}"/plugin-autowep + KIS_SRC_DIR="${S}" emake + fi + if use plugin-btscan; then + cd "${S}"/plugin-btscan + KIS_SRC_DIR="${S}" emake + fi + if use plugin-dot15d4; then + cd "${S}"/plugin-dot15d4 + KIS_SRC_DIR="${S}" emake + fi + if use plugin-ptw; then + cd "${S}"/plugin-ptw + KIS_SRC_DIR="${S}" emake + fi + if use plugin-spectools; then + cd "${S}"/plugin-spectools + KIS_SRC_DIR="${S}" emake + fi +} + +src_install() { + if use plugin-autowep; then + cd "${S}"/plugin-autowep + KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install + fi + if use plugin-btscan; then + cd "${S}"/plugin-btscan + KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install + fi + if use plugin-dot15d4; then + cd "${S}"/plugin-dot15d4 + KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install + fi + if use plugin-ptw; then + cd "${S}"/plugin-ptw + KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install + fi + if use plugin-spectools; then + cd "${S}"/plugin-spectools + KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install + fi + if use ruby; then + cd "${S}"/ruby + dobin *.rb + fi + + cd "${S}" + emake DESTDIR="${D}" commoninstall + + ##dragorn would prefer I set fire to my head than do this, but it works + ##all external kismet plugins (read: kismet-ubertooth) must be rebuilt when kismet is + ##is there an automatic way to force this? + # install headers for external plugins + insinto /usr/include/kismet + doins *.h || die "Header installation failed" + doins Makefile.inc + #todo write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc + + dodoc CHANGELOG RELEASENOTES.txt README* docs/DEVEL.client docs/README.newcore || die + newinitd "${FILESDIR}"/${PN}.initd kismet + newconfd "${FILESDIR}"/${PN}.confd kismet + + insinto /etc + doins conf/kismet{,_drone}.conf || die + + if use suid; then + dobin kismet_capture || die + fi +} + +pkg_preinst() { + if use suid; then + enewgroup kismet + fowners root:kismet /usr/bin/kismet_capture || die + # Need to set the permissions after chowning. + # See chown(2) + fperms 4550 /usr/bin/kismet_capture || die + elog "Kismet has been installed with a setuid-root helper binary" + elog "to enable minimal-root operation. Users need to be part of" + elog "the 'kismet' group to perform captures from physical devices." + fi +} diff --git a/net-wireless/kismet/metadata.xml b/net-wireless/kismet/metadata.xml index 0f220e806d7c..fa9726313772 100644 --- a/net-wireless/kismet/metadata.xml +++ b/net-wireless/kismet/metadata.xml @@ -1,16 +1,34 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>mobile</herd> - <use> - <flag name="client">Build the ncurses-based user interface</flag> - <flag name="pcap"> - Enable packet capturing support using <pkg>net-libs/libpcap</pkg> - </flag> - <flag name="suid"> - Install a setuid root helper binary with limited functionality; - this allows running kismet as a normal user, significantly - reducing security risks - </flag> - </use> + <herd>mobile</herd> + <maintainer> + <email>sidhayn@gmail.com</email> + <description>Proxied maintainer, assign bugs to him</description> + </maintainer> + <maintainer> + <email>steev@gentoo.org</email> + <name>Steev Klimaszewski</name> + <description>Proxy-maintainer, CC him on bugs</description> + </maintainer> + <use> + <flag name="client">Build the ncurses-based user interface</flag> + <flag name="pcap"> + Enable packet capturing support using <pkg>net-libs/libpcap</pkg> + </flag> + <flag name="suid"> + Install a setuid root helper binary with limited functionality; + this allows running kismet as a normal user, significantly + reducing security risks + </flag> + <flag name="ncurses">Build the ncurses-based user interface</flag> + <flag name="pcre">Build with pcre support</flag> + <flag name="speech">Audio support using <pkg>app-accessibility/flite</pkg></flag> + <flag name="plugin-autowep">Build the autowep plugin</flag> + <flag name="plugin-btscan">Build the btscan plugin</flag> + <flag name="plugin-dot15d4">Build the dot15d4 plugin</flag> + <flag name="plugin-ptw">Build the ptw plugin</flag> + <flag name="plugin-spectools">Build the spectools plugin. This uses <pkg>net-wireless/spectools</pkg></flag> + <flag name="ruby">Build extras which are written in ruby, example plugins and the like.</flag> + </use> </pkgmetadata> |