From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/arpwatch/Manifest | 8 ++++ net-analyzer/arpwatch/arpwatch-2.1.15-r8.ebuild | 62 +++++++++++++++++++++++++ net-analyzer/arpwatch/files/arpwatch.confd | 11 +++++ net-analyzer/arpwatch/files/arpwatch.initd | 36 ++++++++++++++ net-analyzer/arpwatch/metadata.xml | 16 +++++++ 5 files changed, 133 insertions(+) create mode 100644 net-analyzer/arpwatch/Manifest create mode 100644 net-analyzer/arpwatch/arpwatch-2.1.15-r8.ebuild create mode 100644 net-analyzer/arpwatch/files/arpwatch.confd create mode 100644 net-analyzer/arpwatch/files/arpwatch.initd create mode 100644 net-analyzer/arpwatch/metadata.xml (limited to 'net-analyzer/arpwatch') diff --git a/net-analyzer/arpwatch/Manifest b/net-analyzer/arpwatch/Manifest new file mode 100644 index 000000000000..596b13e2c4f3 --- /dev/null +++ b/net-analyzer/arpwatch/Manifest @@ -0,0 +1,8 @@ +AUX arpwatch.confd 270 SHA256 bf36f7b717291733787bd00ac22d49dafc251cd50fcc27266d56d51364fd62fa SHA512 901375c1031c776f159cc526662e727be41dd9630037a492b718c9cc48d2fb580b22bcdf90a84a02049924e67fb84a2668e3519a7ab24e6c8ad07d20cc5adf41 WHIRLPOOL d6f691d769f2320870061667b241e8504207e1e326ab9c6cdede575f2e34696fc3f722a8038044c500855ff361c7f64aa3a64e3086b2c03665d41cabc1c32c35 +AUX arpwatch.initd 991 SHA256 d1b6667f2abf5910b6b1d845049b6504faa3346cc8cc4744a8314e4fad0d3672 SHA512 de62ab2026bb04f557731b741023b6fc2333656f4709226459e8bb17fee2959ad9e24077eae730443efa3736b6f0268c474ca65905c371d228c2f2869ec4986e WHIRLPOOL 36c4a091b888f69ca3a17b2a9e494c2162ea7a01bd7cd521b645009028855ec621936a867a9fb4b362b59cfde1e82414a2a6e1eb5ed44295fe0fa87b13376315 +DIST arpwatch-2.1a15.tar.gz 202729 SHA256 c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898 SHA512 f770b5b7954afe910dafb016e6e886a4e785564bcdc0ea0de9d7b1ca6a9a0b219a9d1b50b6f42a67afc2f836e782e8ff85ba5780583015d62c9694ac53f0bf90 WHIRLPOOL e653eb83d8dbc8777c3aaa5920bc1e5b46c64aa740c64a79b24a42abdee4625baa72a51f9f0441549b7325fcb07b94f1964887df1b6d707eddde162e1073691f +DIST arpwatch-patchset-0.7.tar.xz 132868 SHA256 ccc3f84f452306b153175bbdec33f9913848ac57866a4ee52b974d7087b7fe48 SHA512 2cbfa37acd29c30232da9ad0a742ddc9cd35c228fb786c6798555962841006ba0f47e31097722a3303e25f2e7c665b6e93707e49c02a8a9171b484b56a133e00 WHIRLPOOL f6624f459f2172b10beb6eaa15e0e5111566cd360195e4ca08ec4e5962bb1156aaf133701730e8146cb049a9759f7063bbc225d99f824827bb8bb72d3e0cebb3 +EBUILD arpwatch-2.1.15-r8.ebuild 1388 SHA256 25b638af397f39831891ead4ad2d001a460e64d41d753f2d936ae6a05b1c0f7c SHA512 73e3289f751cce19f522353c68b65d7222561adc70e79f58b848344487258c744541b03179bf712a38ed81f3565bb41c1262aa78eaa2ede1314a9751353fb0fe WHIRLPOOL a9301dd755f82d55e8bc3eee5879f2c5b19b8162c4b299c3e7d4a8936d410b17d67131d84e99aa71ea7f32ba58ddde36bee8a304ead31598881a3f8167e69856 +MISC ChangeLog 4319 SHA256 6e635c33144ae5f6e740999ffa3fdc17db6c040bf2a6c8d2a7da89153b7e3e6f SHA512 29e6a5722940d97daccf157d21ed8d4fb710b8f2bc830dd94f087db73969ffd5a3fdf5645782370c80f1297c7538830c05303aa9824a11eb1a6466b502232afb WHIRLPOOL f61b3a72ed41351d56ce1e6e86374a70e0a20fe855af726396c1d1dde76767eeefbbb5507233347c08eb5c26a3665cba537693766b540009e5d0b91d9c169c3e +MISC ChangeLog-2015 9831 SHA256 4153a9e3c6c41d9496069c5130a8cd519ab5af0aea06be84e06dd774b7cc33b2 SHA512 c54e6fcf6ac25e9acb8ca7032b50ab4bc99443296fc1c7febb8edc2cf75cf455a3804613ea298a1c524e81e75e94978a12a084d7a35dec5141415a8063e2cdee WHIRLPOOL 5a806fc2a61e371177f23d9c7f876af1ed8ce9d089453b2baf5aee42c6647984b63ebb2c32e781b27e2a402bb1f1a7be4cb5b62d8046d0264761c900faf1948a +MISC metadata.xml 741 SHA256 66eb596411f77ea8a0cd155225113f33021c8d6272743cd9e094fb1568fdc6cf SHA512 0db051d36fb16c5a50239a243ca46f686e71b13387330bf98df46c9af3389d16e9842b89c15d2e6fb3fba867e5a0b36a2fd745480588ba621e117ee86aadbd00 WHIRLPOOL ce532cc877efc26d1fae3b1dcff1b483b6e97efd2f1b11acade6c541591860b7982e2fdff48f9ef4afc7479b43512a5ba52bc4b9d3de3c66c6b461af663187a0 diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r8.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r8.ebuild new file mode 100644 index 000000000000..d6e8e99955c9 --- /dev/null +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r8.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils user versionator + +PATCH_VER="0.7" + +MY_P="${PN}-$(replace_version_separator 2 'a')" +DESCRIPTION="An ethernet monitor program that keeps track of ethernet/ip address pairings" +HOMEPAGE="http://ee.lbl.gov/" +SRC_URI=" + ftp://ftp.ee.lbl.gov/${MY_P}.tar.gz + https://dev.gentoo.org/~jer/arpwatch-patchset-${PATCH_VER}.tar.xz +" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ppc sparc x86 ~x86-fbsd" +IUSE="selinux" + +DEPEND=" + net-libs/libpcap + sys-libs/ncurses:* +" + +RDEPEND=" + ${DEPEND} + selinux? ( sec-policy/selinux-arpwatch ) +" + +S=${WORKDIR}/${MY_P} + +pkg_preinst() { + enewuser arpwatch +} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}"/arpwatch-patchset/ EPATCH_SUFFIX="patch" epatch + cp "${WORKDIR}"/arpwatch-patchset/*.8 . || die +} + +src_install () { + dosbin arpwatch arpsnmp arp2ethers massagevendor arpfetch bihourly.sh + doman arpwatch.8 arpsnmp.8 arp2ethers.8 massagevendor.8 arpfetch.8 bihourly.8 + + insinto /usr/share/arpwatch + doins ethercodes.dat + + insinto /usr/share/arpwatch/awk + doins duplicates.awk euppertolower.awk p.awk e.awk d.awk + + keepdir /var/lib/arpwatch + dodoc README CHANGES + + newinitd "${FILESDIR}"/arpwatch.initd arpwatch + newconfd "${FILESDIR}"/arpwatch.confd arpwatch +} + +pkg_postinst() { + fowners arpwatch:0 "${ROOT}"/var/lib/arpwatch +} diff --git a/net-analyzer/arpwatch/files/arpwatch.confd b/net-analyzer/arpwatch/files/arpwatch.confd new file mode 100644 index 000000000000..98abe0417740 --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.confd @@ -0,0 +1,11 @@ +# Config file for /etc/init.d/arpwatch +# see arpwatch.8 for more information + +#IFACES="eth0 eth1" +IFACES="eth0" + +# Additional options to pass to arpwatch. +OPTIONS="-N -p" + +# Comment this line if you wish arpwatch to run as root user (not recommended) +ARPUSER="arpwatch" diff --git a/net-analyzer/arpwatch/files/arpwatch.initd b/net-analyzer/arpwatch/files/arpwatch.initd new file mode 100644 index 000000000000..5569dcee2527 --- /dev/null +++ b/net-analyzer/arpwatch/files/arpwatch.initd @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + for IFACE in ${IFACES} + do + ebegin "Starting arpwatch on ${IFACE}" + DATAFILE=/var/lib/arpwatch/${IFACE}.dat + [ ! -f ${DATAFILE} ] && touch ${DATAFILE} + + if [ -z ${ARPUSER} ]; then + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i ${IFACE} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + else + chown ${ARPUSER} ${DATAFILE} + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i $IFACE -u ${ARPUSER} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + fi + eend $? + done +} + +stop() { + for IFACE in ${IFACES} + do + ebegin "Stopping arpwatch on ${IFACE}" + start-stop-daemon --stop --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch + eend $? + done +} diff --git a/net-analyzer/arpwatch/metadata.xml b/net-analyzer/arpwatch/metadata.xml new file mode 100644 index 000000000000..45a63182fe02 --- /dev/null +++ b/net-analyzer/arpwatch/metadata.xml @@ -0,0 +1,16 @@ + + + + + netmon@gentoo.org + Gentoo network monitoring and analysis project + + + The arpwatch package contains arpwatch and arpsnmp. Arpwatch and arpsnmp + are both network monitoring tools. Both utilities monitor Ethernet or + FDDI network traffic and build databases of Ethernet/IP address pairs, + and can report certain changes via email. Install the arpwatch package + if you need networking monitoring devices which will automatically keep + track of the IP addresses on your network. + + -- cgit v1.2.3