diff options
author | Peter Volkov <pva@gentoo.org> | 2010-09-18 16:15:35 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-09-18 16:15:35 +0000 |
commit | c3b37f797f415ec3533195a9d46b97923a26d107 (patch) | |
tree | dc73a0d391b16f991ceeb52b2b32578cbf9fa511 /net-analyzer | |
parent | sparc stable wrt #328351 (diff) | |
download | gentoo-2-c3b37f797f415ec3533195a9d46b97923a26d107.tar.gz gentoo-2-c3b37f797f415ec3533195a9d46b97923a26d107.tar.bz2 gentoo-2-c3b37f797f415ec3533195a9d46b97923a26d107.zip |
Respect ldflags, bug #337908, thank Diego E. 'Flameeyes' Pettenò for report. Bump EAPI. Update ethercodes.dat.
(Portage version: 2.1.9.7/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/arpwatch/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild | 64 |
2 files changed, 71 insertions, 1 deletions
diff --git a/net-analyzer/arpwatch/ChangeLog b/net-analyzer/arpwatch/ChangeLog index 63427cd6b0c8..73c63eeacb7a 100644 --- a/net-analyzer/arpwatch/ChangeLog +++ b/net-analyzer/arpwatch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/arpwatch # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.54 2010/04/12 12:53:41 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.55 2010/09/18 16:15:35 pva Exp $ + +*arpwatch-2.1.15-r6 (18 Sep 2010) + + 18 Sep 2010; Peter Volkov <pva@gentoo.org> +arpwatch-2.1.15-r6.ebuild: + Respect ldflags, bug #337908, thank Diego E. 'Flameeyes' Pettenò for + report. Bump EAPI. Update ethercodes.dat. 12 Apr 2010; Alexis Ballier <aballier@gentoo.org> arpwatch-2.1.15-r5.ebuild: diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild new file mode 100644 index 000000000000..cbb6bf792822 --- /dev/null +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 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-r6.ebuild,v 1.1 2010/09/18 16:15:35 pva Exp $ + +EAPI="2" +inherit eutils versionator + +PATCH_VER="0.5" + +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 ~x86-fbsd" +IUSE="selinux" + +DEPEND="virtual/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 "Failed to get man-pages from arpwatch-patchset." +} + +src_install () { + dosbin arpwatch arpsnmp arp2ethers massagevendor arpfetch bihourly.sh || die + doman arpwatch.8 arpsnmp.8 arp2ethers.8 massagevendor.8 arpfetch.8 bihourly.8 || die + + insinto /usr/share/arpwatch + doins ethercodes.dat || die + + insinto /usr/share/arpwatch/awk + doins duplicates.awk euppertolower.awk p.awk e.awk d.awk || die + + keepdir /var/lib/arpwatch + dodoc README CHANGES || die + + newinitd "${FILESDIR}"/arpwatch.initd arpwatch || die + newconfd "${FILESDIR}"/arpwatch.confd arpwatch || die +} + +pkg_postinst() { + # Workaround bug #141619 put this in src_install when bug'll be fixed. + chown arpwatch:0 "${ROOT}var/lib/arpwatch" + + elog "For security reasons arpwatch by default runs as an unprivileged user." + elog + elog "Note: some scripts require snmpwalk utility from net-analyzer/net-snmp" +} |