1 |
commit: f5288dda82ce4164afd230eaf81f91a890c07b23 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 11 20:21:24 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 11 21:18:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5288dda |
7 |
|
8 |
net-analyzer/ngrep: migrate to GLEP 81 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/781353 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/ngrep/ngrep-1.47-r1.ebuild | 51 +++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/ngrep/ngrep-1.47-r1.ebuild b/net-analyzer/ngrep/ngrep-1.47-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..4dbf881dcf4 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/ngrep/ngrep-1.47-r1.ebuild |
22 |
@@ -0,0 +1,51 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools |
29 |
+ |
30 |
+DESCRIPTION="A grep for network layers" |
31 |
+HOMEPAGE="https://github.com/jpr5/ngrep" |
32 |
+SRC_URI="https://github.com/jpr5/ngrep/archive/V${PV/./_}.tar.gz -> ${P}.tar.gz" |
33 |
+S="${WORKDIR}/${P/./_}" |
34 |
+ |
35 |
+LICENSE="ngrep" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
38 |
+IUSE="ipv6" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ dev-libs/libpcre |
42 |
+ net-libs/libpcap |
43 |
+" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ ${DEPEND} |
47 |
+ acct-group/ngrep |
48 |
+ acct-user/ngrep |
49 |
+" |
50 |
+ |
51 |
+PATCHES=( "${FILESDIR}"/${PN}-1.47-regex.patch ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ eautoreconf |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local myeconfargs=( |
60 |
+ $(use_enable ipv6) |
61 |
+ --disable-pcap-restart |
62 |
+ --enable-pcre |
63 |
+ --with-dropprivs-user=ngrep |
64 |
+ --with-pcap-includes="${EPREFIX}"/usr/include/pcap |
65 |
+ ) |
66 |
+ |
67 |
+ econf "${myeconfargs[@]}" |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ emake -C regex-0.12 |
72 |
+ emake STRIPFLAG="${CFLAGS}" |
73 |
+} |