1 |
commit: 7205aade998ac0640b282a3304381484363f6049 |
2 |
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 16:30:32 2022 +0000 |
4 |
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 17:04:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7205aade |
7 |
|
8 |
net-wireless/kismet: fix USE=-pcre |
9 |
|
10 |
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> |
11 |
Closes: https://bugs.gentoo.org/830743 |
12 |
|
13 |
.../kismet/files/kismet-2021.08.1-nopcre.patch | 24 ++++++++++++++++++++++ |
14 |
net-wireless/kismet/kismet-2021.08.1-r1.ebuild | 4 +++- |
15 |
2 files changed, 27 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-wireless/kismet/files/kismet-2021.08.1-nopcre.patch b/net-wireless/kismet/files/kismet-2021.08.1-nopcre.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..c3b648464ff5 |
20 |
--- /dev/null |
21 |
+++ b/net-wireless/kismet/files/kismet-2021.08.1-nopcre.patch |
22 |
@@ -0,0 +1,24 @@ |
23 |
+From e28c407f612877e750e6e5e1b92a8949275b7df0 Mon Sep 17 00:00:00 2001 |
24 |
+From: Mike Kershaw / Dragorn <dragorn@××××××××××××××.net> |
25 |
+Date: Thu, 16 Dec 2021 20:35:43 -0500 |
26 |
+Subject: [PATCH] Fix compiling when pcre is not available |
27 |
+ |
28 |
+Fix compiling when pcre is not available |
29 |
+--- |
30 |
+ log_tools/kismetdb_to_wiglecsv.cc | 3 +++ |
31 |
+ 1 file changed, 3 insertions(+) |
32 |
+ |
33 |
+diff --git a/log_tools/kismetdb_to_wiglecsv.cc b/log_tools/kismetdb_to_wiglecsv.cc |
34 |
+index 8d4a8db68..5c79680c7 100644 |
35 |
+--- a/log_tools/kismetdb_to_wiglecsv.cc |
36 |
++++ b/log_tools/kismetdb_to_wiglecsv.cc |
37 |
+@@ -239,6 +239,9 @@ int main(int argc, char *argv[]) { |
38 |
+ |
39 |
+ pcre *re; |
40 |
+ pcre_extra *study; |
41 |
++#else |
42 |
++ pcre_filter(const std::string& in_regex) {} |
43 |
++ bool match(const std::string& target) {return false;} |
44 |
+ #endif |
45 |
+ }; |
46 |
+ |
47 |
|
48 |
diff --git a/net-wireless/kismet/kismet-2021.08.1-r1.ebuild b/net-wireless/kismet/kismet-2021.08.1-r1.ebuild |
49 |
index e82c719234ad..9e9ec7789539 100644 |
50 |
--- a/net-wireless/kismet/kismet-2021.08.1-r1.ebuild |
51 |
+++ b/net-wireless/kismet/kismet-2021.08.1-r1.ebuild |
52 |
@@ -85,6 +85,8 @@ PDEPEND=" |
53 |
net-wireless/rtl-sdr |
54 |
)" |
55 |
|
56 |
+PATCHES=( "${FILESDIR}"/kismet-2021.08.1-nopcre.patch ) |
57 |
+ |
58 |
src_prepare() { |
59 |
sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \ |
60 |
conf/kismet_logging.conf || die |
61 |
@@ -110,7 +112,7 @@ src_prepare() { |
62 |
sed -i -e 's| -s||g' \ |
63 |
-e 's|@mangrp@|root|g' Makefile.in || die |
64 |
|
65 |
- eapply_user |
66 |
+ default |
67 |
|
68 |
#just use set to fix setup.py |
69 |
find . -name "Makefile.in" -exec sed -i 's#setup.py install#setup.py install --root=$(DESTDIR)#' {} + || die |