Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/angst/files/, net-analyzer/angst/
Date: Thu, 30 Jan 2020 13:55:07
Message-Id: 1580392498.7ea78ba7c3899ad982cb4caf3f2e755f3c939134.jer@gentoo
1 commit: 7ea78ba7c3899ad982cb4caf3f2e755f3c939134
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 30 13:54:37 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 30 13:54:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ea78ba7
7
8 net-analyzer/angst: CFLAGS=-fcommon EAPI=7 IUSE=debug
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707030
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 net-analyzer/angst/angst-0.4b-r3.ebuild | 45 +++++++++++++++++++++++++++++++
15 net-analyzer/angst/files/0.4b-flags.patch | 20 ++++++++++++++
16 2 files changed, 65 insertions(+)
17
18 diff --git a/net-analyzer/angst/angst-0.4b-r3.ebuild b/net-analyzer/angst/angst-0.4b-r3.ebuild
19 new file mode 100644
20 index 00000000000..8054d460f58
21 --- /dev/null
22 +++ b/net-analyzer/angst/angst-0.4b-r3.ebuild
23 @@ -0,0 +1,45 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +inherit flag-o-matic toolchain-funcs
29 +
30 +DESCRIPTION="an active sniffer that provides methods for aggressive sniffing on switched LANs"
31 +HOMEPAGE="http://angst.sourceforge.net/"
32 +SRC_URI="http://angst.sourceforge.net/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86"
37 +IUSE="debug"
38 +
39 +DEPEND="
40 + net-libs/libpcap
41 + net-libs/libnet:1.0
42 +"
43 +RDEPEND="
44 + ${DEPEND}
45 +"
46 +PATCHES=(
47 + "${FILESDIR}"/${PV}-flags.patch
48 + "${FILESDIR}"/${PV}-libnet-1.0.patch
49 +)
50 +
51 +src_configure() {
52 + append-cflags -fcommon
53 + use debug && append-cppflags -DDEBUG
54 +}
55 +
56 +src_compile() {
57 + emake \
58 + CFLAGS="${CFLAGS}" \
59 + LDFLAGS="${LDFLAGS}" \
60 + CC="$(tc-getCC)" \
61 + -f Makefile.linux
62 +}
63 +
64 +src_install() {
65 + dosbin angst
66 + doman angst.8
67 + dodoc README TODO ChangeLog
68 +}
69
70 diff --git a/net-analyzer/angst/files/0.4b-flags.patch b/net-analyzer/angst/files/0.4b-flags.patch
71 new file mode 100644
72 index 00000000000..1021faa5b53
73 --- /dev/null
74 +++ b/net-analyzer/angst/files/0.4b-flags.patch
75 @@ -0,0 +1,20 @@
76 +--- a/Makefile.linux
77 ++++ b/Makefile.linux
78 +@@ -5,7 +5,7 @@
79 + #
80 + # $Id: Makefile.linux,v 1.6 2001/02/08 13:44:12 argp Exp $
81 +
82 +-CC = gcc
83 ++CC ?= gcc
84 + INSTALL_DIR = /usr/bin/install -c -o root -g bin
85 + INSTALL_SBIN = /usr/bin/install -c -s -o root -g bin -m 555
86 + INSTALL_MAN = /usr/bin/install -c -o root -g bin -m 444
87 +@@ -21,7 +21,7 @@
88 + all: angst
89 +
90 + angst: $(OBJS)
91 +- $(CC) $(CFLAGS) -o angst $(DEFINE) $(OBJS) $(INCLUDE) $(LIBS)
92 ++ $(CC) $(CFLAGS) -o angst $(DEFINE) $(LDFLAGS) $(OBJS) $(INCLUDE) $(LIBS)
93 +
94 + clean:
95 + rm -f angst *.o missing/*.o *.core core