summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2006-09-24 06:30:51 +0000
committerPeter Volkov <pva@gentoo.org>2006-09-24 06:30:51 +0000
commit7b08d34f708ac4621bf7b4afabddd6f8ee3d0f0f (patch)
tree79e0d19495e29eaa7bf1df736a3244e8f7896354 /net-analyzer/arpwatch
parentVersion bumped. (diff)
downloadgentoo-2-7b08d34f708ac4621bf7b4afabddd6f8ee3d0f0f.tar.gz
gentoo-2-7b08d34f708ac4621bf7b4afabddd6f8ee3d0f0f.tar.bz2
gentoo-2-7b08d34f708ac4621bf7b4afabddd6f8ee3d0f0f.zip
Added nofork patch as reported/requested by Dan Davis in bug #125700.
(Portage version: 2.1.1)
Diffstat (limited to 'net-analyzer/arpwatch')
-rw-r--r--net-analyzer/arpwatch/ChangeLog7
-rw-r--r--net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild81
-rw-r--r--net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r26
3 files changed, 93 insertions, 1 deletions
diff --git a/net-analyzer/arpwatch/ChangeLog b/net-analyzer/arpwatch/ChangeLog
index 28b84100ec51..71d74a96960f 100644
--- a/net-analyzer/arpwatch/ChangeLog
+++ b/net-analyzer/arpwatch/ChangeLog
@@ -1,6 +1,11 @@
# 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.29 2006/09/23 19:10:29 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.30 2006/09/24 06:30:51 pva Exp $
+
+*arpwatch-2.1.15-r2 (24 Sep 2006)
+
+ 24 Sep 2006; Peter Volkov <pva@gentoo.org> +arpwatch-2.1.15-r2.ebuild:
+ Added nofork patch as reported/requested by Dan Davis in bug #125700.
*arpwatch-2.1.15-r1 (23 Sep 2006)
diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild
new file mode 100644
index 000000000000..cd704f904049
--- /dev/null
+++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r2.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-r2.ebuild,v 1.1 2006/09/24 06:30:51 pva Exp $
+
+inherit eutils versionator
+
+PATCH_VER="0.2"
+
+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-r2 b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2
new file mode 100644
index 000000000000..c9129f6a2ddf
--- /dev/null
+++ b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2
@@ -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 bcf9f24eaa4b76ce85545fd549f30d8c arpwatch-patchset-0.2.tbz2 15087
+RMD160 f90ab345cd902b832da88410035d04d996d3cd76 arpwatch-patchset-0.2.tbz2 15087
+SHA256 95d37ec744d52995fa44abd86bb6618993bfceec14a6252c7fcdd89f7bdef873 arpwatch-patchset-0.2.tbz2 15087