diff options
Diffstat (limited to 'net-analyzer/arpwatch')
-rw-r--r-- | net-analyzer/arpwatch/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild | 81 | ||||
-rw-r--r-- | net-analyzer/arpwatch/arpwatch-2.1.15-r4.ebuild | 19 | ||||
-rw-r--r-- | net-analyzer/arpwatch/files/arpwatch.confd | 4 | ||||
-rw-r--r-- | net-analyzer/arpwatch/files/arpwatch.init | 36 | ||||
-rw-r--r-- | net-analyzer/arpwatch/files/arpwatch.initd (renamed from net-analyzer/arpwatch/files/arpwatch.init-2) | 2 | ||||
-rw-r--r-- | net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3 | 6 |
7 files changed, 13 insertions, 142 deletions
diff --git a/net-analyzer/arpwatch/ChangeLog b/net-analyzer/arpwatch/ChangeLog index 0ec9cfdffd56..a4a7120a0da1 100644 --- a/net-analyzer/arpwatch/ChangeLog +++ b/net-analyzer/arpwatch/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/arpwatch # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.45 2007/05/05 17:59:43 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.46 2007/06/02 22:37:16 jokey Exp $ + + 02 Jun 2007; Markus Ullmann <jokey@gentoo.org> -files/arpwatch.init-2, + files/arpwatch.confd, -files/arpwatch.init, +files/arpwatch.initd, + -arpwatch-2.1.15-r3.ebuild, arpwatch-2.1.15-r4.ebuild: + cleanup and drop old 05 May 2007; nixnut <nixnut@gentoo.org> arpwatch-2.1.15-r4.ebuild: Stable on ppc wrt bug 176697 diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild deleted file mode 100644 index 90068c1fafe7..000000000000 --- a/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2007 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.3 2007/02/01 21:09:13 jokey 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 - cp "${WORKDIR}"/arpwatch-patchset/*.8 . || die "Failed to get man-pages from arpwatch-patchset." -} - -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 arpwatch - newconfd "${FILESDIR}"/arpwatch.confd 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/arpwatch-2.1.15-r4.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r4.ebuild index 44b8c70968b1..fc8b1a1a6632 100644 --- a/net-analyzer/arpwatch/arpwatch-2.1.15-r4.ebuild +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 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-r4.ebuild,v 1.7 2007/05/05 17:59:43 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/arpwatch-2.1.15-r4.ebuild,v 1.8 2007/06/02 22:37:16 jokey Exp $ inherit eutils versionator @@ -53,25 +53,10 @@ src_install () { keepdir /var/lib/arpwatch dodoc README CHANGES - newinitd "${FILESDIR}"/arpwatch.init-2 arpwatch + newinitd "${FILESDIR}"/arpwatch.initd arpwatch newconfd "${FILESDIR}"/arpwatch.confd 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:" diff --git a/net-analyzer/arpwatch/files/arpwatch.confd b/net-analyzer/arpwatch/files/arpwatch.confd index 960454e79d79..dcf11eac077a 100644 --- a/net-analyzer/arpwatch/files/arpwatch.confd +++ b/net-analyzer/arpwatch/files/arpwatch.confd @@ -7,3 +7,7 @@ IFACES="eth0" # Additional options to pass to arpwatch. OPTIONS="-N -p" + +# Uncomment this line if you wish arpwatch to drop privileges. +# Don't forget to adjust permissions on /var/lib/arpwarch +#ARPUSER="arpwatch" diff --git a/net-analyzer/arpwatch/files/arpwatch.init b/net-analyzer/arpwatch/files/arpwatch.init deleted file mode 100644 index f4c45bf90a9c..000000000000 --- a/net-analyzer/arpwatch/files/arpwatch.init +++ /dev/null @@ -1,36 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.init,v 1.10 2007/02/01 21:09:13 jokey Exp $ - -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} ${OPTIONS} - else - start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ - /usr/sbin/arpwatch -- -i $IFACE -u ${ARPUSER} -f ${DATAFILE} ${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/files/arpwatch.init-2 b/net-analyzer/arpwatch/files/arpwatch.initd index 4929e6278c01..23e852544eff 100644 --- a/net-analyzer/arpwatch/files/arpwatch.init-2 +++ b/net-analyzer/arpwatch/files/arpwatch.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.init-2,v 1.2 2007/03/27 19:33:47 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.initd,v 1.1 2007/06/02 22:37:16 jokey Exp $ depend() { need net diff --git a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3 b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3 deleted file mode 100644 index 2095be93fb6b..000000000000 --- a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r3 +++ /dev/null @@ -1,6 +0,0 @@ -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 |