diff options
Diffstat (limited to 'net-libs/libpcapnav')
-rw-r--r-- | net-libs/libpcapnav/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch | 22 | ||||
-rw-r--r-- | net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild | 49 |
3 files changed, 73 insertions, 0 deletions
diff --git a/net-libs/libpcapnav/Manifest b/net-libs/libpcapnav/Manifest index ef3dd27eae0d..459e8d2c6cb9 100644 --- a/net-libs/libpcapnav/Manifest +++ b/net-libs/libpcapnav/Manifest @@ -1,4 +1,6 @@ AUX libpcapnav-0.8-includes.patch 395 BLAKE2B 6904addab4a42d233780616364a4603bf691133313614d3f3b36a4b736aa1acbe77d07f0f7751e7069fbadc1e1c87bcf6086b1cde574731dabf0a9a4cfe243d9 SHA512 04570a0f0b5c33565e79922e878171bb98640d2961cc9378c64e17a7144636960fe099bcca4c043d8a4532b98fe7960fdfa24af8145df5c8682af4dcc5d9b99c +AUX libpcapnav-0.8-noinst_test.patch 609 BLAKE2B 191f9d223334160d8c3d904fe2540f44edbc65f83c263e8f90659ab9b92cc42a7f6addf60914d20bc77d13dda9e9cf500fa2bb03876ec8b9989af8682d22c19c SHA512 f3797711b665d0d094e1c814fcca5c761a51628bf0c807a6caa1a76e6cb06f06b74c741c010e05b84f1f39e61672a886519c81ceb2875101c5e28187633a67fe DIST libpcapnav-0.8.tar.gz 387476 BLAKE2B f3027f17307a76fe6baad6fc79ce054726def17c834b814a07c628f8420fe481e661d72e72d7b3dde494ca17b2e36abba3a27d02f68924f88c2a89d57fae8b44 SHA512 bc0357d17228c157de5b480532df37a62459882d5a4fb8d2285fe4e86c1dca301e7cc505f2917bb3421d926bed263d93b2c587311431d9c3a5b02f04c93fdf18 +EBUILD libpcapnav-0.8-r1.ebuild 929 BLAKE2B 24ee8a944d01d803852b8df77179f8837c566bcdbe2ecd954d06abf15c6c514517f0ada8764ceaa68dd8e996b9d0fe925d0c480b2c5287a4e55716a31ab41cd8 SHA512 19bde6af83439cd76e21978ec9cb76d041cb133e2ddb1283d69cca618dacc77b121490bc3f071270331acd97f5f6f6a9355a4a4b387faf24b90c1cb7cbd9b5ae EBUILD libpcapnav-0.8.ebuild 815 BLAKE2B 1b7df5b4e754936e84f01d8850a5b70dc8762a26290bb217ffbb319aab02a8c3d359095879308d723dc840dd16d8c79771528dcb97a0c893888fa2bef095ea12 SHA512 f39d670d58f9d0072a35a600f950323d13523b7291fa57d97f534342987483743d7d05152cbc7baf64fef52cc916b17e5bcb5dbcd891bb7f7e3c0ff3b98068c3 MISC metadata.xml 357 BLAKE2B ddcf544a7ae28909b7fb7810c0a6bb368099397e2bf7d6e68a2475c5d701d7589aacf0a15f76f00f68b623a7b37c46d60a5faa3c92f1ac73eb2d99fa29b48ccc SHA512 9cf449d26b416d995b8371fe2e6aed6964080b8b84bf0ceace749ceebd4ddbcc8b3d7d9c1d8c2a07a4c7cb880492ffc8b34ad31b4602a646e004f3aaf52f3ae8 diff --git a/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch b/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch new file mode 100644 index 000000000000..7bac55b391e3 --- /dev/null +++ b/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch @@ -0,0 +1,22 @@ +--- a/test/Makefile.am ++++ b/test/Makefile.am +@@ -5,7 +5,7 @@ + + INCLUDES = -I$(top_srcdir)/src + +-bin_PROGRAMS = pcapnav-test1 pcapnav-offsets \ ++check_PROGRAMS = pcapnav-test1 pcapnav-offsets \ + pcapnav-jump pcapnav-concat pcapnav-filespan + + pcapnav_test1_SOURCES = pcapnav-test1.c +@@ -23,10 +23,6 @@ + pcapnav_filespan_SOURCES = pcapnav-filespan.c + pcapnav_filespan_LDADD = -L$(top_builddir)/src/ -lpcapnav -lpcap @PCN_LIBADD@ + +-# don't install any of this stuff +-install-binPROGRAMS: +-uninstall-binPROGRAMS: +- + EXTRA_DIST = \ + run-tests.sh \ + test1.trace test1-correct.be.trace test1-correct.le.trace diff --git a/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild b/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild new file mode 100644 index 000000000000..4ac67c9e2d31 --- /dev/null +++ b/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools + +DESCRIPTION="Libpcap wrapper library to navigate to arbitrary packets in a tcpdump trace file" +HOMEPAGE="http://netdude.sourceforge.net/" +SRC_URI="mirror://sourceforge/netdude/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~sparc ~x86" +IUSE="doc static-libs" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" +RESTRICT="test" +DOCS=( AUTHORS ChangeLog README ) +PATCHES=( + "${FILESDIR}"/${P}-includes.patch + "${FILESDIR}"/${P}-noinst_test.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +jer_src_compile() { + emake SUBDIRS="src docs" +} + +src_install() { + default + + rm -fr "${D}"/usr/share/gtk-doc + + if use doc; then + docinto html + dodoc -r docs/*.css docs/html/*.html docs/images + fi + + find "${ED}" -name '*.la' -delete || die +} |