Summary: Graphical network viewer modeled after etherman Name: etherape Version: 0.9.1 Release: 2mdk License: GPL Group: Monitoring URL: http://etherape.sourceforge.net/ Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Patch0: etherape-0.9.1-desktopfile.patch.bz2 Patch1: etherape-0.9.1-gcc4.diff.bz2 Patch2: etherape-0.9.1-res_mkquery.patch.bz2 Requires: usermode-consoleonly BuildRequires: libglade2.0-devel BuildRequires: libpcap-devel BuildRequires: libgnomeui2-devel BuildRequires: autoconf2.5 BuildRequires: automake1.7 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Etherape is a graphical network monitor for Unix modeled after etherman. Featuring ether, ip and tcp modes, it displays network activity graphically. Hosts and links change in size with traffic. Color coded protocols display. It supports ethernet, ppp and slip devices. It can filter traffic to be shown, and can read traffic from a file as well as live from the network. %prep %setup -q %patch0 -p1 -b .olddesktop %patch1 -p1 -b .gcc4 %patch2 -p0 -b .res_mkquery %build export WANT_AUTOCONF_2_5=1 libtoolize --copy --force; aclocal-1.7 -I m4 ; autoconf; automake-1.7 --add-missing --copy %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std bindir=%{_sbindir} mv %{buildroot}/%{_sbindir}/etherape %{buildroot}/%{_sbindir}/etherape.real ln -sf %{_bindir}/consolehelper %{buildroot}/%{_sbindir}/etherape # menu install -d %{buildroot}/%{_menudir} cat << EOF > %{buildroot}/%{_menudir}/%{name} ?package(%{name}): \ command="%{_sbindir}/etherape" \ needs="x11" \ section="System/Monitoring" \ title="Etherape" \ longtitle="Graphical network viewer" \ icon="monitoring_section.png" EOF # pam.d install -m 755 -d %{buildroot}%{_sysconfdir}/pam.d cat > %{buildroot}%{_sysconfdir}/pam.d/%{name} << _EOF_ #%PAM-1.0 auth sufficient pam_rootok.so auth sufficient pam_timestamp.so auth required pam_stack.so service=system-auth session required pam_permit.so session optional pam_xauth.so session optional pam_timestamp.so account required pam_permit.so _EOF_ # console.apps install -m 755 -d %{buildroot}%{_sysconfdir}/security/console.apps cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} << _EOF_ USER=root PROGRAM=%{_sbindir}/etherape.real SESSION=true FALLBACK=false _EOF_ # install desktop file to new location install -D -m 644 etherape.desktop %{buildroot}%{_datadir}/applications/etherape.desktop # remove files not bundled rm -rf %{buildroot}%{_datadir}/gnome %find_lang %{name} %post %update_menus %postun %clean_menus %clean rm -fr %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING NEWS README* FAQ %config(noreplace) %{_sysconfdir}/etherape %config(noreplace) %{_sysconfdir}/pam.d/etherape %config(noreplace) %{_sysconfdir}/security/console.apps/etherape %{_sbindir}/* %{_mandir}/man1/* %{_menudir}/* %{_datadir}/%{name} %{_datadir}/pixmaps/* %{_datadir}/applications/*.desktop %changelog * Wed Jul 13 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.1-2mdk - rebuilt against new libpcap-0.9.1 (aka. a "play safe" rebuild) - added P1 and P2 from gentto * Sun Dec 26 2004 Abel Cheung <deaddog@mandrake.org> 0.9.1-1mdk - New version - P0: Update desktop file to newer convention * Sun Jan 18 2004 Abel Cheung <deaddog@deaddog.org> 0.9.0-4mdk - Include pam stuff in spec, and don't need to reauthenticate after small period of time * Wed Sep 03 2003 Michael Scherer <scherer.michael@free.fr> 0.9.0-3mdk - BuildRequires ( libglade2.0_0-devel,libgnomeui2_0-devel,libpcap-devel ) - do not use static pcap * Tue Apr 29 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.0-2mdk - adjust buildrequires * Mon Mar 24 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.0-1mdk - 0.9.0 * Tue Jan 28 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.8.2-6mdk - rebuild * Wed Jan 30 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.2-5mdk - fix menu thanks to huug <huug.2001@hccnet.nl> * Tue Jan 29 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.8.2-4mdk - icon - fix build * Thu Sep 13 2001 Daouda LO <daouda@mandrakesoft.com> 0.8.2-3mdk - consolehelper real fix (fix the security apps file). * Tue Sep 11 2001 Daouda LO <daouda@mandrakesoft.com> 0.8.2-2mdk - use usermode console helper, don't provide it. * Mon Aug 27 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.2-1mdk - updated to 0.8.2 * Thu Jul 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.7.7-1mdk - updated to 0.7.7 * Mon Apr 30 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.9-1mdk - updated to 0.6.9 * Fri Jan 05 2001 David BAUDENS <baudens@mandrakesoft.com> 0.5.6-2mdk - Use %%make macro - Own %%_datadir/etherape - s/Copyright/Licence - Requires: usermode * Mon Oct 30 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.5.6-1mdk - first Mandrake release - included support for consolehelper since etherape can only be run as root