1 |
commit: e44a672eb716ebd26b435e2d9960f157e2546c5b |
2 |
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 13:41:21 2020 +0000 |
4 |
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 13:41:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e44a672e |
7 |
|
8 |
net-wireless/kismet: restore improperly removed version |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> |
12 |
|
13 |
net-wireless/kismet/Manifest | 1 + |
14 |
net-wireless/kismet/kismet-2016.07.1-r2.ebuild | 164 +++++++++++++++++++++++++ |
15 |
net-wireless/kismet/metadata.xml | 9 ++ |
16 |
3 files changed, 174 insertions(+) |
17 |
|
18 |
diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest |
19 |
index c44b6a5b8c6..c5035f6b4b2 100644 |
20 |
--- a/net-wireless/kismet/Manifest |
21 |
+++ b/net-wireless/kismet/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
+DIST kismet-2016-07-R1.tar.xz 709364 BLAKE2B 5b667a02b517bd413d569f40df1f2a2e1158357c602fa807d712870543a7fade25077f449c07c023ad1d2150870352aa754484846d8c2a0d9f027113bb57c1fc SHA512 88891a0cd5ef94a4815d259e433f946f52552c125e05a5d8ac447d04e6090f2bd92f8bd8573440f0dfe446b29233bef81d9889e53170757ad0116ddfc2cb8416 |
24 |
DIST kismet-2020-04-R3.tar.xz 3159552 BLAKE2B 458c40dea530008295d46aadaf15699a0fd9025bb572cb23e94f059f31bba2835dedd9c39725d0183e84d31c326c2769450ce0b8bee7e7ca3bb7ac9dd82f4cc6 SHA512 585def7f19f479c6049cbc24e3886276d816f584fcb2070009cd90e35b33630d3e544145abf5f8b1eae87ec571a213ed9cb9f6b81345257c9bf1332d5bb319c2 |
25 |
DIST kismet-2020-09-R1.tar.xz 8694804 BLAKE2B 1389486809024179c3be71a8b26cdb460f483e1af0dd7cda9d36450d10e4df16536f23db3b5ca3fd6b65b0c48514c96e5cb37ec71425a8f087d58e7a89bed137 SHA512 e687c76b9e94d973245f61d6fc59a1a05a06ba9c765f7661a183d14d0228676359a7d7798bac9f3b493a5c311e53785c54fd9f0d12bf6cdc4d43919bad167327 |
26 |
|
27 |
diff --git a/net-wireless/kismet/kismet-2016.07.1-r2.ebuild b/net-wireless/kismet/kismet-2016.07.1-r2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..17f5963fa10 |
30 |
--- /dev/null |
31 |
+++ b/net-wireless/kismet/kismet-2016.07.1-r2.ebuild |
32 |
@@ -0,0 +1,164 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit autotools eutils multilib user |
39 |
+ |
40 |
+MY_P=${P/\./-} |
41 |
+MY_P=${MY_P/./-R} |
42 |
+S=${WORKDIR}/${MY_P} |
43 |
+ |
44 |
+SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz" |
45 |
+KEYWORDS="amd64 arm ~arm64 ~ppc x86" |
46 |
+ |
47 |
+DESCRIPTION="IEEE 802.11 wireless LAN sniffer" |
48 |
+HOMEPAGE="https://www.kismetwireless.net" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0/${PV}" |
52 |
+IUSE="+client +pcre speech +plugin-autowep +plugin-btscan plugin-dot15d4 +plugin-ptw +plugin-spectools +plugin-syslog +ruby selinux +suid" |
53 |
+ |
54 |
+CDEPEND="net-wireless/wireless-tools |
55 |
+ kernel_linux? ( sys-libs/libcap |
56 |
+ dev-libs/libnl:3 |
57 |
+ net-libs/libpcap |
58 |
+ ) |
59 |
+ pcre? ( dev-libs/libpcre ) |
60 |
+ suid? ( sys-libs/libcap ) |
61 |
+ client? ( sys-libs/ncurses:0= ) |
62 |
+ !arm? ( speech? ( app-accessibility/flite ) ) |
63 |
+ plugin-btscan? ( net-wireless/bluez ) |
64 |
+ plugin-dot15d4? ( virtual/libusb:0 ) |
65 |
+ plugin-spectools? ( net-wireless/spectools ) |
66 |
+ plugin-ptw? ( dev-libs/openssl:= ) |
67 |
+" |
68 |
+ |
69 |
+DEPEND="${CDEPEND} |
70 |
+ virtual/pkgconfig |
71 |
+" |
72 |
+ |
73 |
+RDEPEND="${CDEPEND} |
74 |
+ ruby? ( dev-lang/ruby:* ) |
75 |
+ selinux? ( sec-policy/selinux-kismet ) |
76 |
+" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \ |
80 |
+ conf/kismet.conf.in |
81 |
+ |
82 |
+ # Don't strip and set correct mangrp |
83 |
+ sed -i -e 's| -s||g' \ |
84 |
+ -e 's|@mangrp@|root|g' Makefile.in |
85 |
+ |
86 |
+ epatch "${FILESDIR}/${P}-ruby-fixes.patch" |
87 |
+ eapply_user |
88 |
+ eautoreconf |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ econf \ |
93 |
+ $(use_enable client) \ |
94 |
+ $(use_enable pcre) |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ emake |
99 |
+ |
100 |
+ if use plugin-autowep; then |
101 |
+ cd "${S}"/restricted-plugin-autowep |
102 |
+ KIS_SRC_DIR="${S}" emake |
103 |
+ fi |
104 |
+ if use plugin-btscan; then |
105 |
+ cd "${S}"/plugin-btscan |
106 |
+ KIS_SRC_DIR="${S}" emake |
107 |
+ fi |
108 |
+ if use plugin-dot15d4; then |
109 |
+ cd "${S}"/plugin-dot15d4 |
110 |
+ KIS_SRC_DIR="${S}" emake |
111 |
+ fi |
112 |
+ if use plugin-ptw; then |
113 |
+ cd "${S}"/restricted-plugin-ptw |
114 |
+ KIS_SRC_DIR="${S}" emake |
115 |
+ fi |
116 |
+ if use plugin-spectools; then |
117 |
+ cd "${S}"/plugin-spectools |
118 |
+ KIS_SRC_DIR="${S}" emake |
119 |
+ fi |
120 |
+ if use plugin-syslog; then |
121 |
+ cd "${S}"/plugin-syslog |
122 |
+ KIS_SRC_DIR="${S}" emake |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ if use plugin-autowep; then |
128 |
+ cd "${S}"/restricted-plugin-autowep |
129 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
130 |
+ fi |
131 |
+ if use plugin-btscan; then |
132 |
+ cd "${S}"/plugin-btscan |
133 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
134 |
+ fi |
135 |
+ if use plugin-dot15d4; then |
136 |
+ cd "${S}"/plugin-dot15d4 |
137 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
138 |
+ fi |
139 |
+ if use plugin-ptw; then |
140 |
+ cd "${S}"/restricted-plugin-ptw |
141 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
142 |
+ fi |
143 |
+ if use plugin-spectools; then |
144 |
+ cd "${S}"/plugin-spectools |
145 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
146 |
+ fi |
147 |
+ if use plugin-syslog; then |
148 |
+ cd "${S}"/plugin-syslog |
149 |
+ KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install |
150 |
+ fi |
151 |
+ if use ruby; then |
152 |
+ cd "${S}"/ruby |
153 |
+ dobin *.rb |
154 |
+ fi |
155 |
+ |
156 |
+ cd "${S}" |
157 |
+ emake DESTDIR="${D}" commoninstall |
158 |
+ |
159 |
+ ##dragorn would prefer I set fire to my head than do this, but it works |
160 |
+ ##all external kismet plugins (read: kismet-ubertooth) must be rebuilt when kismet is |
161 |
+ ##is there an automatic way to force this? |
162 |
+ # install headers for external plugins |
163 |
+ insinto /usr/include/kismet |
164 |
+ doins *.h |
165 |
+ doins Makefile.inc |
166 |
+ #todo write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc |
167 |
+ |
168 |
+ dodoc CHANGELOG RELEASENOTES.txt README* docs/DEVEL.client docs/README.newcore |
169 |
+ newinitd "${FILESDIR}"/${PN}.initd kismet |
170 |
+ newconfd "${FILESDIR}"/${PN}.confd kismet |
171 |
+ |
172 |
+ insinto /etc |
173 |
+ doins conf/kismet{,_drone}.conf |
174 |
+ |
175 |
+ if use suid; then |
176 |
+ dobin kismet_capture |
177 |
+ fi |
178 |
+} |
179 |
+ |
180 |
+pkg_preinst() { |
181 |
+ if use suid; then |
182 |
+ enewgroup kismet |
183 |
+ fowners root:kismet /usr/bin/kismet_capture |
184 |
+ # Need to set the permissions after chowning. |
185 |
+ # See chown(2) |
186 |
+ fperms 4550 /usr/bin/kismet_capture |
187 |
+ elog "Kismet has been installed with a setuid-root helper binary" |
188 |
+ elog "to enable minimal-root operation. Users need to be part of" |
189 |
+ elog "the 'kismet' group to perform captures from physical devices." |
190 |
+ fi |
191 |
+ if ! use suid; then |
192 |
+ ewarn "It is highly discouraged to run a sniffer as root," |
193 |
+ ewarn "Please consider enabling the suid use flag and adding" |
194 |
+ ewarn "your user to the kismet group." |
195 |
+ fi |
196 |
+} |
197 |
|
198 |
diff --git a/net-wireless/kismet/metadata.xml b/net-wireless/kismet/metadata.xml |
199 |
index c596280be24..f9a1efd46a1 100644 |
200 |
--- a/net-wireless/kismet/metadata.xml |
201 |
+++ b/net-wireless/kismet/metadata.xml |
202 |
@@ -6,6 +6,7 @@ |
203 |
<name>Rick Farina</name> |
204 |
</maintainer> |
205 |
<use> |
206 |
+ <flag name="client">Build the ncurses-based user interface</flag> |
207 |
<flag name="libusb">Support libusb based capture sources such as mousejack, cc2540(ble), and nrf51822(ble)</flag> |
208 |
<flag name="suid"> |
209 |
Install a setuid root helper binary with limited functionality; |
210 |
@@ -13,7 +14,15 @@ |
211 |
reducing security risks |
212 |
</flag> |
213 |
<flag name="pcre">Build with pcre support</flag> |
214 |
+ <flag name="speech">Audio support using <pkg>app-accessibility/flite</pkg></flag> |
215 |
+ <flag name="plugin-autowep">Build the autowep plugin</flag> |
216 |
+ <flag name="plugin-btscan">Build the btscan plugin</flag> |
217 |
+ <flag name="plugin-dot15d4">Build the dot15d4 plugin</flag> |
218 |
+ <flag name="plugin-ptw">Build the ptw plugin</flag> |
219 |
+ <flag name="plugin-spectools">Build the spectools plugin. This uses <pkg>net-wireless/spectools</pkg></flag> |
220 |
+ <flag name="plugin-syslog">Build the syslog plugin.</flag> |
221 |
<flag name="rtlsdr">Enable rtlsdr based kismet capture sources</flag> |
222 |
+ <flag name="ruby">Build extras which are written in ruby, example plugins and the like.</flag> |
223 |
<flag name="ubertooth">Enable capture source for ubertooth to sniff bluetooth low energy</flag> |
224 |
</use> |
225 |
</pkgmetadata> |