Name: trafshow Version: 5.2.3 Release: 6%{?dist} Summary: A tool for real-time network traffic visualization Summary(ru): ÐолноÑкÑанное оÑобÑажение ÑекÑÑего ÑеÑевого ÑÑаÑика в ÑеÑи License: BSD Group: Applications/Internet #Url: http://soft.risp.ru/trafshow/index.shtml Url: http://hubbitus.net.ru/trafshow/ # Source: ftp://ftp.nsk.su/pub/RinetSoftware/%{name}-%{version}.tgz Source: http://hubbitus.net.ru/trafshow/trafshow-5.2.3.tgz # Some hack for known machine type... So, it is not fatal, if it unknown (such as athlon) Patch0: trafshow-5.2.3-machinetype_hack_nonfatal.patch # Upstream dead, and patch related only to new GCC, as I understand Patch1: trafshow-5.2.3-elif-without_expression.patch BuildRequires: ncurses-devel libpcap-devel autoconf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description TrafShow continuously display the information regarding packet traffic on the configured network interface that match the boolean expression. It periodically sorts and updates this information. This funny program may be useful for locating suspicious network traffic on the net or to evaluate current utilization of the network interface. %description(ru) TrafShow пÑодолжиÑелÑно оÑобÑÐ°Ð¶Ð°ÐµÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ ÑеÑевом ÑÑаÑике на вÑбÑанном инÑеÑÑейÑе в ÑооÑвеÑÑÑвии Ñ Ð±ÑлевÑм вÑÑажением. ÐÑогÑамма пеÑиодиÑеÑки ÑоÑÑиÑÑÐµÑ Ð¸ обновлÑÐµÑ ÑÑÑ Ð¸Ð½ÑоÑмаÑиÑ. TrafShow Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¾ÑÐµÐ½Ñ Ð¿Ð¾Ð»ÐµÐ·Ð½Ð° Ð´Ð»Ñ ÑаÑÐ¿Ð¾Ð·Ð½Ð°Ð²Ð°Ð½Ð¸Ñ Ð¿Ð°ÑазиÑного ÑеÑевого ÑÑаÑика или Ð´Ð»Ñ Ð¾Ñенки ÑекÑÑей ÑÑилизаÑии ÑеÑевого инÑеÑÑейÑа. %prep %setup -q %patch0 -p0 -b .machinetype %patch1 -p0 -b .elif %build %__autoconf %configure make CCOPT="%optflags" %{?_smp_mflags} %install rm -rf %{buildroot} # Install stage in Mekefile incorrect, it try install in root. So, do it manually: install -d %{buildroot}%{_bindir} install %{name} %{buildroot}%{_bindir}/ install -d %{buildroot}%{_sysconfdir} install -m 0644 .%{name} %{buildroot}%{_sysconfdir}/%{name} install -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README CHANGES %config(noreplace) %{_sysconfdir}/%{name} %{_bindir}/%{name} %{_mandir}/man?/* %changelog * Sat Jul 17 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 5.2.3-6 - Changes made due review process. Thank you to Manuel Wolfshant. - Removed AUTHORS files mention as it absent now. * Sat Jul 3 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 5.2.3-5 - Add AUTHORS file as suggested by Fabian Affolter. - Repplace explicit gzip of man by simply copy. It must be compressed automatically (thanks for Fabian Affolter). - Replace $RPM_BUILD_ROOT by %%buildroot * Mon Apr 5 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 5.2.3-4 - I was forced to do fork. New URL and Source URL. * Sun Jul 19 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 5.2.3-3 - Start Fedora Review, thanks to Mads Kiilerich (some changes expired also from comment Fabian Affolter): - Previous authors of spec mentioned, but changelog history cleaned. - Comments cleaned slightly. - Remove INSTALL file from %%doc. - Add %%{?_smp_mflags} to make command. - Requires: ncurses redundant, Removed. * Thu Jul 9 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 5.2.3-2 - Initial try push into Fedora. - Add Patch0: trafshow-5.2.3-machinetype_hack_nonfatal.patch - Add Patch1: trafshow-5.2.3-elif-without_expression.patch which is break build. - Reformat with tabs. - Add BR autoconf - Correct buildroot. - Add %%{?dist} into - In configure use macroses instead of direct pathes. - Rewrite installation procedure manually. - Add file CHANGES to docs. - Group changed from Monitoring to Applications/Internet - Add default attributes in %%files section - Add cleaning buildroot in %%install - Add ncurses requires. - Add noreplace option to config. - Add summary and description in Russian language. * Mon Oct 30 2006 Pavel Alexeev <pahan@hubbitus.info> - 5.2.3-1 - Package initially imported from altlinux. Thay authors according changlog were: Fr. Br. George <george@altlinux.ru>, Konstantin Timoshenko <kt@altlinux.ru>, Michael Shigorin <mike@altlinux.ru>, Dmitry V. Levin <ldv@alt-linux.org> As it new apoch, old changelog removed. - Upgrade version to 5.2.3 - Delete Alt patches - #elif with no expression