From c6653474db2b2df01a72baf12467a443cabd611a Mon Sep 17 00:00:00 2001 From: Markus Ullmann Date: Thu, 1 Feb 2007 21:09:13 +0000 Subject: [PATCH] cleanup Package-Manager: portage-2.1.2-r1 --- net-analyzer/arpwatch/ChangeLog | 9 ++- .../arpwatch/arpwatch-2.1.11-r1.ebuild | 68 ---------------- .../arpwatch/arpwatch-2.1.15-r2.ebuild | 81 ------------------- .../arpwatch/arpwatch-2.1.15-r3.ebuild | 8 +- net-analyzer/arpwatch/files/arpwatch.confd | 6 +- net-analyzer/arpwatch/files/arpwatch.init | 26 +++--- .../arpwatch/files/digest-arpwatch-2.1.11-r1 | 6 -- .../arpwatch/files/digest-arpwatch-2.1.15-r2 | 6 -- net-analyzer/base/Manifest | 22 ++--- 9 files changed, 40 insertions(+), 192 deletions(-) delete mode 100644 net-analyzer/arpwatch/arpwatch-2.1.11-r1.ebuild delete mode 100644 net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild delete mode 100644 net-analyzer/arpwatch/files/digest-arpwatch-2.1.11-r1 delete mode 100644 net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2 diff --git a/net-analyzer/arpwatch/ChangeLog b/net-analyzer/arpwatch/ChangeLog index 13aa2f73e6fa..65384bc198a2 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.38 2006/12/11 10:31:20 pva Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/ChangeLog,v 1.39 2007/02/01 21:09:13 jokey Exp $ + + 01 Feb 2007; Markus Ullmann files/arpwatch.confd, + files/arpwatch.init, -arpwatch-2.1.11-r1.ebuild, + -arpwatch-2.1.15-r2.ebuild, arpwatch-2.1.15-r3.ebuild: + cleanup *arpwatch-2.1.15-r3 (11 Dec 2006) diff --git a/net-analyzer/arpwatch/arpwatch-2.1.11-r1.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.11-r1.ebuild deleted file mode 100644 index c91fd1b05926..000000000000 --- a/net-analyzer/arpwatch/arpwatch-2.1.11-r1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# 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.11-r1.ebuild,v 1.17 2006/06/14 10:36:22 pva Exp $ - -MY_P=arpwatch-2.1a11 -S="${WORKDIR}/${MY_P}" -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/${P}-r1.diff.gz" - -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 )" - -src_unpack() { - unpack ${A} - cd "${S}" - - einfo "Patching arpwatch with debian and redhat patches" - gzip -dc "${DISTDIR}"/${P}-r1.diff.gz | patch -s -} - -src_compile() { - - ./configure \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - || die "./configure failed" - emake || die -} - -src_install () { - dodir /var/arpwatch /usr/sbin - keepdir /var/arpwatch - - make DESTDIR="${D}" install || die - - doman *.8 - - exeinto /var/arpwatch - doexe arp2ethers arpfetch bihourly massagevendor massagevendor-old - - insinto /var/arpwatch - doins d.awk duplicates.awk e.awk euppertolower.awk p.awk - - insinto /usr/share/arpwatch - doins ethercodes.dat - - dodoc README CHANGES - exeinto /etc/init.d ; newexe "${FILESDIR}"/arpwatch.init arpwatch - - insinto /etc/conf.d - newins "${FILESDIR}"/arpwatch.confd arpwatch - -} -pkg_postinst() { - ewarn "NOTE: if you want to run arpwatch on boot then execute" - ewarn " rc-update add arpwatch default" -} diff --git a/net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild deleted file mode 100644 index 2b656bd8a65f..000000000000 --- a/net-analyzer/arpwatch/arpwatch-2.1.15-r2.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# 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.6 2006/11/23 19:49:19 blubb 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/arpwatch-2.1.15-r3.ebuild b/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild index e8afe93359e7..90068c1fafe7 100644 --- a/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild +++ b/net-analyzer/arpwatch/arpwatch-2.1.15-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# 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.2 2006/12/11 10:33:44 pva Exp $ +# $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 @@ -53,8 +53,8 @@ src_install () { keepdir /var/lib/arpwatch dodoc README CHANGES - newinitd "${FILESDIR}"/arpwatch.init-2 arpwatch - newconfd "${FILESDIR}"/arpwatch.confd-2 arpwatch + newinitd "${FILESDIR}"/arpwatch.init arpwatch + newconfd "${FILESDIR}"/arpwatch.confd arpwatch } pkg_config() { diff --git a/net-analyzer/arpwatch/files/arpwatch.confd b/net-analyzer/arpwatch/files/arpwatch.confd index fc1bae4227c9..960454e79d79 100644 --- a/net-analyzer/arpwatch/files/arpwatch.confd +++ b/net-analyzer/arpwatch/files/arpwatch.confd @@ -1,9 +1,9 @@ # Config file for /etc/init.d/arpwatch # see arpwatch.8 for more information +# execute `emerge --config arpwatch` to configure arpwatch runas unprivileged user. #IFACES="eth0 eth1" IFACES="eth0" -#ARPUSER="arpwatch" - -OPTIONS="" +# Additional options to pass to arpwatch. +OPTIONS="-N -p" diff --git a/net-analyzer/arpwatch/files/arpwatch.init b/net-analyzer/arpwatch/files/arpwatch.init index bff9abeef761..f4c45bf90a9c 100644 --- a/net-analyzer/arpwatch/files/arpwatch.init +++ b/net-analyzer/arpwatch/files/arpwatch.init @@ -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,v 1.9 2006/09/08 10:44:00 pva Exp $ +# $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 @@ -12,21 +12,25 @@ start() { do ebegin "Starting arpwatch on ${IFACE}" DATAFILE=/var/lib/arpwatch/${IFACE}.dat - if [ ! -f ${DATAFILE} ]; then - touch ${DATAFILE} - fi + [ ! -f ${DATAFILE} ] && touch ${DATAFILE} + if [ -z ${ARPUSER} ]; then - setsid /usr/sbin/arpwatch -i $IFACE -f /var/lib/arpwatch/$IFACE.dat ${OPTIONS} - eend $? + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i ${IFACE} -f ${DATAFILE} ${OPTIONS} else - setsid /usr/sbin/arpwatch -i $IFACE -u ${ARPUSER} -f /var/lib/arpwatch/$IFACE.dat ${OPTIONS} - eend $? + 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() { - ebegin "Stopping arpwatch" - killall arpwatch > /dev/null - eend $? + 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/digest-arpwatch-2.1.11-r1 b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.11-r1 deleted file mode 100644 index f93cc26746a1..000000000000 --- a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.11-r1 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 4bbdab8340cc812da6fc2fd5f0b22e0d arpwatch-2.1.11-r1.diff.gz 7550 -RMD160 3c022ea0e96953b5a5c38463241b01ca219e32d7 arpwatch-2.1.11-r1.diff.gz 7550 -SHA256 41e373ef8e43435191a9126a1cc96ed055e5bf82882e1dbdcbb48781f533df63 arpwatch-2.1.11-r1.diff.gz 7550 -MD5 9ecd00db892737431b0e524f3e52e19e arpwatch-2.1a11.tar.gz 126550 -RMD160 e5932b488fbbe34926525e2795f31d2e8b3974dc arpwatch-2.1a11.tar.gz 126550 -SHA256 98224c1d4e09fa9d42a7de8dde4cd938d20633da87d3a6d8f936c93895be5fe6 arpwatch-2.1a11.tar.gz 126550 diff --git a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2 b/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2 deleted file mode 100644 index c9129f6a2ddf..000000000000 --- a/net-analyzer/arpwatch/files/digest-arpwatch-2.1.15-r2 +++ /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 bcf9f24eaa4b76ce85545fd549f30d8c arpwatch-patchset-0.2.tbz2 15087 -RMD160 f90ab345cd902b832da88410035d04d996d3cd76 arpwatch-patchset-0.2.tbz2 15087 -SHA256 95d37ec744d52995fa44abd86bb6618993bfceec14a6252c7fcdd89f7bdef873 arpwatch-patchset-0.2.tbz2 15087 diff --git a/net-analyzer/base/Manifest b/net-analyzer/base/Manifest index 122862d170ba..b07a34aaa0c9 100644 --- a/net-analyzer/base/Manifest +++ b/net-analyzer/base/Manifest @@ -3,14 +3,14 @@ Hash: SHA1 DIST base-1.2.7.tar.gz 364282 RMD160 a078acf49da55a957f659e52f4e37f978bb1246c SHA1 6ce7af6f010d2e32f903758508987069ecb03b93 SHA256 615bdc6cd3cfb45143bff5f23d3edfed025702d572086e473506acdd745d132f DIST snortrules-pr-2.4.tar.gz 789097 RMD160 dd2179b3ce8a55699d2e1b857426e5489191a121 SHA1 b8b59754ccb59b1dcf324d2faa399326117a60e9 SHA256 19d2545a2a150dff8b4dbcbd0def389b6865c4c70f5084172d08a7b151e1a504 -EBUILD base-1.2.7-r2.ebuild 6998 RMD160 39502f2b649e71d847c780c7ef5010dc28c81d6d SHA1 d55d6700c3c64f18b1391bc4bb243f539641c160 SHA256 b30b71f7779f456da2845d69b044b8357b696a005b85f430955aa6d442b5016f -MD5 0468528eb9e5fcb060fc8836ea58b604 base-1.2.7-r2.ebuild 6998 -RMD160 39502f2b649e71d847c780c7ef5010dc28c81d6d base-1.2.7-r2.ebuild 6998 -SHA256 b30b71f7779f456da2845d69b044b8357b696a005b85f430955aa6d442b5016f base-1.2.7-r2.ebuild 6998 -MISC ChangeLog 1654 RMD160 1cf564a8c0e27e7ba1434c6458df67af406b2d97 SHA1 abd4c81bc6e918ff3fe2ed77a85a493755dcca92 SHA256 d4b8a3e4eae71103fb6e5324281ac4f884a158b08ae1579be3fcd69539592ec0 -MD5 61a90afc25f134d4ac8b865489ed2ef0 ChangeLog 1654 -RMD160 1cf564a8c0e27e7ba1434c6458df67af406b2d97 ChangeLog 1654 -SHA256 d4b8a3e4eae71103fb6e5324281ac4f884a158b08ae1579be3fcd69539592ec0 ChangeLog 1654 +EBUILD base-1.2.7-r2.ebuild 6965 RMD160 ec4c7e02fef3d7bc301a32d35dd0a64cd8d1535f SHA1 7e5c248117534011fc3aee076c5a2c7af20c9623 SHA256 83f3476be44aa2f95468875f4ff721b0b4546537de4e9fb10345bb29d36dcbe4 +MD5 6768a2e40c76a2738b3440121d456b1f base-1.2.7-r2.ebuild 6965 +RMD160 ec4c7e02fef3d7bc301a32d35dd0a64cd8d1535f base-1.2.7-r2.ebuild 6965 +SHA256 83f3476be44aa2f95468875f4ff721b0b4546537de4e9fb10345bb29d36dcbe4 base-1.2.7-r2.ebuild 6965 +MISC ChangeLog 1737 RMD160 485cdd987ef575f076af4a0fda119f81291f4a5a SHA1 a462c68680c9786999cb9c92ff80c19a1622610c SHA256 8a002a2d4f39c613045bf045ba89f4c7b3148c5709a06ee0866d85664865ba24 +MD5 060e44dcf786e9f9b74c72348ae9f646 ChangeLog 1737 +RMD160 485cdd987ef575f076af4a0fda119f81291f4a5a ChangeLog 1737 +SHA256 8a002a2d4f39c613045bf045ba89f4c7b3148c5709a06ee0866d85664865ba24 ChangeLog 1737 MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 MD5 f34e3c8858756da0001b12d2d3fa1af2 metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b metadata.xml 159 @@ -21,7 +21,7 @@ SHA256 a154b677e7e9ad994c63e952369da2a9edd4d4c4872aeb63dd72676f68a3fdf2 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) -iD8DBQFFwinqz974XjDVpbkRAsM+AJ4oFI8f2l1zHAB92/iTZWpJs3McJACgnrUw -CXEQ6Os8/XVsyMGO6QBfXGE= -=F089 +iD8DBQFFwlgBz974XjDVpbkRAotUAJ4tgO6JdZvpcz3mvDGuz1R5gVGWUACfWRdT +CB0CURmBg/8DE8VuNGOTJ7A= +=7s0D -----END PGP SIGNATURE----- -- 2.26.2