public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/labrea/files/, net-analyzer/labrea/
@ 2018-07-23 21:01 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2018-07-23 21:01 UTC (permalink / raw
  To: gentoo-commits

commit:     cf9dde489900b5df4936d5b66c706be102ab6eea
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 23 21:01:16 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Jul 23 21:01:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf9dde48

net-analyzer/labrea: Fix building against libpcap-1.9.0 (bug #661892).

Package-Manager: Portage-2.3.43, Repoman-2.3.10

 .../labrea/files/labrea-2.5-pcap_open.patch        | 42 ++++++++++++++++++++
 net-analyzer/labrea/labrea-2.5-r3.ebuild           | 45 ++++++++++++++++++++++
 2 files changed, 87 insertions(+)

diff --git a/net-analyzer/labrea/files/labrea-2.5-pcap_open.patch b/net-analyzer/labrea/files/labrea-2.5-pcap_open.patch
new file mode 100644
index 00000000000..7c918dfa15f
--- /dev/null
+++ b/net-analyzer/labrea/files/labrea-2.5-pcap_open.patch
@@ -0,0 +1,42 @@
+--- a/src/pcaputil.c
++++ b/src/pcaputil.c
+@@ -52,7 +52,7 @@
+ #include "pcaputil.h"
+ 
+ pcap_t *
+-pcap_open(char *device)
++labrea_pcap_open(char *device)
+ {
+ 	char ebuf[PCAP_ERRBUF_SIZE];
+ 	pcap_t *pcap;
+--- a/src/lbio.c
++++ b/src/lbio.c
+@@ -190,7 +190,7 @@
+   /*
+    * Open the WinPcap device for sniffing
+    */
+-  if ((io.pcap = pcap_open(io.adapter_name_list[j])) == NULL) {
++  if ((io.pcap = labrea_pcap_open(io.adapter_name_list[j])) == NULL) {
+     warnx("*** Couldn't open WinPcap adapter" );
+     return(-1);
+   }
+@@ -286,7 +286,7 @@
+       util_clean_exit(1);
+ 
+   } else { /* open Unix pcap device for sniffing */
+-    if ((io.pcap = pcap_open(io.ifent->intf_name)) == NULL) {
++    if ((io.pcap = labrea_pcap_open(io.ifent->intf_name)) == NULL) {
+       warnx("*** Couldn't open pcap device for sniffing" );
+       util_clean_exit(1);
+     }
+--- a/inc/pcaputil.h
++++ b/inc/pcaputil.h
+@@ -15,7 +15,7 @@
+ #endif
+ 
+ 
+-pcap_t * pcap_open(char *device);
++pcap_t * labrea_pcap_open(char *device);
+ int	pcap_dloff(pcap_t *pcap);
+ int	pcap_filter(pcap_t *pcap, const char *fmt, ...);
+ void	pcap_stat (pcap_t *pd);

diff --git a/net-analyzer/labrea/labrea-2.5-r3.ebuild b/net-analyzer/labrea/labrea-2.5-r3.ebuild
new file mode 100644
index 00000000000..1d43736622c
--- /dev/null
+++ b/net-analyzer/labrea/labrea-2.5-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="'Sticky' Honeypot and IDS"
+HOMEPAGE="http://labrea.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-stable-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="
+	net-libs/libpcap
+	>=dev-libs/libdnet-1.7
+"
+RDEPEND="
+	${DEPEND}
+"
+
+MY_P="${P}-stable-1"
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS ChangeLog README TODO NEWS )
+PATCHES=(
+	"${FILESDIR}"/${P}-stable-1-incdir.patch
+	"${FILESDIR}"/${P}-pcap_open.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_install() {
+	default
+	newdoc INSTALL README.first
+}
+
+pkg_postinst() {
+	ewarn "Before using this package READ the INSTALL and README"
+	ewarn "as the author states that it can cause serious problems on your network"
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/labrea/files/, net-analyzer/labrea/
@ 2022-10-14  3:20 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2022-10-14  3:20 UTC (permalink / raw
  To: gentoo-commits

commit:     6d9a06c3abe924dba6bd47811b20e731232293dd
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 01:45:18 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 03:19:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d9a06c3

net-analyzer/labrea: fix build w/ upcoming clang16

Closes: https://bugs.gentoo.org/871513
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-analyzer/labrea/files/labrea-2.5_p1-clang16.patch | 7 +++++++
 net-analyzer/labrea/labrea-2.5_p1.ebuild              | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/labrea/files/labrea-2.5_p1-clang16.patch b/net-analyzer/labrea/files/labrea-2.5_p1-clang16.patch
new file mode 100644
index 000000000000..15ed9ff0960c
--- /dev/null
+++ b/net-analyzer/labrea/files/labrea-2.5_p1-clang16.patch
@@ -0,0 +1,7 @@
+https://bugs.gentoo.org/871513
+--- a/inc/utils.h
++++ b/inc/utils.h
+@@ -52,2 +52,3 @@
+ 
++void		util_alarm(void);
+ void		util_init(void);

diff --git a/net-analyzer/labrea/labrea-2.5_p1.ebuild b/net-analyzer/labrea/labrea-2.5_p1.ebuild
index a47abfc9e1a0..9906ae64ea98 100644
--- a/net-analyzer/labrea/labrea-2.5_p1.ebuild
+++ b/net-analyzer/labrea/labrea-2.5_p1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,6 +26,7 @@ PATCHES=(
 	"${FILESDIR}"/${P/_p/-stable-}-incdir.patch
 	"${FILESDIR}"/${P/_p*}-pcap_open.patch
 	"${FILESDIR}"/${PN}-2.5-libdir.patch
+	"${FILESDIR}"/${P}-clang16.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-14  3:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 21:01 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/labrea/files/, net-analyzer/labrea/ Jeroen Roovers
  -- strict thread matches above, loose matches on Subject: below --
2022-10-14  3:20 Ionen Wolkens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox