summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/arpwatch/ChangeLog12
-rw-r--r--net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild81
-rw-r--r--net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r36
3 files changed, 98 insertions, 1 deletions
diff --git a/net-analyzer/arpwatch/ChangeLog b/net-analyzer/arpwatch/ChangeLog
index 45a468712687..13aa2f73e6fa 100644
--- a/net-analyzer/arpwatch/ChangeLog
+++ b/net-analyzer/arpwatch/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-analyzer/arpwatch
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.37 2006/11/23 19:49:19 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.38 2006/12/11 10:31:20 pva Exp $
+
+*arpwatch-2.1.15-r3 (11 Dec 2006)
+
+ 11 Dec 2006; Peter Volkov <pva@gentoo.org>
+ -files/arpwatch-2.1.13-lostparams.patch, -arpwatch-2.1.13-r2.ebuild,
+ -arpwatch-2.1.13-r3.ebuild, -arpwatch-2.1.15.ebuild,
+ -arpwatch-2.1.15-r1.ebuild, +arpwatch-2.1.15-r3.ebuild:
+ Added patches to disable reports of new station and disable reverse DNS
+ lookups. Thank Mario Santana <msantana at terremark.com> for providing them.
+ Cleaned out old versions.
23 Nov 2006; <blubb@gentoo.org> arpwatch-2.1.15-r2.ebuild:
stable on amd64
diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild
new file mode 100644
index 000000000000..ace68c865fc6
--- /dev/null
+++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild,v 1.1 2006/12/11 10:31:20 pva Exp $
+
+inherit eutils versionator
+
+PATCH_VER="0.3"
+
+MY_P="${PN}-$(replace_version_separator 2 'a')"
+DESCRIPTION="An ethernet monitor program that keeps track of ethernet/ip address pairings"
+HOMEPAGE="http://www-nrg.ee.lbl.gov/"
+SRC_URI="ftp://ftp.ee.lbl.gov/${MY_P}.tar.gz
+ mirror://gentoo/arpwatch-patchset-${PATCH_VER}.tbz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc sparc x86"
+IUSE="selinux"
+
+DEPEND="virtual/libpcap
+ sys-libs/ncurses"
+
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-arpwatch )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ EPATCH_SOURCE="${WORKDIR}"/arpwatch-patchset/
+ EPATCH_SUFFIX="patch"
+ epatch
+ mv "${WORKDIR}"/arpwatch-patchset/*.8 .
+}
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+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.init-2 arpwatch
+ newconfd "${FILESDIR}"/arpwatch.confd-2 arpwatch
+}
+
+pkg_config() {
+ enewgroup arpwatch
+ enewuser arpwatch -1 -1 /var/lib/arpwatch arpwatch
+
+ einfo "Setting permitions for data directory"
+ chown -R arpwatch:arpwatch /var/lib/arpwatch
+
+ cat >> /etc/conf.d/arpwatch << EOF
+
+# Uncomment this line if you wish arpwatch to drop privileges.
+ARPUSER="arpwatch"
+EOF
+ einfo "Done."
+}
+
+pkg_postinst() {
+ elog "For security reasons it is better to run arpwatch as an unprivileged user."
+ elog "If you wish to do so, please, run:"
+ elog " emerge --config arpwatch"
+ echo
+ ewarn "Note: some scripts require snmpwalk utility from net-analyzer/net-snmp"
+}
diff --git a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3 b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3
new file mode 100644
index 000000000000..2095be93fb6b
--- /dev/null
+++ b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3
@@ -0,0 +1,6 @@
+MD5 cebfeb99c4a7c2a6cee2564770415fe7 arpwatch-2.1a15.tar.gz 202729
+RMD160 a27ee53275dcec3cafb85eb3df2451d42ec32b0c arpwatch-2.1a15.tar.gz 202729
+SHA256 c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898 arpwatch-2.1a15.tar.gz 202729
+MD5 baf2334920b032cce0d01decf049d5b3 arpwatch-patchset-0.3.tbz2 15934
+RMD160 5e21ac57fa5beca751d1d5a42ea3632e70ee953e arpwatch-patchset-0.3.tbz2 15934
+SHA256 7721f983ea21f5e0bfb265982e59d0de9d76f1021abf2c2e359f91805922bfe3 arpwatch-patchset-0.3.tbz2 15934