From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31B091382C5 for ; Mon, 15 Mar 2021 20:21:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F038E081E; Mon, 15 Mar 2021 20:21:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 444BBE081E for ; Mon, 15 Mar 2021 20:21:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EEBA0335DA1 for ; Mon, 15 Mar 2021 20:21:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35A154F1 for ; Mon, 15 Mar 2021 20:20:59 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1615839586.8245121a7b25edc276225f09c134fe85da61b089.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/arpwatch/, net-analyzer/arpwatch/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/arpwatch/arpwatch-3.1-r1.ebuild net-analyzer/arpwatch/arpwatch-3.1.ebuild net-analyzer/arpwatch/files/arpwatch.conf net-analyzer/arpwatch/files/arpwatch.service X-VCS-Directories: net-analyzer/arpwatch/ net-analyzer/arpwatch/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8245121a7b25edc276225f09c134fe85da61b089 X-VCS-Branch: master Date: Mon, 15 Mar 2021 20:20:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2197ed1c-7aa4-4c2c-a75c-1477c085b4b5 X-Archives-Hash: c5078ad7993a03c61f204b4b118592d8 commit: 8245121a7b25edc276225f09c134fe85da61b089 Author: Sam James gentoo org> AuthorDate: Mon Mar 15 20:19:46 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 15 20:19:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8245121a net-analyzer/arpwatch: install systemd unit Thanks-to: Ryan James gmail.com> Closes: https://bugs.gentoo.org/648572 Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> .../{arpwatch-3.1.ebuild => arpwatch-3.1-r1.ebuild} | 8 ++++++-- net-analyzer/arpwatch/files/arpwatch.conf | 16 ++++++++++++++++ net-analyzer/arpwatch/files/arpwatch.service | 16 ++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/net-analyzer/arpwatch/arpwatch-3.1.ebuild b/net-analyzer/arpwatch/arpwatch-3.1-r1.ebuild similarity index 92% rename from net-analyzer/arpwatch/arpwatch-3.1.ebuild rename to net-analyzer/arpwatch/arpwatch-3.1-r1.ebuild index 64ae0f6ef45..bca29a3a678 100644 --- a/net-analyzer/arpwatch/arpwatch-3.1.ebuild +++ b/net-analyzer/arpwatch/arpwatch-3.1-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit user + +inherit systemd user DESCRIPTION="An ethernet monitor program that keeps track of ethernet/IP address pairings" HOMEPAGE="https://ee.lbl.gov/" @@ -60,6 +61,9 @@ src_install() { 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() { diff --git a/net-analyzer/arpwatch/files/arpwatch.conf b/net-analyzer/arpwatch/files/arpwatch.conf new file mode 100644 index 00000000000..070f0edad80 --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.conf @@ -0,0 +1,16 @@ +# Config file for /etc/systemd/system/arpwatch +# see arpwatch.8 for more information + +IFACES=-i eno1 + +# Location of the PID file +PIDFILE=-P /run/arpwatch.pid + +# Additional options to pass to arpwatch. +OPTIONS=-N -p -Q -D + +# Where to store the data (default is /usr/share/arpwatch) +DATA=-f /var/log/arpwatch/eno1.dat + +# Comment this line if you wish arpwatch to run as root user (not recommended) +RUNUSER=-u arpwatch diff --git a/net-analyzer/arpwatch/files/arpwatch.service b/net-analyzer/arpwatch/files/arpwatch.service new file mode 100644 index 00000000000..943e3146f8d --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.service @@ -0,0 +1,16 @@ +[Unit] +Description=Ethernet monitoring program that tracks net/IP pairings +Documentation=man:arpwatch(8) +Conflicts= +After=systemd-networkd.service + +PIDFILE=/run/arpwatch.pid + +[Service] +Type=forking +ExecStartPre=/bin/rm -f /run/arpwatch.pid +ExecStart=/usr/sbin/arpwatch $IFACES $PIDFILE $RUNUSER $OPTIONS $DATA +Restart=on-abort + +[Install] +Alias=arpwatchd.service