* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/angst/files/, net-analyzer/angst/
@ 2020-01-30 13:55 Jeroen Roovers
0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2020-01-30 13:55 UTC (permalink / raw
To: gentoo-commits
commit: 7ea78ba7c3899ad982cb4caf3f2e755f3c939134
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 30 13:54:37 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Jan 30 13:54:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ea78ba7
net-analyzer/angst: CFLAGS=-fcommon EAPI=7 IUSE=debug
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707030
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
net-analyzer/angst/angst-0.4b-r3.ebuild | 45 +++++++++++++++++++++++++++++++
net-analyzer/angst/files/0.4b-flags.patch | 20 ++++++++++++++
2 files changed, 65 insertions(+)
diff --git a/net-analyzer/angst/angst-0.4b-r3.ebuild b/net-analyzer/angst/angst-0.4b-r3.ebuild
new file mode 100644
index 00000000000..8054d460f58
--- /dev/null
+++ b/net-analyzer/angst/angst-0.4b-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="an active sniffer that provides methods for aggressive sniffing on switched LANs"
+HOMEPAGE="http://angst.sourceforge.net/"
+SRC_URI="http://angst.sourceforge.net/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug"
+
+DEPEND="
+ net-libs/libpcap
+ net-libs/libnet:1.0
+"
+RDEPEND="
+ ${DEPEND}
+"
+PATCHES=(
+ "${FILESDIR}"/${PV}-flags.patch
+ "${FILESDIR}"/${PV}-libnet-1.0.patch
+)
+
+src_configure() {
+ append-cflags -fcommon
+ use debug && append-cppflags -DDEBUG
+}
+
+src_compile() {
+ emake \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ -f Makefile.linux
+}
+
+src_install() {
+ dosbin angst
+ doman angst.8
+ dodoc README TODO ChangeLog
+}
diff --git a/net-analyzer/angst/files/0.4b-flags.patch b/net-analyzer/angst/files/0.4b-flags.patch
new file mode 100644
index 00000000000..1021faa5b53
--- /dev/null
+++ b/net-analyzer/angst/files/0.4b-flags.patch
@@ -0,0 +1,20 @@
+--- a/Makefile.linux
++++ b/Makefile.linux
+@@ -5,7 +5,7 @@
+ #
+ # $Id: Makefile.linux,v 1.6 2001/02/08 13:44:12 argp Exp $
+
+-CC = gcc
++CC ?= gcc
+ INSTALL_DIR = /usr/bin/install -c -o root -g bin
+ INSTALL_SBIN = /usr/bin/install -c -s -o root -g bin -m 555
+ INSTALL_MAN = /usr/bin/install -c -o root -g bin -m 444
+@@ -21,7 +21,7 @@
+ all: angst
+
+ angst: $(OBJS)
+- $(CC) $(CFLAGS) -o angst $(DEFINE) $(OBJS) $(INCLUDE) $(LIBS)
++ $(CC) $(CFLAGS) -o angst $(DEFINE) $(LDFLAGS) $(OBJS) $(INCLUDE) $(LIBS)
+
+ clean:
+ rm -f angst *.o missing/*.o *.core core
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/angst/files/, net-analyzer/angst/
@ 2020-08-09 11:47 Jeroen Roovers
0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2020-08-09 11:47 UTC (permalink / raw
To: gentoo-commits
commit: d3442c4b5eba7d66b6db5681b08df79974c59708
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 9 11:44:27 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Aug 9 11:47:47 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3442c4b
net-analyzer/angst: Fix compiling against sys-libs/glibc-2.32
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Closes: https://bugs.gentoo.org/736503
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
net-analyzer/angst/angst-0.4b-r3.ebuild | 1 +
net-analyzer/angst/files/0.4b-sysctl.h.patch | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/net-analyzer/angst/angst-0.4b-r3.ebuild b/net-analyzer/angst/angst-0.4b-r3.ebuild
index 8054d460f58..aab79cab327 100644
--- a/net-analyzer/angst/angst-0.4b-r3.ebuild
+++ b/net-analyzer/angst/angst-0.4b-r3.ebuild
@@ -23,6 +23,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PV}-flags.patch
"${FILESDIR}"/${PV}-libnet-1.0.patch
+ "${FILESDIR}"/${PV}-sysctl.h.patch
)
src_configure() {
diff --git a/net-analyzer/angst/files/0.4b-sysctl.h.patch b/net-analyzer/angst/files/0.4b-sysctl.h.patch
new file mode 100644
index 00000000000..16d8b53b6a3
--- /dev/null
+++ b/net-analyzer/angst/files/0.4b-sysctl.h.patch
@@ -0,0 +1,12 @@
+--- angst.h
++++ b/angst.h
+@@ -8,7 +8,9 @@
+
+ #include <stdarg.h>
+ #include <sys/param.h>
++#ifndef LINUX
+ #include <sys/sysctl.h>
++#endif
+ #include <libnet-1.0.h>
+ #include <pcap.h>
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-09 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-09 11:47 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/angst/files/, net-analyzer/angst/ Jeroen Roovers
-- strict thread matches above, loose matches on Subject: below --
2020-01-30 13:55 Jeroen Roovers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox