public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/arpwatch/
Date: Sun, 25 Aug 2024 23:54:13 +0000 (UTC)	[thread overview]
Message-ID: <1724630027.b84c2966b528749a4044cca46f24a5e8fa8c3014.conikost@gentoo> (raw)

commit:     b84c2966b528749a4044cca46f24a5e8fa8c3014
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sun Jul 28 09:06:23 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 23:53:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b84c2966

net-analyzer/arpwatch: add 3.6

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/37754
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-analyzer/arpwatch/Manifest            |  1 +
 net-analyzer/arpwatch/arpwatch-3.6.ebuild | 83 +++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/net-analyzer/arpwatch/Manifest b/net-analyzer/arpwatch/Manifest
index 53e3f2db8fe8..c5940fa0c061 100644
--- a/net-analyzer/arpwatch/Manifest
+++ b/net-analyzer/arpwatch/Manifest
@@ -1,3 +1,4 @@
 DIST arpwatch-3.1.tar.gz 117196 BLAKE2B 35afd3dc563ebbc8136000d5c2d53da85b9615df5cbe8a3da5b77f20da7cbee706f6fd404c2bda6f3626aaa496d9ec9439596acbdfd559c01b8c0d01d6703e46 SHA512 2e6f6e388e1828e34626e36356a89f3bc95d268b9242955d6636ac05041bcf533e7625ed73b37b6ea5eab8cfed54b8c483547556c98664efff63c18639efa282
 DIST arpwatch-3.5.tar.gz 117594 BLAKE2B 73b979ec279e5bf5baaeac05949e1bddf08cd9c3c7afcd29b37991ba55ba2bb8968b57b407eb571ec52871017372f479e586ba84b0f1aee67331ce7617309fb8 SHA512 e46b350c483f0e7c873eb177be337f238b2db3d859d8b305df5a74d9d97ca449750f9ed50a99c5d4c51618e22747731d70ceb3f13aae39c39d258b960258fb88
+DIST arpwatch-3.6.tar.gz 117254 BLAKE2B 77cb129bb543a45e22e27c02193b2ceaf4c65fd56b4d77e710379a2fbcaa5f1be4d625ea0b99f63843358ae993c7bee95db764baf36e0802a7aceae5d81706c7 SHA512 5ba47b15f294396f79efa4b72743169b9eb36747d675144e8f456a23d3987dc0d719d9b97704e7eeec0795f03ee7ef7e8fe8a4ba1ee35d19ab8ec6b077d345e8
 DIST ethercodes.dat-20200628.xz 239028 BLAKE2B e702b9109ef3ccce73e2637f96126bf19e7dfa533774c0bd623042b3609f147981263b84397ec155a65ae12fa57247c32644e1e7e57c2c749ef768156d853027 SHA512 2edc05d384f387e6b43d07da99038625f9c55c8044b5a48d1bcf9f657df691bf413a97fb9ca915f04dbdafab23f919edd15d906c4ce8bff12be0b255a6717f07

diff --git a/net-analyzer/arpwatch/arpwatch-3.6.ebuild b/net-analyzer/arpwatch/arpwatch-3.6.ebuild
new file mode 100644
index 000000000000..75c21ca8232c
--- /dev/null
+++ b/net-analyzer/arpwatch/arpwatch-3.6.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools systemd
+
+ETHERCODES_DATE=20200628
+DESCRIPTION="An ethernet monitor program that keeps track of ethernet/IP address pairings"
+HOMEPAGE="https://ee.lbl.gov/"
+SRC_URI="
+	https://ee.lbl.gov/downloads/${PN}/${P}.tar.gz
+	https://dev.gentoo.org/~jsmolic/distfiles/ethercodes.dat-${ETHERCODES_DATE}.xz
+"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~riscv ~sparc ~x86"
+IUSE="selinux"
+
+DEPEND="
+	acct-group/arpwatch
+	net-libs/libpcap
+	sys-libs/ncurses:=
+"
+RDEPEND="
+	${DEPEND}
+	acct-user/arpwatch
+	virtual/mta
+	selinux? ( sec-policy/selinux-arpwatch )
+"
+
+PATCHES=(
+	# sent upstream on 2023-12-05
+	"${FILESDIR}"/0001-Fix-configure-check-for-time.h.patch
+	"${FILESDIR}"/0002-Avoid-using-undocumented-internals-for-DNS.patch
+)
+
+src_prepare() {
+	default
+
+	# Temporary for 0001-Fix-configure-check-for-time.h.patch
+	eautoreconf
+}
+
+src_install() {
+	dosbin arp2ethers arpfetch arpsnmp arpwatch bihourly.sh massagevendor.py update-ethercodes.sh
+	doman arpsnmp.8 arpwatch.8
+
+	insinto /usr/share/arpwatch
+	newins "${WORKDIR}"/ethercodes.dat-${ETHERCODES_DATE} ethercodes.dat
+
+	insinto /usr/share/arpwatch/awk
+	doins d.awk duplicates.awk e.awk euppertolower.awk p.awk
+
+	diropts --group=arpwatch --mode=770
+	keepdir /var/lib/arpwatch
+	dodoc README CHANGES
+
+	newconfd "${FILESDIR}"/arpwatch.confd-r2 arpwatch
+	newinitd "${FILESDIR}"/arpwatch.initd-r2 arpwatch
+
+	systemd_dounit "${FILESDIR}/arpwatch.service"
+	systemd_install_serviced "${FILESDIR}/arpwatch.conf"
+}
+
+pkg_postinst() {
+	# Previous revisions installed /var/lib/arpwatch with the wrong
+	# ownership. Instead of the intended arpwatch:root, it was left as
+	# root:root. If we find any such mis-owned directories, we fix them,
+	# and then set the permission bits how we want them in *this*
+	# revision.
+	#
+	# The "--from" flag ensures that we only fix directories that need
+	# fixing, and the "&& chmod" ensures that we only adjust the
+	# permissions if the owner also needed fixing.
+	chown \
+		--from=root:root \
+		--no-dereference \
+		:arpwatch \
+		"${ROOT}"/var/lib/arpwatch && \
+		chmod 770 "${ROOT}"/var/lib/arpwatch
+}


             reply	other threads:[~2024-08-25 23:54 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 23:54 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 18:54 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/arpwatch/ Arthur Zamarin
2025-03-08 16:42 Arthur Zamarin
2025-03-08 14:58 Arthur Zamarin
2025-03-08 14:09 Sam James
2024-12-23 20:01 Conrad Kostecki
2024-11-14 18:41 Sam James
2024-11-14  4:35 Sam James
2024-11-14  3:39 Sam James
2024-11-14  3:17 Sam James
2024-10-25 20:15 Andreas K. Hüttel
2024-02-02 17:51 Arthur Zamarin
2024-02-02 16:27 Arthur Zamarin
2024-02-02  5:29 Sam James
2024-02-02  4:44 Sam James
2021-10-19 19:09 Jakov Smolić
2021-07-16  1:31 Yixun Lan
2021-03-26 13:40 Agostino Sarubbo
2021-03-17  9:00 Sam James
2021-03-16 12:21 Sam James
2021-03-15 21:54 Sam James
2021-03-15 21:25 Sam James
2020-06-28 16:02 Jeroen Roovers
2020-06-28 12:05 Jeroen Roovers
2020-06-28 12:05 Jeroen Roovers
2020-06-20  1:05 Aaron Bauman
2020-06-03 15:27 Agostino Sarubbo
2020-06-01 20:51 Sergei Trofimovich
2020-06-01 19:52 Sergei Trofimovich
2019-03-11  4:48 Aaron Bauman
2018-01-09 21:07 Michael Orlitzky
2017-10-20 15:42 Jeroen Roovers
2016-03-24 11:13 Jeroen Roovers
2016-03-02 13:58 Agostino Sarubbo
2016-02-22  6:01 Jeroen Roovers
2016-02-21  7:17 Jeroen Roovers
2016-02-21  7:17 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1724630027.b84c2966b528749a4044cca46f24a5e8fa8c3014.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox