Gentoo Archives: gentoo-commits

From: Rick Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/kismet/
Date: Wed, 02 Sep 2020 03:35:57
Message-Id: 1599017749.76c2feda4dfd518a10d53944c6a82102461587a8.zerochaos@gentoo
1 commit: 76c2feda4dfd518a10d53944c6a82102461587a8
2 Author: Rick Farina <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 02:03:37 2020 +0000
4 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 03:35:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76c2feda
7
8 net-wireless/kismet: bump
9
10 remove old
11
12 Package-Manager: Portage-3.0.5, Repoman-3.0.1
13 Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>
14
15 net-wireless/kismet/Manifest | 4 +-
16 net-wireless/kismet/kismet-2016.07.1-r2.ebuild | 164 --------------------
17 net-wireless/kismet/kismet-2019.09.1-r2.ebuild | 166 ---------------------
18 ...2019.12.2-r1.ebuild => kismet-2020.09.1.ebuild} | 9 +-
19 net-wireless/kismet/metadata.xml | 10 --
20 5 files changed, 6 insertions(+), 347 deletions(-)
21
22 diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest
23 index e567b17fec6..c44b6a5b8c6 100644
24 --- a/net-wireless/kismet/Manifest
25 +++ b/net-wireless/kismet/Manifest
26 @@ -1,4 +1,2 @@
27 -DIST kismet-2016-07-R1.tar.xz 709364 BLAKE2B 5b667a02b517bd413d569f40df1f2a2e1158357c602fa807d712870543a7fade25077f449c07c023ad1d2150870352aa754484846d8c2a0d9f027113bb57c1fc SHA512 88891a0cd5ef94a4815d259e433f946f52552c125e05a5d8ac447d04e6090f2bd92f8bd8573440f0dfe446b29233bef81d9889e53170757ad0116ddfc2cb8416
28 -DIST kismet-2019-09-R1.tar.xz 3034832 BLAKE2B 9f7818549e5260dc081ac39ea8323c70f2e4d0b959bc42dacc253c9d72bf72c2547f7c6d65d84ee7d0ca4a41068f5973028e48f6f9f3c5a7cd50c35246570814 SHA512 eeaf069718206f2b6d292c41792217afc9c72c10ffa014c8c670de64195bd28d44f33364dba7d338610f17a5af2be3c125ccd1297cce362159a4968c9ddabb88
29 -DIST kismet-2019-12-R2.tar.xz 3127064 BLAKE2B b7ffac6a6a4d7d7893d3564f9471080e055798c325b102f98fa0e86db37bcbab33422afae9c2694b747ae0c369259b62c218a77c673d0e0c05969a56e42311c2 SHA512 b1e3de74a6d314150d849ac3d95c8b99324bba14522dc4f00244d1c09acb690cce40d35dbe33845ffb1060a69cd38f036d59a0283ed9b1a70b022e3d57cde5a0
30 DIST kismet-2020-04-R3.tar.xz 3159552 BLAKE2B 458c40dea530008295d46aadaf15699a0fd9025bb572cb23e94f059f31bba2835dedd9c39725d0183e84d31c326c2769450ce0b8bee7e7ca3bb7ac9dd82f4cc6 SHA512 585def7f19f479c6049cbc24e3886276d816f584fcb2070009cd90e35b33630d3e544145abf5f8b1eae87ec571a213ed9cb9f6b81345257c9bf1332d5bb319c2
31 +DIST kismet-2020-09-R1.tar.xz 8694804 BLAKE2B 1389486809024179c3be71a8b26cdb460f483e1af0dd7cda9d36450d10e4df16536f23db3b5ca3fd6b65b0c48514c96e5cb37ec71425a8f087d58e7a89bed137 SHA512 e687c76b9e94d973245f61d6fc59a1a05a06ba9c765f7661a183d14d0228676359a7d7798bac9f3b493a5c311e53785c54fd9f0d12bf6cdc4d43919bad167327
32
33 diff --git a/net-wireless/kismet/kismet-2016.07.1-r2.ebuild b/net-wireless/kismet/kismet-2016.07.1-r2.ebuild
34 deleted file mode 100644
35 index f80d0523017..00000000000
36 --- a/net-wireless/kismet/kismet-2016.07.1-r2.ebuild
37 +++ /dev/null
38 @@ -1,164 +0,0 @@
39 -# Copyright 1999-2018 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=6
43 -
44 -inherit autotools eutils multilib user
45 -
46 -MY_P=${P/\./-}
47 -MY_P=${MY_P/./-R}
48 -S=${WORKDIR}/${MY_P}
49 -
50 -SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz"
51 -KEYWORDS="amd64 arm ~arm64 ~ppc x86"
52 -
53 -DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
54 -HOMEPAGE="https://www.kismetwireless.net"
55 -
56 -LICENSE="GPL-2"
57 -SLOT="0/${PV}"
58 -IUSE="+client +pcre speech +plugin-autowep +plugin-btscan plugin-dot15d4 +plugin-ptw +plugin-spectools +plugin-syslog +ruby selinux +suid"
59 -
60 -CDEPEND="net-wireless/wireless-tools
61 - kernel_linux? ( sys-libs/libcap
62 - dev-libs/libnl:3
63 - net-libs/libpcap
64 - )
65 - pcre? ( dev-libs/libpcre )
66 - suid? ( sys-libs/libcap )
67 - client? ( sys-libs/ncurses:0= )
68 - !arm? ( speech? ( app-accessibility/flite ) )
69 - plugin-btscan? ( net-wireless/bluez )
70 - plugin-dot15d4? ( virtual/libusb:0 )
71 - plugin-spectools? ( net-wireless/spectools )
72 - plugin-ptw? ( dev-libs/openssl:= )
73 -"
74 -
75 -DEPEND="${CDEPEND}
76 - virtual/pkgconfig
77 -"
78 -
79 -RDEPEND="${CDEPEND}
80 - ruby? ( dev-lang/ruby:* )
81 - selinux? ( sec-policy/selinux-kismet )
82 -"
83 -
84 -src_prepare() {
85 - sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
86 - conf/kismet.conf.in
87 -
88 - # Don't strip and set correct mangrp
89 - sed -i -e 's| -s||g' \
90 - -e 's|@mangrp@|root|g' Makefile.in
91 -
92 - epatch "${FILESDIR}/${P}-ruby-fixes.patch"
93 - eapply_user
94 - eautoreconf
95 -}
96 -
97 -src_configure() {
98 - econf \
99 - $(use_enable client) \
100 - $(use_enable pcre)
101 -}
102 -
103 -src_compile() {
104 - emake
105 -
106 - if use plugin-autowep; then
107 - cd "${S}"/restricted-plugin-autowep
108 - KIS_SRC_DIR="${S}" emake
109 - fi
110 - if use plugin-btscan; then
111 - cd "${S}"/plugin-btscan
112 - KIS_SRC_DIR="${S}" emake
113 - fi
114 - if use plugin-dot15d4; then
115 - cd "${S}"/plugin-dot15d4
116 - KIS_SRC_DIR="${S}" emake
117 - fi
118 - if use plugin-ptw; then
119 - cd "${S}"/restricted-plugin-ptw
120 - KIS_SRC_DIR="${S}" emake
121 - fi
122 - if use plugin-spectools; then
123 - cd "${S}"/plugin-spectools
124 - KIS_SRC_DIR="${S}" emake
125 - fi
126 - if use plugin-syslog; then
127 - cd "${S}"/plugin-syslog
128 - KIS_SRC_DIR="${S}" emake
129 - fi
130 -}
131 -
132 -src_install() {
133 - if use plugin-autowep; then
134 - cd "${S}"/restricted-plugin-autowep
135 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
136 - fi
137 - if use plugin-btscan; then
138 - cd "${S}"/plugin-btscan
139 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
140 - fi
141 - if use plugin-dot15d4; then
142 - cd "${S}"/plugin-dot15d4
143 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
144 - fi
145 - if use plugin-ptw; then
146 - cd "${S}"/restricted-plugin-ptw
147 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
148 - fi
149 - if use plugin-spectools; then
150 - cd "${S}"/plugin-spectools
151 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
152 - fi
153 - if use plugin-syslog; then
154 - cd "${S}"/plugin-syslog
155 - KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
156 - fi
157 - if use ruby; then
158 - cd "${S}"/ruby
159 - dobin *.rb
160 - fi
161 -
162 - cd "${S}"
163 - emake DESTDIR="${D}" commoninstall
164 -
165 - ##dragorn would prefer I set fire to my head than do this, but it works
166 - ##all external kismet plugins (read: kismet-ubertooth) must be rebuilt when kismet is
167 - ##is there an automatic way to force this?
168 - # install headers for external plugins
169 - insinto /usr/include/kismet
170 - doins *.h
171 - doins Makefile.inc
172 - #todo write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc
173 -
174 - dodoc CHANGELOG RELEASENOTES.txt README* docs/DEVEL.client docs/README.newcore
175 - newinitd "${FILESDIR}"/${PN}.initd kismet
176 - newconfd "${FILESDIR}"/${PN}.confd kismet
177 -
178 - insinto /etc
179 - doins conf/kismet{,_drone}.conf
180 -
181 - if use suid; then
182 - dobin kismet_capture
183 - fi
184 -}
185 -
186 -pkg_preinst() {
187 - if use suid; then
188 - enewgroup kismet
189 - fowners root:kismet /usr/bin/kismet_capture
190 - # Need to set the permissions after chowning.
191 - # See chown(2)
192 - fperms 4550 /usr/bin/kismet_capture
193 - elog "Kismet has been installed with a setuid-root helper binary"
194 - elog "to enable minimal-root operation. Users need to be part of"
195 - elog "the 'kismet' group to perform captures from physical devices."
196 - fi
197 - if ! use suid; then
198 - ewarn "It is highly discouraged to run a sniffer as root,"
199 - ewarn "Please consider enabling the suid use flag and adding"
200 - ewarn "your user to the kismet group."
201 - fi
202 -}
203
204 diff --git a/net-wireless/kismet/kismet-2019.09.1-r2.ebuild b/net-wireless/kismet/kismet-2019.09.1-r2.ebuild
205 deleted file mode 100644
206 index 178c532ebfb..00000000000
207 --- a/net-wireless/kismet/kismet-2019.09.1-r2.ebuild
208 +++ /dev/null
209 @@ -1,166 +0,0 @@
210 -# Copyright 1999-2020 Gentoo Authors
211 -# Distributed under the terms of the GNU General Public License v2
212 -
213 -EAPI=7
214 -
215 -PYTHON_COMPAT=( python3_6 )
216 -
217 -inherit autotools eutils multilib user python-single-r1
218 -
219 -if [[ ${PV} == "9999" ]] ; then
220 - EGIT_REPO_URI="https://www.kismetwireless.net/git/${PN}.git"
221 - inherit git-r3
222 - RESTRICT="strip"
223 -else
224 - MY_P=${P/\./-}
225 - MY_P=${MY_P/_beta/-BETA}
226 - MY_P=${MY_P/./-R}
227 - S=${WORKDIR}/${MY_P/BETA/beta}
228 -
229 - #normally we want an official release
230 - SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz"
231 -
232 - #but sometimes we want a git commit
233 - #COMMIT="6d6d486831c0f7ac712ffb8a3ff122c5063c3b2a"
234 - #SRC_URI="https://github.com/kismetwireless/kismet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
235 - #S="${WORKDIR}/${PN}-${COMMIT}"
236 -
237 - KEYWORDS="amd64 arm ~arm64 ~ppc x86"
238 -fi
239 -
240 -DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
241 -HOMEPAGE="https://www.kismetwireless.net"
242 -
243 -LICENSE="GPL-2"
244 -SLOT="0/${PV}"
245 -IUSE="lm-sensors mousejack networkmanager +pcre selinux +suid"
246 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
247 -
248 -CDEPEND="
249 - ${PYTHON_DEPS}
250 - networkmanager? ( net-misc/networkmanager:= )
251 - dev-libs/glib:=
252 - dev-libs/elfutils:=
253 - sys-libs/zlib:=
254 - dev-db/sqlite:=
255 - net-libs/libmicrohttpd
256 - kernel_linux? ( sys-libs/libcap
257 - dev-libs/libnl:3
258 - net-libs/libpcap
259 - )
260 - mousejack? ( virtual/libusb:1 )
261 - dev-libs/protobuf-c:=
262 - dev-libs/protobuf:=
263 - $(python_gen_cond_dep '
264 - dev-python/protobuf-python[${PYTHON_MULTI_USEDEP}]
265 - ')
266 - sys-libs/ncurses:=
267 - lm-sensors? ( sys-apps/lm-sensors )
268 - pcre? ( dev-libs/libpcre )
269 - suid? ( sys-libs/libcap )
270 - "
271 -
272 -DEPEND="${CDEPEND}
273 - virtual/pkgconfig
274 -"
275 -
276 -RDEPEND="${CDEPEND}
277 - $(python_gen_cond_dep '
278 - dev-python/pyserial[${PYTHON_MULTI_USEDEP}]
279 - ')
280 - selinux? ( sec-policy/selinux-kismet )
281 -"
282 -
283 -src_prepare() {
284 - sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
285 - conf/kismet_logging.conf || die
286 -
287 - # Don't strip and set correct mangrp
288 - sed -i -e 's| -s||g' \
289 - -e 's|@mangrp@|root|g' Makefile.in
290 -
291 - eapply_user
292 -
293 - #just use set to fix setup.py
294 - find . -name "Makefile.in" -exec sed -i 's#setup.py install#setup.py install --root=$(DESTDIR)#' {} + || die
295 - find . -name "Makefile" -exec sed -i 's#setup.py install#setup.py install --root=$(DESTDIR)#' {} + || die
296 -
297 - if [ "${PV}" = "9999" ]; then
298 - eautoreconf
299 - fi
300 -}
301 -
302 -src_configure() {
303 - econf \
304 - $(use_enable pcre) \
305 - $(use_enable lm-sensors lmsensors) \
306 - $(use_enable mousejack libusb) \
307 - $(use_enable networkmanager libnm) \
308 - --sysconfdir=/etc/kismet \
309 - --disable-optimization
310 -}
311 -
312 -src_install() {
313 - emake DESTDIR="${D}" commoninstall
314 - python_optimize
315 - emake DESTDIR="${D}" forceconfigs
316 -
317 - insinto /usr/share/${PN}
318 - doins Makefile.inc
319 -
320 - dodoc CHANGELOG README*
321 - newinitd "${FILESDIR}"/${PN}.initd-r3 kismet
322 - newconfd "${FILESDIR}"/${PN}.confd-r2 kismet
323 -}
324 -
325 -pkg_preinst() {
326 - if use suid; then
327 - enewgroup kismet
328 - fowners root:kismet /usr/bin/kismet_cap_linux_bluetooth
329 - fowners root:kismet /usr/bin/kismet_cap_linux_wifi
330 - fowners root:kismet /usr/bin/kismet_cap_pcapfile
331 - # Need to set the permissions after chowning.
332 - # See chown(2)
333 - fperms 4550 /usr/bin/kismet_cap_linux_bluetooth
334 - fperms 4550 /usr/bin/kismet_cap_linux_wifi
335 - fperms 4550 /usr/bin/kismet_cap_pcapfile
336 - elog "Kismet has been installed with a setuid-root helper binary"
337 - elog "to enable minimal-root operation. Users need to be part of"
338 - elog "the 'kismet' group to perform captures from physical devices."
339 - fi
340 - if ! use suid; then
341 - ewarn "It is highly discouraged to run a sniffer as root,"
342 - ewarn "Please consider enabling the suid use flag and adding"
343 - ewarn "your user to the kismet group."
344 - fi
345 -}
346 -
347 -migrate_config() {
348 - einfo "Kismet Configuration files are now read from /etc/kismet/"
349 - if [ -n "$(ls ${EROOT}/etc/kismet_*.conf)" ]; then
350 - ewarn "Files at /etc/kismet_*.conf will not be read and should be removed"
351 - ewarn "Please keep user specific settings in /etc/kismet/kismet_site.conf"
352 - fi
353 - if [ -f "${EROOT}/etc/kismet_site.conf" ] && [ ! -f "${EROOT}/etc/kismet/kismet_site.conf" ]; then
354 - mv /etc/kismet_site.conf /etc/kismet/kismet_site.conf || die "Failed to migrate kismet_site.conf to new location"
355 - ewarn "Your /etc/kismet_site.conf file has been automatically moved to /etc/kismet/kismet_site.conf"
356 - elif [ -f "${EROOT}/etc/kismet_site.conf" ] && [ -f "${EROOT}/etc/kismet/kismet_site.conf" ]; then
357 - ewarn "Both /etc/kismet_site.conf and /etc/kismet/kismet_site.conf exist, please migrate needed bits"
358 - ewarn "into /etc/kismet/kismet_site.conf and remove /etc/kismet_site.conf"
359 - fi
360 -}
361 -
362 -pkg_postinst() {
363 - if [ -n "${REPLACING_VERSIONS}" ]; then
364 - for v in ${REPLACING_VERSIONS}; do
365 - if ver_test ${v} -lt 2019.07.2 ; then
366 - migrate_config
367 - break
368 - fi
369 - if ver_test ${v} -eq 9999 ; then
370 - migrate_config
371 - break
372 - fi
373 - done
374 - fi
375 -}
376
377 diff --git a/net-wireless/kismet/kismet-2019.12.2-r1.ebuild b/net-wireless/kismet/kismet-2020.09.1.ebuild
378 similarity index 95%
379 rename from net-wireless/kismet/kismet-2019.12.2-r1.ebuild
380 rename to net-wireless/kismet/kismet-2020.09.1.ebuild
381 index 73b8a86810b..f55bc6dc159 100644
382 --- a/net-wireless/kismet/kismet-2019.12.2-r1.ebuild
383 +++ b/net-wireless/kismet/kismet-2020.09.1.ebuild
384 @@ -3,9 +3,9 @@
385
386 EAPI=7
387
388 -PYTHON_COMPAT=( python3_6 )
389 +PYTHON_COMPAT=( python3_{6,7,8} )
390
391 -inherit autotools eutils multilib user python-single-r1
392 +inherit autotools eutils multilib user python-single-r1 udev
393
394 if [[ ${PV} == "9999" ]] ; then
395 EGIT_REPO_URI="https://www.kismetwireless.net/git/${PN}.git"
396 @@ -21,7 +21,7 @@ else
397 SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz"
398
399 #but sometimes we want a git commit
400 - #COMMIT="6d6d486831c0f7ac712ffb8a3ff122c5063c3b2a"
401 + #COMMIT="9ca7e469cf115469f392db7436816151867e1654"
402 #SRC_URI="https://github.com/kismetwireless/kismet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
403 #S="${WORKDIR}/${PN}-${COMMIT}"
404
405 @@ -33,7 +33,7 @@ HOMEPAGE="https://www.kismetwireless.net"
406
407 LICENSE="GPL-2"
408 SLOT="0/${PV}"
409 -IUSE="libusb lm-sensors networkmanager +pcre rtlsdr selinux +suid ubertooth"
410 +IUSE="libusb lm-sensors networkmanager +pcre rtlsdr selinux +suid ubertooth udev"
411 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
412
413 CDEPEND="
414 @@ -113,6 +113,7 @@ src_install() {
415 emake DESTDIR="${D}" commoninstall
416 python_optimize
417 emake DESTDIR="${D}" forceconfigs
418 + use udev && udev_dorules packaging/udev/*.rules
419
420 insinto /usr/share/${PN}
421 doins Makefile.inc
422
423 diff --git a/net-wireless/kismet/metadata.xml b/net-wireless/kismet/metadata.xml
424 index db93b745df7..c596280be24 100644
425 --- a/net-wireless/kismet/metadata.xml
426 +++ b/net-wireless/kismet/metadata.xml
427 @@ -6,24 +6,14 @@
428 <name>Rick Farina</name>
429 </maintainer>
430 <use>
431 - <flag name="client">Build the ncurses-based user interface</flag>
432 <flag name="libusb">Support libusb based capture sources such as mousejack, cc2540(ble), and nrf51822(ble)</flag>
433 <flag name="suid">
434 Install a setuid root helper binary with limited functionality;
435 this allows running kismet as a normal user, significantly
436 reducing security risks
437 </flag>
438 - <flag name="mousejack">Add support for mousejack hardware using <pkg>dev-libs/libusb</pkg></flag>
439 <flag name="pcre">Build with pcre support</flag>
440 - <flag name="speech">Audio support using <pkg>app-accessibility/flite</pkg></flag>
441 - <flag name="plugin-autowep">Build the autowep plugin</flag>
442 - <flag name="plugin-btscan">Build the btscan plugin</flag>
443 - <flag name="plugin-dot15d4">Build the dot15d4 plugin</flag>
444 - <flag name="plugin-ptw">Build the ptw plugin</flag>
445 - <flag name="plugin-spectools">Build the spectools plugin. This uses <pkg>net-wireless/spectools</pkg></flag>
446 - <flag name="plugin-syslog">Build the syslog plugin.</flag>
447 <flag name="rtlsdr">Enable rtlsdr based kismet capture sources</flag>
448 - <flag name="ruby">Build extras which are written in ruby, example plugins and the like.</flag>
449 <flag name="ubertooth">Enable capture source for ubertooth to sniff bluetooth low energy</flag>
450 </use>
451 </pkgmetadata>