Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/kismet/, profiles/, net-wireless/kismet/files/
Date: Wed, 07 Oct 2020 07:28:12
Message-Id: 1602055674.086e07d51be38a0a4f663b326c15396d02465196.mgorny@gentoo
1 commit: 086e07d51be38a0a4f663b326c15396d02465196
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 07:26:22 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 07:27:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=086e07d5
7
8 net-wireless/kismet: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-wireless/kismet/Manifest | 1 -
13 .../kismet/files/kismet-2016.07.1-ruby-fixes.patch | 78 ----------
14 net-wireless/kismet/files/kismet.confd | 12 --
15 net-wireless/kismet/files/kismet.initd | 26 ----
16 net-wireless/kismet/kismet-2016.07.1-r2.ebuild | 164 ---------------------
17 profiles/package.mask | 7 -
18 6 files changed, 288 deletions(-)
19
20 diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest
21 index 776ee7ac916..871d6a5dcea 100644
22 --- a/net-wireless/kismet/Manifest
23 +++ b/net-wireless/kismet/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST kismet-2016-07-R1.tar.xz 709364 BLAKE2B 5b667a02b517bd413d569f40df1f2a2e1158357c602fa807d712870543a7fade25077f449c07c023ad1d2150870352aa754484846d8c2a0d9f027113bb57c1fc SHA512 88891a0cd5ef94a4815d259e433f946f52552c125e05a5d8ac447d04e6090f2bd92f8bd8573440f0dfe446b29233bef81d9889e53170757ad0116ddfc2cb8416
26 DIST kismet-2020-04-R3.tar.xz 3159552 BLAKE2B 458c40dea530008295d46aadaf15699a0fd9025bb572cb23e94f059f31bba2835dedd9c39725d0183e84d31c326c2769450ce0b8bee7e7ca3bb7ac9dd82f4cc6 SHA512 585def7f19f479c6049cbc24e3886276d816f584fcb2070009cd90e35b33630d3e544145abf5f8b1eae87ec571a213ed9cb9f6b81345257c9bf1332d5bb319c2
27 DIST kismet-2020-09-R4.tar.xz 8692520 BLAKE2B 68098080cfca6968538ecf4840a3ab06f95bfe9b72829dc7ea551b1a5f15d5b65fbfaa8cecfef19a537abf081d0c4e2b2ffdedc0e34023a3393013227c898d97 SHA512 4f2dd641999dd2675d2c4dfbe28caf5a8476d5d7bd9dedeefb7b1420b48b9155a4d576123832974586d51c61ca4d77d8572ab7038da3ec6fa2a7791f3e1a1479
28
29 diff --git a/net-wireless/kismet/files/kismet-2016.07.1-ruby-fixes.patch b/net-wireless/kismet/files/kismet-2016.07.1-ruby-fixes.patch
30 deleted file mode 100644
31 index bdfde9fbc7c..00000000000
32 --- a/net-wireless/kismet/files/kismet-2016.07.1-ruby-fixes.patch
33 +++ /dev/null
34 @@ -1,78 +0,0 @@
35 -diff --git a/ruby/kismet.rb b/ruby/kismet.rb
36 -index 5b18b23..7eab708 100755
37 ---- a/ruby/kismet.rb
38 -+++ b/ruby/kismet.rb
39 -@@ -61,8 +61,6 @@ class Kismet
40 - rescue Exception => e
41 - pp e
42 -
43 -- break if @die
44 --
45 - puts "write error: #{$!}"
46 - end
47 - end
48 -diff --git a/ruby/kismet_addsource.rb b/ruby/kismet_addsource.rb
49 -index 057a514..d3ae968 100755
50 ---- a/ruby/kismet_addsource.rb
51 -+++ b/ruby/kismet_addsource.rb
52 -@@ -20,7 +20,7 @@
53 -
54 - require 'socket'
55 - require 'time'
56 --require 'kismet'
57 -+require_relative 'kismet'
58 - require 'pp'
59 - require 'optparse'
60 -
61 -diff --git a/ruby/kismet_alert_syslog.rb b/ruby/kismet_alert_syslog.rb
62 -index 6969247..27373a9 100755
63 ---- a/ruby/kismet_alert_syslog.rb
64 -+++ b/ruby/kismet_alert_syslog.rb
65 -@@ -20,7 +20,7 @@
66 -
67 - require 'socket'
68 - require 'time'
69 --require 'kismet'
70 -+require_relative 'kismet'
71 - require 'pp'
72 - require "getopt/long"
73 - require 'syslog'
74 -diff --git a/ruby/kismet_list.rb b/ruby/kismet_list.rb
75 -index ec8f0f9..7adffe6 100755
76 ---- a/ruby/kismet_list.rb
77 -+++ b/ruby/kismet_list.rb
78 -@@ -20,7 +20,7 @@
79 -
80 - require 'socket'
81 - require 'time'
82 --require 'kismet'
83 -+require_relative 'kismet'
84 -
85 - def bssidcb(proto, fields)
86 - puts "Kismet saw network #{fields['bssid']} manuf #{fields['manuf']} on channel #{fields['channel']}"
87 -diff --git a/ruby/kismet_shootout.rb b/ruby/kismet_shootout.rb
88 -index 25021b9..61f70b0 100755
89 ---- a/ruby/kismet_shootout.rb
90 -+++ b/ruby/kismet_shootout.rb
91 -@@ -21,7 +21,7 @@
92 -
93 - require 'socket'
94 - require 'time'
95 --require 'kismet'
96 -+require_relative 'kismet'
97 - require 'pp'
98 - require 'optparse'
99 -
100 -diff --git a/ruby/kismet_sql.rb b/ruby/kismet_sql.rb
101 -index 9fe581d..b878979 100755
102 ---- a/ruby/kismet_sql.rb
103 -+++ b/ruby/kismet_sql.rb
104 -@@ -22,7 +22,7 @@
105 -
106 - require 'socket'
107 - require 'time'
108 --require 'kismet'
109 -+require_relative 'kismet'
110 - require 'pp'
111 - require "getopt/long"
112 - require "sqlite3"
113
114 diff --git a/net-wireless/kismet/files/kismet.confd b/net-wireless/kismet/files/kismet.confd
115 deleted file mode 100644
116 index d203513c714..00000000000
117 --- a/net-wireless/kismet/files/kismet.confd
118 +++ /dev/null
119 @@ -1,12 +0,0 @@
120 -# /etc/conf.d/kismet - configuration file for /etc/init.d/kismet
121 -
122 -# Kismet configuration is done in /etc/kismet.conf
123 -
124 -# To use the kismet init script, you must have "logtemplate" set to a location
125 -# that is writable by the user assigned by "suiduser".
126 -# e.g.
127 -# suiduser=foo
128 -# logtemplate=%h/kismet_log/%n-%d-%i.%l
129 -
130 -# Options to pass to kismet_server, see `kismet_server --help`
131 -KISMET_SERVER_OPTIONS=""
132
133 diff --git a/net-wireless/kismet/files/kismet.initd b/net-wireless/kismet/files/kismet.initd
134 deleted file mode 100644
135 index 000e6ea03cd..00000000000
136 --- a/net-wireless/kismet/files/kismet.initd
137 +++ /dev/null
138 @@ -1,26 +0,0 @@
139 -#!/sbin/openrc-run
140 -# Copyright 1999-2006 Gentoo Foundation
141 -# Distributed under the terms of the GNU General Public License v2
142 -
143 -checkconfig() {
144 - if [ ! -e /etc/kismet.conf ]; then
145 - eerror "Configuration file /etc/kismet.conf not found"
146 - return 1
147 - fi
148 -}
149 -
150 -start() {
151 - checkconfig || return 1
152 -
153 - ebegin "Starting kismet server"
154 - start-stop-daemon --start --quiet --pidfile /var/run/kismet_server.pid \
155 - --background --make-pidfile --exec /usr/bin/kismet_server \
156 - -- ${KISMET_SERVER_OPTIONS}
157 - eend ${?}
158 -}
159 -
160 -stop() {
161 - ebegin "Stopping kismet server"
162 - start-stop-daemon --stop --quiet --pidfile /var/run/kismet_server.pid
163 - eend ${?}
164 -}
165
166 diff --git a/net-wireless/kismet/kismet-2016.07.1-r2.ebuild b/net-wireless/kismet/kismet-2016.07.1-r2.ebuild
167 deleted file mode 100644
168 index 17f5963fa10..00000000000
169 --- a/net-wireless/kismet/kismet-2016.07.1-r2.ebuild
170 +++ /dev/null
171 @@ -1,164 +0,0 @@
172 -# Copyright 1999-2020 Gentoo Authors
173 -# Distributed under the terms of the GNU General Public License v2
174 -
175 -EAPI=6
176 -
177 -inherit autotools eutils multilib user
178 -
179 -MY_P=${P/\./-}
180 -MY_P=${MY_P/./-R}
181 -S=${WORKDIR}/${MY_P}
182 -
183 -SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz"
184 -KEYWORDS="amd64 arm ~arm64 ~ppc x86"
185 -
186 -DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
187 -HOMEPAGE="https://www.kismetwireless.net"
188 -
189 -LICENSE="GPL-2"
190 -SLOT="0/${PV}"
191 -IUSE="+client +pcre speech +plugin-autowep +plugin-btscan plugin-dot15d4 +plugin-ptw +plugin-spectools +plugin-syslog +ruby selinux +suid"
192 -
193 -CDEPEND="net-wireless/wireless-tools
194 - kernel_linux? ( sys-libs/libcap
195 - dev-libs/libnl:3
196 - net-libs/libpcap
197 - )
198 - pcre? ( dev-libs/libpcre )
199 - suid? ( sys-libs/libcap )
200 - client? ( sys-libs/ncurses:0= )
201 - !arm? ( speech? ( app-accessibility/flite ) )
202 - plugin-btscan? ( net-wireless/bluez )
203 - plugin-dot15d4? ( virtual/libusb:0 )
204 - plugin-spectools? ( net-wireless/spectools )
205 - plugin-ptw? ( dev-libs/openssl:= )
206 -"
207 -
208 -DEPEND="${CDEPEND}
209 - virtual/pkgconfig
210 -"
211 -
212 -RDEPEND="${CDEPEND}
213 - ruby? ( dev-lang/ruby:* )
214 - selinux? ( sec-policy/selinux-kismet )
215 -"
216 -
217 -src_prepare() {
218 - sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
219 - conf/kismet.conf.in
220 -
221 - # Don't strip and set correct mangrp
222 - sed -i -e 's| -s||g' \
223 - -e 's|@mangrp@|root|g' Makefile.in
224 -
225 - epatch "${FILESDIR}/${P}-ruby-fixes.patch"
226 - eapply_user
227 - eautoreconf
228 -}
229 -
230 -src_configure() {
231 - econf \
232 - $(use_enable client) \
233 - $(use_enable pcre)
234 -}
235 -
236 -src_compile() {
237 - emake
238 -
239 - if use plugin-autowep; then
240 - cd "${S}"/restricted-plugin-autowep
241 - KIS_SRC_DIR="${S}" emake
242 - fi
243 - if use plugin-btscan; then
244 - cd "${S}"/plugin-btscan
245 - KIS_SRC_DIR="${S}" emake
246 - fi
247 - if use plugin-dot15d4; then
248 - cd "${S}"/plugin-dot15d4
249 - KIS_SRC_DIR="${S}" emake
250 - fi
251 - if use plugin-ptw; then
252 - cd "${S}"/restricted-plugin-ptw
253 - KIS_SRC_DIR="${S}" emake
254 - fi
255 - if use plugin-spectools; then
256 - cd "${S}"/plugin-spectools
257 - KIS_SRC_DIR="${S}" emake
258 - fi
259 - if use plugin-syslog; then
260 - cd "${S}"/plugin-syslog
261 - KIS_SRC_DIR="${S}" emake
262 - fi
263 -}
264 -
265 -src_install() {
266 - if use plugin-autowep; then
267 - cd "${S}"/restricted-plugin-autowep
268 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
269 - fi
270 - if use plugin-btscan; then
271 - cd "${S}"/plugin-btscan
272 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
273 - fi
274 - if use plugin-dot15d4; then
275 - cd "${S}"/plugin-dot15d4
276 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
277 - fi
278 - if use plugin-ptw; then
279 - cd "${S}"/restricted-plugin-ptw
280 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
281 - fi
282 - if use plugin-spectools; then
283 - cd "${S}"/plugin-spectools
284 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
285 - fi
286 - if use plugin-syslog; then
287 - cd "${S}"/plugin-syslog
288 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
289 - fi
290 - if use ruby; then
291 - cd "${S}"/ruby
292 - dobin *.rb
293 - fi
294 -
295 - cd "${S}"
296 - emake DESTDIR="${D}" commoninstall
297 -
298 - ##dragorn would prefer I set fire to my head than do this, but it works
299 - ##all external kismet plugins (read: kismet-ubertooth) must be rebuilt when kismet is
300 - ##is there an automatic way to force this?
301 - # install headers for external plugins
302 - insinto /usr/include/kismet
303 - doins *.h
304 - doins Makefile.inc
305 - #todo write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc
306 -
307 - dodoc CHANGELOG RELEASENOTES.txt README* docs/DEVEL.client docs/README.newcore
308 - newinitd "${FILESDIR}"/${PN}.initd kismet
309 - newconfd "${FILESDIR}"/${PN}.confd kismet
310 -
311 - insinto /etc
312 - doins conf/kismet{,_drone}.conf
313 -
314 - if use suid; then
315 - dobin kismet_capture
316 - fi
317 -}
318 -
319 -pkg_preinst() {
320 - if use suid; then
321 - enewgroup kismet
322 - fowners root:kismet /usr/bin/kismet_capture
323 - # Need to set the permissions after chowning.
324 - # See chown(2)
325 - fperms 4550 /usr/bin/kismet_capture
326 - elog "Kismet has been installed with a setuid-root helper binary"
327 - elog "to enable minimal-root operation. Users need to be part of"
328 - elog "the 'kismet' group to perform captures from physical devices."
329 - fi
330 - if ! use suid; then
331 - ewarn "It is highly discouraged to run a sniffer as root,"
332 - ewarn "Please consider enabling the suid use flag and adding"
333 - ewarn "your user to the kismet group."
334 - fi
335 -}
336
337 diff --git a/profiles/package.mask b/profiles/package.mask
338 index 76b37fd6450..7a961fc09eb 100644
339 --- a/profiles/package.mask
340 +++ b/profiles/package.mask
341 @@ -561,13 +561,6 @@ dev-python/mini-amf
342 # previously removed dev-python/flask-bootstrap
343 dev-python/flask-appconfig
344
345 -# Rick Farina <zerochaos@g.o> (2020-09-02)
346 -# Masked for removal in 30 days. Obsolete versions
347 -# of kismet and tools which use it are no longer maintained.
348 -# Users should upgrade to a newer version of kismet which
349 -# is supported.
350 -<net-wireless/kismet-2017
351 -
352 # Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> (2020-09-01)
353 # Mismatched version (bug #695022). Masked to force upgrade to 2.0.4_pre20200306162733.
354 # (Mask should remain after ebuilds are deleted, until 2021-03-01 or