summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-17 19:56:01 -0400
committerSam James <sam@gentoo.org>2024-03-18 05:29:55 +0000
commit4dbbf4273e2da3821f6451b3665d85a0d06ee47a (patch)
treea9bfa2d043fa356b57245fdf4c1c87dbb19d2c4a /net-misc/packETH
parentnet-misc/packETH: update EAPI 7 -> 8 (diff)
downloadgentoo-4dbbf4273e2da3821f6451b3665d85a0d06ee47a.tar.gz
gentoo-4dbbf4273e2da3821f6451b3665d85a0d06ee47a.tar.bz2
gentoo-4dbbf4273e2da3821f6451b3665d85a0d06ee47a.zip
net-misc/packETH: add 3.0
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/packETH')
-rw-r--r--net-misc/packETH/Manifest1
-rw-r--r--net-misc/packETH/packETH-3.0.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/net-misc/packETH/Manifest b/net-misc/packETH/Manifest
index 8a8e9d5374dd..a25c4d0f12d3 100644
--- a/net-misc/packETH/Manifest
+++ b/net-misc/packETH/Manifest
@@ -1 +1,2 @@
DIST packETH-2.1.tar.gz 458750 BLAKE2B c08096e0781fc0174922d2eece31fa5e789ccfd7745eac0f16fbd515c6b5f72c7b9f7575fd215a3a1d0b69d6ae1f08427e5d145abbc83b9cbfeb6c6657d28b35 SHA512 55be4a2eb517c1d040664ea1a16d59dab20b06edbbd073cbf709deb4dfcec8d8eb12b88dfbd578f9bdb0ca614036ac4bbb00be6f865b774da2aa62ce8d3d767e
+DIST packETH-3.0.tar.gz 288127 BLAKE2B 5ada3df3ebcfb29ea4b035678899d5271a2c9189513ddd43821f2e264fb31dd8923779c39bdf6066e3cd153c04e4409bdad8fde31f02b01e0dd9650117d6c45a SHA512 5b63483159d7b34c236b797fbdac3526d06fd5e0db34664163b19e643e942ad0919b4eae637047f69f017510e943188219345ff1c6fefa09dcb4023c09501f06
diff --git a/net-misc/packETH/packETH-3.0.ebuild b/net-misc/packETH/packETH-3.0.ebuild
new file mode 100644
index 000000000000..5ac86e17d30c
--- /dev/null
+++ b/net-misc/packETH/packETH-3.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic toolchain-funcs
+
+DESCRIPTION="Packet generator tool for ethernet"
+HOMEPAGE="http://packeth.sourceforge.net/"
+SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli +gtk"
+REQUIRED_USE="
+ || ( cli gtk )
+"
+
+RDEPEND="
+ gtk? (
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ gtk? ( virtual/pkgconfig )
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch
+)
+DOCS=( AUTHORS CHANGELOG README )
+
+src_prepare() {
+ default
+ use gtk && eautoreconf
+}
+
+src_configure() {
+ # -Werror=lto-type-mismatch
+ # https://bugs.gentoo.org/861695
+ # https://github.com/jemcek/packETH/issues/42
+ filter-lto
+
+ use gtk && default
+}
+
+src_compile() {
+ use gtk && default
+ use cli && emake \
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli
+}
+
+src_install() {
+ use gtk && default
+
+ if use cli; then
+ dobin cli/${PN}cli
+ local i
+ for i in NEWS README TODO; do newdoc cli/${i} ${i}.cli; done
+ fi
+}