From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 19 Jan 2006 14:27:29 +0200 From: Michael Shigorin To: sisyphus@lists.altlinux.org Message-ID: <20060119122729.GB20937@osdn.org.ua> Mail-Followup-To: sisyphus@lists.altlinux.org, incoming@altlinux.org, homyakov@altlinux.org, inger@altlinux.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FxlYARId5dseejUu" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: incoming@altlinux.org, homyakov@altlinux.org, inger@altlinux.org Subject: [sisyphus] NMU: arpwatch, monit X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 12:27:52 -0000 Archived-At: List-Archive: List-Post: --FxlYARId5dseejUu Content-Type: multipart/mixed; boundary="2EnvhqpWJq810sZn" Content-Disposition: inline --2EnvhqpWJq810sZn Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5. =F5 =CD=C5=CE=D1 =C5=D3=D4=D8 =C4=D7=C1 =D0=CF=C4=C7=CF=D4=CF=D7=CC=C5=CE= =CE=D9=C8 NMU -- arpwatch =C9 monit. =F0=CF=D3=CC=C5=C4=CE=C9=CA =D1 =C2=D9 =DA=C1=C2=D2=C1=CC =D7=CF=CF=C2=DD= =C5, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =D0=D2=C9=CD=C5=CE=D1=C0 =C9 =CF=C2=CE=CF= =D7=CC=D1=C0 =C4=CC=D1 =D3=C5=C2=D1 (=D3=CD. =D4=D6. backports). =F7 arpwatch =C4=CF=C2=C1=D7=CC=C5=CE=C1 =D0=CF=C4=C4=C5=D2=D6=CB=C1 syscon= fig file =C4=CC=D1 =D0=C5=D2=C5=C4=C1=DE=C9 =D0=C1=D2=C1=CD=C5=D4=D2=CF=D7 (=CE=C1=D0=D2=C9=CD=C5=D2, =C9=CE=D4=C5=D2= =C6=C5=CA=D3, =CE=C1 =CB=CF=D4=CF=D2=CF=CD =D3=CC=D5=DB=C1=D4=D8). =F3=D0=C5=CB/=C9=CE=C9=D4=D3=CB=D2=C9=D0=D4 =D0=D2=C9=CC=C1=C7=C1=C0. arpwatch =D7=DA=D7=C5=C4=A3=CE =CE=C1 =C4=CF=D0=CF=CC=CE=C9=D4=C5=CC=D8=CE= =CF=CD =D3=C5=D2=D7=C5=D2=C5 -- =D2=C1=C2=CF=D4=C1=C5=D4, monit (=D0=D2=C1=D7=C4=C1, 4.6, =CE=CF =C1=D0=D3=D4=D2=C9=CD =CE=C5 =D3=CB= =CC=CF=CE=C5=CE =CC=CF=CD=C1=D4=D8 =D7=D3=A3 =D0=CF=C4=D2=D1=C4) -- =CE=C1 =C4=D7=D5=C8 =C2=CF=C5=D7=D9=C8 =C4=C5=D6=D5=D2=D3=D4=D7=C1=C8. --=20 ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --2EnvhqpWJq810sZn Content-Type: text/plain; charset=koi8-r Content-Disposition: attachment; filename="arpwatch.spec" Content-Transfer-Encoding: quoted-printable Name: arpwatch Version: 2.1a13 Release: alt1.1 Serial: 2 Summary: Network monitoring tools for tracking IP addresses on the network. Summary(ru_RU.KOI8-R): =F5=D4=C9=CC=C9=D4=D9 =C4=CC=D1 =CF=D4=D3=CC=C5=D6= =C9=D7=C1=CE=C9=D1 =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=C9=D1 IP =C1=C4=D2=C5=D3= =CF=D7 =D7 =D3=C5=D4=C9. Group: Monitoring License: BSD Url: ftp://ftp.ee.lbl.gov Source: %url/%name-%version.tar.bz2 Source1: %name.init Patch1: %name-2.1a4-fhs.patch Patch2: %name-2.1a10-man.patch PreReq(post,preun): chkconfig Requires: MTA # Automatically added by buildreq on Thu Nov 13 2003 BuildRequires: libpcap-devel %description The %name package contains %name and arpsnmp. Arpwatch and arpsnmp are both network monitoring tools. Both utilities monitor Ethernet or FDDI network traffic and build databases of Ethernet/IP address pairs, and can report certain changes via email. Install the %name package if you need networking monitoring devices which will automatically keep traffic of the IP addresses on your network. %prep %setup -q %patch1 -p1 %patch2 -p1 %build export ac_cv_path_V_SENDMAIL=3D%_sbindir/sendmail %configure %define _vararpwatch %_localstatedir/%name %make_build ARPDIR=3D%_vararpwatch %install mkdir -p %buildroot{%_vararpwatch,%_sbindir,%_man8dir,%_initdir} mkdir -p %buildroot%_sysconfdir/sysconfig %make_install DESTDIR=3D%buildroot install install-man install -p -m755 arp2ethers massagevendor %buildroot%_vararpwatch install -p -m644 *.awk *.dat %buildroot%_vararpwatch install -p -m755 %SOURCE1 %buildroot%_initdir/%name #%__subst -p 's,#!/bin/csh.*.*,#!/bin/sh,' %buildroot%_vararpwatch/arp2ethe= rs=20 cat >> %buildroot%_sysconfdir/sysconfig/%name << EOF # additional parameters to be passed to arpwatch # e.g. to listen to particular interface, uncomment/edit this: #ARPWATCH_ARGS=3D"-i eth1" EOF %post %post_service %name %preun %preun_service %name %files %_sbindir/* %_mandir/man?/* %config(noreplace) %_initdir/%name %config(noreplace) %_sysconfdir/sysconfig/%name %dir %_vararpwatch %config(noreplace) %_vararpwatch/arp.dat %_vararpwatch/ethercodes.dat %_vararpwatch/*.awk %_vararpwatch/arp2ethers %_vararpwatch/massagevendor %doc README CHANGES %changelog * Mon Jan 16 2006 Michael Shigorin 2:2.1a13-alt1.1 - NMU: add sysconfig support - spec cleanup * Mon Mar 01 2004 Stanislav Ievlev 2:2.1a13-alt1 - 2.1a13 * Thu Nov 13 2003 Stanislav Ievlev 2:2.1a11-alt6 - new init script * Wed Nov 27 2002 Stanislav Ievlev 2:2.1a11-alt5 - fix deps on csh * Mon Nov 18 2002 Stanislav Ievlev 2:2.1a11-alt4 - rebuild - use {post/preun}_server macros * Wed May 15 2002 Dmitry V. Levin 2:2.1a11-alt3 - Updated dependencies (smtpdaemon --> MTA). * Tue Apr 09 2002 Dmitry V. Levin 2:2.1a11-alt2 - Rebuilt with libpcap-0.7.1. - Updated dependencies. * Fri Jan 04 2002 Rider 2.1a11-alt1 - 2.1a11 * Tue Jan 09 2001 Dmitry V. Levin 2.1a10-ipl2mdk - Rebuilt with libpcap-0.6.1. * Tue Oct 17 2000 Dmitry V. Levin 2.1a10-ipl1mdk - 2.1a10 - Split from tcpdump. --2EnvhqpWJq810sZn Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="arpwatch.init" #! /bin/sh # # chkconfig: - 55 45 # description: The arpwatch daemon attempts to keep track of ethernet/ip \ # address pairings. # processname: arpwatch WITHOUT_RC_COMPAT=1 # Source function library. . /etc/rc.d/init.d/functions unset ARPWATCH_ARGS # Get config. SourceIfNotEmpty /etc/sysconfig/network SourceIfNotEmpty /etc/sysconfig/arpwatch LOCKFILE=/var/lock/subsys/arpwatch RETVAL=0 start() { is_yes "$NETWORKING" || return 0 start_daemon --lockfile "$LOCKFILE" -- arpwatch "$ARPWATCH_ARGS" RETVAL=$? return $RETVAL } stop() { stop_daemon --lockfile "$LOCKFILE" -- arpwatch RETVAL=$? return $RETVAL } restart() { stop start } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status arpwatch RETVAL=$? ;; restart|reload) restart ;; condstop) if [ -f "$LOCKFILE" ]; then stop fi ;; condrestart) if [ -f "$LOCKFILE" ]; then restart fi ;; *) msg_usage "${0##*/} {start|stop|status|restart|reload|condstop|condrestart}" RETVAL=1 esac exit $RETVAL --2EnvhqpWJq810sZn-- --FxlYARId5dseejUu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDz4WxbsPDprYMm3IRApQpAKCc8LtHXTg08gfXspCdbXzeEjnslgCg21qc V6f7ejrdOn9rYr+2a3pgWbk= =eaw4 -----END PGP SIGNATURE----- --FxlYARId5dseejUu--