mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
net-analyzer/packit: drop 1.7
Bug: https://bugs.gentoo.org/886941 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST packit-1.7.tar.gz 53192 BLAKE2B f5a7fcd0790e05be593be47c2339c3ecb14b2fd45308a273ecc9d5398087698605c2174a8440e870ccf35fd9d560bea11ca720e44045115c15757f6f98d00ac4 SHA512 4e7d13ef5387dc446e718792562dbf84f9e0b611196a3590ea8e8b4411ae30694b48f28ab632a0b692935adffb44757e65a4eb5ab942b5d625acbdc08d34aefd
|
||||
DIST packit-1.8.tar.gz 150410 BLAKE2B d0a0926643b6b595159d1fec703295a880c1fcad188e2d9a6719b879bad0b1f081ab75031550257d5c8573f2d8ed9960e7d46fdbe4c4c19c669015b048509a24 SHA512 1873c687c8be489966d5f8868def3cb824264dcfd8c6572b03fd51f15f8920965c8682b13cc6a9d6fec62bf9fe3b4e91f5a9d3d4c6441232d3f6f51a244a8baf
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -201,6 +201,7 @@
|
||||
#ifdef DEBUG
|
||||
fprintf(stdout, "DEBUG: parse_inject\n");
|
||||
#endif
|
||||
+ if (!opts) print_usage();
|
||||
|
||||
while((opt = getopt(argc, argv, opts)) != -1)
|
||||
{
|
||||
@@ -1,67 +0,0 @@
|
||||
https://github.com/resurrecting-open-source-projects/packit/pull/19
|
||||
https://bugs.gentoo.org/816753
|
||||
|
||||
From 030cdc3f6ded1d206ca16dacc19aef181adba708 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Thu, 14 Oct 2021 08:11:24 +0100
|
||||
Subject: [PATCH 1/2] configure.ac: fix autoreconf with newer automake
|
||||
|
||||
Newer automake forbids repeated calls to AM_INIT_AUTOMAKE.
|
||||
|
||||
Bug: https://bugs.gentoo.org/816753
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -29,7 +29,6 @@
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([packit], [1.7], [https://github.com/resurrecting-open-source-projects/packit/issues])
|
||||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
-AM_INIT_AUTOMAKE
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
AC_MSG_RESULT(beginning auto-configuration process for packit...)
|
||||
AC_PREFIX_DEFAULT(/usr/local)
|
||||
|
||||
From f62d3d40ff99ac39e7cbdea9991bec639a16d3a0 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Thu, 14 Oct 2021 08:12:14 +0100
|
||||
Subject: [PATCH 2/2] configure.ac: don't ignore failure to find packages
|
||||
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -146,7 +146,7 @@ AC_CHECK_HEADERS(libnet.h,, LIBNET="no")
|
||||
if test "$LIBNET" = "no"; then
|
||||
echo ""
|
||||
echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version."
|
||||
- exit;
|
||||
+ exit 1;
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libpcap_includes,
|
||||
@@ -161,7 +161,7 @@ AC_CHECK_HEADERS(pcap.h,, LIBPCAP="no")
|
||||
if test "$LIBNET" = "no"; then
|
||||
echo ""
|
||||
echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version."
|
||||
- exit;
|
||||
+ exit 1;
|
||||
fi
|
||||
|
||||
dnl Checks for library functions.
|
||||
@@ -181,7 +181,7 @@ AC_CHECK_LIB(net, libnet_build_ipv4,, LIBNET="no")
|
||||
if test "$LIBNET" = "no"; then
|
||||
echo ""
|
||||
echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version."
|
||||
- exit;
|
||||
+ exit 1;
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(libpcap_libraries,
|
||||
@@ -196,7 +196,7 @@ AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no")
|
||||
if test "$LIBPCAP" = "no"; then
|
||||
echo ""
|
||||
echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version."
|
||||
- exit;
|
||||
+ exit 1;
|
||||
else
|
||||
AC_CHECK_LIB(pcap, pcap_setnonblock,, SETNONBLOCK="no")
|
||||
if test "$SETNONBLOCK" = "no"; then
|
||||
@@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="network packet generator and capture tool"
|
||||
HOMEPAGE="https://github.com/resurrecting-open-source-projects/packit"
|
||||
SRC_URI="https://github.com/resurrecting-open-source-projects/packit/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
|
||||
DEPEND="
|
||||
net-libs/libnet:1.1
|
||||
net-libs/libpcap
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.0-noopt.patch
|
||||
"${FILESDIR}"/${PN}-1.7-configure.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc docs/*
|
||||
}
|
||||
Reference in New Issue
Block a user