diff options
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/Manifest.gz | bin | 43574 -> 43566 bytes | |||
-rw-r--r-- | net-analyzer/fail2ban/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 134 | ||||
-rw-r--r-- | net-analyzer/fail2ban/files/fail2ban-1.0.2-configreader-warning.patch | 19 | ||||
-rw-r--r-- | net-analyzer/macchanger/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r1.ebuild (renamed from net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild) | 4 | ||||
-rw-r--r-- | net-analyzer/netperf/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/netperf/netperf-2.7.0-r4.ebuild | 5 | ||||
-rw-r--r-- | net-analyzer/ngrep/Manifest | 5 | ||||
-rw-r--r-- | net-analyzer/ngrep/files/ngrep-1.47-clang16.patch | 30 | ||||
-rw-r--r-- | net-analyzer/ngrep/metadata.xml | 1 | ||||
-rw-r--r-- | net-analyzer/ngrep/ngrep-1.47-r2.ebuild (renamed from net-analyzer/ngrep/ngrep-1.47-r1.ebuild) | 12 |
12 files changed, 204 insertions, 12 deletions
diff --git a/net-analyzer/Manifest.gz b/net-analyzer/Manifest.gz Binary files differindex b7aae360e321..5c2a2c6ce2f8 100644 --- a/net-analyzer/Manifest.gz +++ b/net-analyzer/Manifest.gz diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index fa608dcc541a..2293ac98b2eb 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,5 +1,7 @@ AUX fail2ban-0.11.2-adjust-apache-logs-paths.patch 893 BLAKE2B 5b80b81488a5245d9d9d15a1b0205a1d86f132e3faa5ea3e5cf91d55082b2d264e558dca4b7fbe62f643601b3315ac31cae387c433c2d90b670965abfa744f87 SHA512 dddff4858431170f5a24daab2d3cedcdcd7a1194b8ecbbcd794dfe00dcaee4af410afef102d3a25f86f541267d7be63e3e1d239c879e95d20cef9f0dacdcdc4c +AUX fail2ban-1.0.2-configreader-warning.patch 844 BLAKE2B 3dca580b50c7fa425765ee28fd07d033e738e81ac08f1b66a9b328c7fdf24227c0dca81927e61933c3c3d0c7b6895aed797642f15b449bb6485c8bef6c2315a7 SHA512 119f6b06c099f1dd147859408714fdfe3c73e254ad0d4bf04e535a1f6cbaf08ba368f3e616df792579528e5b6e26bd1be5408258a807d7e2ba36020b211d8e9e DIST fail2ban-1.0.2.tar.gz 583295 BLAKE2B 84eb5e3487c4db734f4f0a36af142d520e1cc53c2960893ee2f05ff4e78133860be59ed9580fa0d972509a03c17e5d9458b8e3f6b470a4c3154f10911f94691e SHA512 688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb +EBUILD fail2ban-1.0.2-r1.ebuild 3715 BLAKE2B d23df974596c58290563253b1023934bf7e02c923b5698c21e383510d85ef414e1227e70132e703270095f3cc48036347b169921e8847239750c4deed9952fc1 SHA512 a1696ed6a51779d70e7efee34e45f5d8c4e2d29c2e7167dea0f4b3f15adb5c2c9b350eb68d7a2c24acc9215a1dd220da07deb5f47e86ca3be7a993f31b606089 EBUILD fail2ban-1.0.2.ebuild 3660 BLAKE2B e740d8aeb42fc1db298febaf7030ca58a2bcbf5d6961ef1d710844d58e4b2661cd00abf314d623574699df6e45578a6c46e3489b28745249e5fe63d3b75c8d11 SHA512 331c968869dd56056b387bd3ae54fd4375feb1708dc81914595fa56102a746761b37ace214540bebb59dbaafe2e8072de732be396b474648e7e197de422466ee EBUILD fail2ban-9999.ebuild 3668 BLAKE2B 3dd73b46392b5b5acae89aa0da2a3c1dcfad025462a9ec459e64cf5cebccdced2464e1be7a14d360b53a018c8f829ee0f167c3756702b3b224d394fb455a3c56 SHA512 32d928b9c698b7c13e7d2f2d44934e7ff0b1722aba1fa8f7bb9ffa500e1eb6acd36d71d9c8073adea90c8fe8c7797c3272bb99930142634c5bbd5f6dac6b794a MISC metadata.xml 357 BLAKE2B a5dee8c760b80bbfad6bca9a7adae797eda34b9db80716db8842c6813b4ed25ed4707290756dc869a7db4163de1ff6114c1995fcc2c485df1bcc6cad9c9a8f14 SHA512 9877a507bd3617c33351036317c5dc7855a1024d8f04f76a57edb93bd80e62b2b7c4f35784f447e94497305eab33246ae5913ba36ea001aa9068d1f91aeee9f0 diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild new file mode 100644 index 000000000000..177a0d0239c8 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban" + inherit git-r3 +else + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="selinux systemd" + +RDEPEND=" + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( + $(python_gen_cond_dep ' + || ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] + )' 'python*' ) + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${P}-configreader-warning.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # Replace /var/run with /run, but not in the top source directory + find . -mindepth 2 -type f -exec \ + sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die +} + +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + +python_test() { + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles files/${PN}-tmpfiles.conf + + doman man/*.{1,5} + + # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 + insinto /etc/logrotate.d + newins files/${PN}-logrotate ${PN} + + keepdir /var/lib/${PN} + + newbashcomp files/bash-completion ${PN}-client + bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.7" + previous_less_than_0_7=$? +} + +pkg_postinst() { + tmpfiles_process ${PN}-tmpfiles.conf + + if [[ ${previous_less_than_0_7} = 0 ]] ; then + elog + elog "Configuration files are now in /etc/fail2ban/" + elog "You probably have to manually update your configuration" + elog "files before restarting Fail2Ban!" + elog + elog "Fail2Ban is not installed under /usr/lib anymore. The" + elog "new location is under /usr/share." + elog + elog "You are upgrading from version 0.6.x, please see:" + elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8" + fi + + if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin ; then + elog "For most jail.conf configurations, it is recommended you install either" + elog "dev-python/pyinotify or app-admin/gamin (in order of preference)" + elog "to control how log file modifications are detected" + fi + + if ! has_version dev-lang/python[sqlite] ; then + elog "If you want to use ${PN}'s persistent database, then reinstall" + elog "dev-lang/python with USE=sqlite. If you do not use the" + elog "persistent database feature, then you should set" + elog "dbfile = :memory: in fail2ban.conf accordingly." + fi + + if has_version sys-apps/systemd[-python] ; then + elog "If you want to track logins through sys-apps/systemd's" + elog "journal backend, then reinstall sys-apps/systemd with USE=python" + fi +} diff --git a/net-analyzer/fail2ban/files/fail2ban-1.0.2-configreader-warning.patch b/net-analyzer/fail2ban/files/fail2ban-1.0.2-configreader-warning.patch new file mode 100644 index 000000000000..748e507e4a26 --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-1.0.2-configreader-warning.patch @@ -0,0 +1,19 @@ +https://github.com/fail2ban/fail2ban/commit/432e7e1 + +From 432e7e1e93936f09e349e80d94254e5f43d0cc8a Mon Sep 17 00:00:00 2001 +From: "Sergey G. Brester" <serg.brester@sebres.de> +Date: Mon, 28 Nov 2022 13:21:15 +0100 +Subject: [PATCH] no warning if no config value but default (debug message now) + +closes #3420 +--- a/fail2ban/client/configreader.py ++++ b/fail2ban/client/configreader.py +@@ -277,7 +277,7 @@ def getOptions(self, sec, options, pOptions=None, shouldExist=False, convert=Tru + # TODO: validate error handling here. + except NoOptionError: + if not optvalue is None: +- logSys.warning("'%s' not defined in '%s'. Using default one: %r" ++ logSys.debug("'%s' not defined in '%s'. Using default one: %r" + % (optname, sec, optvalue)) + values[optname] = optvalue + # elif logSys.getEffectiveLevel() <= logLevel: diff --git a/net-analyzer/macchanger/Manifest b/net-analyzer/macchanger/Manifest index dda3f460adaf..3d4cc8278087 100644 --- a/net-analyzer/macchanger/Manifest +++ b/net-analyzer/macchanger/Manifest @@ -1,5 +1,5 @@ AUX macchanger-1.7.0-fix-caddr_t.patch 352 BLAKE2B 915bfe65108678b61c75fcf46338be1f05c2cbc482005e2bca917609d66a681e5ab36ad30fe6313395d090c96aca2a091ef60b22b0d2c25c0f975d99cae39ccd SHA512 493eaf79e658a23e55e17b95b63b457032eff8c73bf309df7605400ceb2dcd4331a83c2b8383bd04d564478fb50654ebbe9506d65946f960d2964b2b4e32f620 DIST macchanger-1.7.0.tar.gz 396848 BLAKE2B 7a6e5cbf302568884363ab4023033b53b1adc16896d7f88b1717f72b1b2a4d6d2dbfa2259a5c4aaa38d72201c5624a648077730cbc25f869f5f50a343bb93d0c SHA512 69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3 DIST macchanger_1.7.0-5.4.debian.tar.xz 25084 BLAKE2B 65d39333e07a4c89da7e622aaccc0f2cab45af8d84721c3d39c457dfaf3063df872812d07860cbe78634159b0a2944e75aa54c11f46eadc37b9d4a23fc81b629 SHA512 b50b52532fc987f443088f2a4d0f2327dac972e69bc4c0bc0a94de4583df76c7d32c40a143d24b7fa6e066fc36b89c4b160c02b26860c484aab5054a4032f0cc -EBUILD macchanger-1.7.0_p5_p4.ebuild 1328 BLAKE2B 65c280d60f71c6d4f009e3a44e905077436e9ad69c6c02501752304a78e37994de88614b97832159eeb7a12c11cc2069377d64c4cbbcf5a9495aca3d551f387d SHA512 6db79a56ed335787f8bcaf23860cca0f9e0c569820fe0657502f3aae05f63ec08b9bc0bd0434851f7d172fff85eb439d8c67dc0c3eddc0ae7e1da160e14f91cf +EBUILD macchanger-1.7.0_p5_p4-r1.ebuild 1266 BLAKE2B 411d4569f8612a4abce94f5046d8d085c1510dc345ebbfc6403df29b42ac29209f30dc46dc471f28a76707b90c5a55a18bd8a66cd1b470a7b2b74a188ed34046 SHA512 f4967d2b1bb88be26507f8cbee87e6b2e8796131d33ad8e0277e649ea5a1ad4a8f5e56f433ee3427ada65c4ee696fcd4021485938deabd0217b69bbb7427c119 MISC metadata.xml 474 BLAKE2B bf5ebf9af4669a711eab0193a1cbe1b337fd741d4390e150ee2e2755fb668c12d867e5912b357deef123f86a7602ce19380c0247e9fe60d0a55fc4443a466714 SHA512 9f13d45129605873c87b98c577a2afe9d172d7fd2c808b6363702e05ddb3bc1f5ef488a2d8adf1da00c913e07c6e25a1e1315e458b96d4f760658c585c3cedcc diff --git a/net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r1.ebuild index ed18fd45624d..2bce7cea0e43 100644 --- a/net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild +++ b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r1.ebuild @@ -29,7 +29,7 @@ S=${WORKDIR}/${P/_p*} src_configure() { # Shared data is installed below /lib, see Bug #57046 econf \ - --bindir="${EPREFIX}/sbin" \ + --bindir="${EPREFIX}/usr/bin" \ --datadir="${EPREFIX}/lib" } @@ -38,7 +38,5 @@ src_install() { newdoc "${WORKDIR}"/debian/changelog debian.changelog - dodir /usr/bin - dosym ../../sbin/macchanger /usr/bin/macchanger dosym ../../lib/macchanger /usr/share/macchanger } diff --git a/net-analyzer/netperf/Manifest b/net-analyzer/netperf/Manifest index 74ab8fce716e..b0f2b3158eba 100644 --- a/net-analyzer/netperf/Manifest +++ b/net-analyzer/netperf/Manifest @@ -8,5 +8,5 @@ AUX netperf-2.7.0-space.patch 455 BLAKE2B aa4fae48102f2d767a0c72a13b20820d9e42f7 AUX netperf-fix-scripts.patch 819 BLAKE2B 59779076ad1e3315712f7db54451256dcbd04c2712020d0b39c0fb1969fbfec0cbf8a3f1b6203ce5622b45a2cc6877b1c1448b0d505aa98a034c2a7fd2f285e3 SHA512 d82b01695c432be2f7312641b5599514bf21ca4586f15406aa087034de8d7b66f000eafd02f685c56062a8639ff4158e01d56835e6b8c53baf46481b0a3d0f1a DIST netperf-2.7.0.tar.bz2 1024430 BLAKE2B 1263a2b3cee0790e4526245e522d29f8692a5a3e9d3b41468d1010bbee4d606a06904d9e0c4ac0af457bde562a476434be4c62a41e3c0dbf0e5c3aeb2ae5652a SHA512 5fb37945bead831247de9c8ba86b33f134ba39e753b483df72de97f536d0846538dadf61acc2dee57f04ab5d16a92afab4890e79a5d7ffa863afd526267fffad EBUILD netperf-2.7.0-r3.ebuild 1917 BLAKE2B fdb4b339cf43b49a4182a9a44facb02f3c32c0cff27e277b138ed1fbd5dd36bd87859eacb4c84ace8274376a4064fbb854645c6c6dbd629cad230c65117ae8a9 SHA512 9eae6cf5bc8de678e65a87b41b45193b8a5e82ea63c01a4abc142d9e40034f7b25a18bad80e5a78910bcc8350ed6ecac251fe7533c996c81e8343a736f1164a2 -EBUILD netperf-2.7.0-r4.ebuild 1939 BLAKE2B d79bb2b55260c65354823facdada3327ddc1735b83581b610c25f554dc39f8e3fae9f0ea4ba3e030f5eb5e56feeb2529932d355633dfa7024e3156e5532bf5a2 SHA512 13880542f70f228c5743d06bdece5d4df9c52dad8f551dc37561d2e46432fd4571025955856391ce01c8c3444efe9534637787c07019f6a97a86571ffb32b2b7 +EBUILD netperf-2.7.0-r4.ebuild 2009 BLAKE2B 842cf2169d8dd6e35cc75970d9acc0fdf53d7daefafba47017459bcf17918fc6266d4185b7f2378cb38db78abdaa80c784dcbfeab9564793a9bdd6d5fc2bf7e2 SHA512 eb70c99b4293ea66f892c3ac3508ce987f68ae6568563f2080eade9d9833b5b1cc50390995e2c5fb1be9ceffe9b30cb240720082a0177e5607a770f68d3948b3 MISC metadata.xml 856 BLAKE2B f1f2ac4a59c7c5e180ad68dd84bce5563a6ba32af6d5a0c6314e9ad153d5fa80ece9d5d9fecb4f7f62e4a615531e9ba7aed6cd180064e32d9f2951e655d5c337 SHA512 5f0e528830a267e8e2c900f670306d9d7602060fcce34b8367e9bf2be3e57a81be7a9e9b32e4457287224c9dd5d9e1915e9e8d67a55d0db85cea3ce7fa8c396b diff --git a/net-analyzer/netperf/netperf-2.7.0-r4.ebuild b/net-analyzer/netperf/netperf-2.7.0-r4.ebuild index 51a9ab06b8d5..f2cbe9c445a8 100644 --- a/net-analyzer/netperf/netperf-2.7.0-r4.ebuild +++ b/net-analyzer/netperf/netperf-2.7.0-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -8,7 +8,7 @@ inherit flag-o-matic DESCRIPTION="Network performance benchmark" HOMEPAGE="http://www.netperf.org/" SRC_URI="ftp://ftp.netperf.org/${PN}/${P}.tar.bz2" -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="~alpha amd64 arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" LICENSE="netperf" SLOT="0" @@ -47,6 +47,7 @@ src_prepare() { src_configure() { # netlib.c:2292:5: warning: implicit declaration of function ‘sched_setaffinity’ # nettest_omni.c:2943:5: warning: implicit declaration of function ‘splice’ + # TODO: drop once https://github.com/HewlettPackard/netperf/pull/73 merged append-cppflags -D_GNU_SOURCE econf \ diff --git a/net-analyzer/ngrep/Manifest b/net-analyzer/ngrep/Manifest index 97bb5144b414..6dce700589d6 100644 --- a/net-analyzer/ngrep/Manifest +++ b/net-analyzer/ngrep/Manifest @@ -1,4 +1,5 @@ +AUX ngrep-1.47-clang16.patch 657 BLAKE2B c4e92f07767e468604f8e8fe412269889eee55f537cc5128e549f9fcd7e36bace484b5814e8aad27db7c714f9df74a8e16523760af58a2f4c9c1bc672d06aa2d SHA512 23d3bedf8bcfcf5f0d7dcff958fd09aa3d3aac52c9f54bf37ffbd408ea55bdc16865967799ac54787505a33c40caba122b67912e05657c8acabe4709b5bc1a1e AUX ngrep-1.47-regex.patch 683 BLAKE2B 5eaed7398a140dee747664ce05c3f9afb9f57f827ef96efd4ad284be313dd234c15603bcd842c7d2c96a46900de46205cec1d0270cc83d36b5e9feedf1f3b2b3 SHA512 e435f1e4fb35fbed0eeef414da2fd19c09311287b466e667c9150d53a1ae52abbe31173758192c9638eaecf54e4c3be99020e9831a2543b2e4d0c61f5b9f55de DIST ngrep-1.47.tar.gz 187067 BLAKE2B 4fa47ed343b88e84fb5a3ab6e4dc8139cb008ffcbea901a67664335ad76d36e975e037620cebb1b204ba22e5b139e822c7cfbc74a061fc6cacae631be3f87a52 SHA512 47ba65878df6b555701c866721a8a935eabdcce636d398284cbfe5f63baf68c62d994a2f373ea4fc8f44fbed3eecee149f2ee48d39c71c04d34e5a088db8c657 -EBUILD ngrep-1.47-r1.ebuild 942 BLAKE2B 4709c2f094b593ec253bd3e61117e1bf8d7b85328968daf00d14f3e0bce14142f81bfbb23ae91d0600cd635aeb503c695078a4f583ccee64269615fc8c4238f7 SHA512 edb6a4dafbf84b84e56a5cc5002d75430ee4c5359bd735afbc4796b24efe311985805fbf2a501e5709f7a96cc28b930e3295dede7bb9719292045e3c9c40ef71 -MISC metadata.xml 700 BLAKE2B dec910e1684d18b6fac6eec3b41f04b57ac68e075579f436a0fbadfd498c607d9fd0f1f5a3bfd143832dad6b35cf35025a94673c280972c7c039ae35aecfc505 SHA512 4696ace8e8d5d73c574e347dd2aed9879363eb62a364b72c873b88b3510938b15873834f55744e155290d85d697c8bc2ab31c06b01dbb0e071a524419cad9ea5 +EBUILD ngrep-1.47-r2.ebuild 1068 BLAKE2B 5ee125db85629aaf87ec40281e19aa630d68a03b4c02bdc7626faa9b5fd041eac7482510596d9ebdb271f21b0e702802aa19f9f7610607d1906e32365df6c7d6 SHA512 aa1a5bbffddef87993c37b24768a5a9c790f26e58ccb174a5b26cb51d03f4b2f23866e11f713b8a88f29186379d0e53241823c512c54d1eada968b3d36e1f252 +MISC metadata.xml 750 BLAKE2B 7771d4dc6aea1ffce67005400d0cc9221bd258467b6f4a2ee734ca7a050a1fe922ab8f982d67293bcddfaa037a0e56760ccebab0972c8837485771eb1d3d409d SHA512 f7e40fe3c1a0ae6fae47a26783692ca0b2e52259eb421f2916670ad87c8208bb095f8b4d1a865bfdb76de1033c3c52d4b72fa205ab565fceb9eb5ac66a5ffad4 diff --git a/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch b/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch new file mode 100644 index 000000000000..eb3758e8db2b --- /dev/null +++ b/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch @@ -0,0 +1,30 @@ +https://github.com/jpr5/ngrep/pull/28 + +From 52515bae377f221b5473d9040f5f43ab1c672672 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Mon, 19 Dec 2022 11:49:06 +0100 +Subject: [PATCH] Include <err.h> and "tcpkill.h" to avoid implicit function + declarations + +Implicit function declarations are a historic language feature that +were removed from C in 1999. +--- a/ngrep.c ++++ b/ngrep.c +@@ -98,6 +98,7 @@ + #endif + + #include "ngrep.h" ++#include "tcpkill.h" + + + /* +--- a/tcpkill.c ++++ b/tcpkill.c +@@ -14,6 +14,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <string.h> ++#include <err.h> + #include <libnet.h> + #include <pcap.h> + diff --git a/net-analyzer/ngrep/metadata.xml b/net-analyzer/ngrep/metadata.xml index 0c81e02df621..51aab562d737 100644 --- a/net-analyzer/ngrep/metadata.xml +++ b/net-analyzer/ngrep/metadata.xml @@ -16,5 +16,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">ngrep</remote-id> + <remote-id type="github">jpr5/ngrep</remote-id> </upstream> </pkgmetadata> diff --git a/net-analyzer/ngrep/ngrep-1.47-r1.ebuild b/net-analyzer/ngrep/ngrep-1.47-r2.ebuild index 4dbf881dcf41..ccfd27b71f07 100644 --- a/net-analyzer/ngrep/ngrep-1.47-r1.ebuild +++ b/net-analyzer/ngrep/ngrep-1.47-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit autotools @@ -26,10 +26,16 @@ RDEPEND=" acct-user/ngrep " -PATCHES=( "${FILESDIR}"/${PN}-1.47-regex.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.47-regex.patch + "${FILESDIR}"/${PN}-1.47-clang16.patch +) src_prepare() { default + + sed -i -e "s:configure.in:configure.ac:" regex*/{configure.in,Makefile.in} || die + eautoreconf } |