summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-07-12 23:33:39 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-07-13 22:54:34 +0200
commitca2ac6e3d32b3298c861890574c121116416da83 (patch)
tree993f7b7a222a4137072499d5448b89acee2d2eff /net-analyzer/arpwatch
parentnet-analyzer/arpwatch: migrate to GLEP 81 (diff)
downloadgentoo-ca2ac6e3d32b3298c861890574c121116416da83.tar.gz
gentoo-ca2ac6e3d32b3298c861890574c121116416da83.tar.bz2
gentoo-ca2ac6e3d32b3298c861890574c121116416da83.zip
net-analyzer/arpwatch: drop old version
Closes: https://bugs.gentoo.org/781347 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-analyzer/arpwatch')
-rw-r--r--net-analyzer/arpwatch/arpwatch-3.1-r3.ebuild80
1 files changed, 0 insertions, 80 deletions
diff --git a/net-analyzer/arpwatch/arpwatch-3.1-r3.ebuild b/net-analyzer/arpwatch/arpwatch-3.1-r3.ebuild
deleted file mode 100644
index 708a82a43c69..000000000000
--- a/net-analyzer/arpwatch/arpwatch-3.1-r3.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-DESCRIPTION="An ethernet monitor program that keeps track of ethernet/IP address pairings"
-HOMEPAGE="https://ee.lbl.gov/"
-LICENSE="BSD GPL-2"
-SLOT="0"
-
-ETHERCODES_DATE=20200628
-SRC_URI="
- https://ee.lbl.gov/downloads/${PN}/${P}.tar.gz
- https://dev.gentoo.org/~jer/ethercodes.dat-${ETHERCODES_DATE}.xz
-"
-
-KEYWORDS="amd64 ~hppa ppc sparc x86"
-IUSE="selinux"
-
-DEPEND="
- net-libs/libpcap
- sys-libs/ncurses:=
-"
-RDEPEND="
- ${DEPEND}
- selinux? ( sec-policy/selinux-arpwatch )
- virtual/mta
-"
-
-pkg_setup() {
- # We need to create /var/lib/arpwatch with this group, so it must
- # exist during src_install.
- enewgroup arpwatch
-}
-
-pkg_postinst() {
- # The user, however, is not needed until runtime.
- enewuser arpwatch -1 -1 -1 arpwatch
-}
-
-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
-}