Package trafshow-linux: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | %define origname trafshow Name: %origname-linux Version: 1.3 Release: alt6 Summary: An ncurses-based IP traffic monitoring tool License: GPL Group: Monitoring Source0: ftp://sunsite.unc.edu/pub/linux/system/network/management/%origname-%version.tar.gz Source1: %name.init Source2: %name.control Patch0: trafshow-1.3-glibc.patch Patch1: trafshow-1.3-config.patch Patch2: trafshow-1.3-make.patch Patch3: trafshow-1.3-uptime-fix Patch4: trafshow-1.3-buffer-overhead.asp.patch ExclusiveArch: %ix86 PreReq: control # Automatically added by buildreq on Sat Jan 25 2003 BuildRequires: libncurses-devel libtinfo-devel Summary(ru_RU.KOI8-R): \xeb\xcf\xce\xd3\xcf\xcc\xd8\xce\xc1\xd1 \xd5\xd4\xc9\xcc\xc9\xd4\xc1 \xcd\xcf\xce\xc9\xd4\xcf\xd2\xc9\xce\xc7\xc1 IP-\xd4\xd2\xc1\xc6\xc9\xcb\xc1 Summary(uk_UA.KOI8-U): \xeb\xcf\xce\xd3\xcf\xcc\xd8\xce\xc1 \xd5\xd4\xc9̦\xd4\xc1 \xcd\xcfΦ\xd4\xcf\xd2\xc9\xce\xc7\xd5 IP-\xd4\xd2\xc1Ʀ\xcb\xd5 %description Trafshow will continuously display an ncurses-based graphic representation of packet traffic on network interfaces. Trafshow will also periodically sort and update the traffic information, and may be useful for monitoring suspicious traffic on your network. This is Linux (1.3.x) version which is less featureful compared to BSD version (3.x) but it can monitor PPP links and is still useful. %description -l ru_RU.KOI8-R Trafshow \xcf\xc2\xc5\xd3\xd0\xc5\xde\xc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, \xd0\xc5\xd2\xc9\xcf\xc4\xc9\xde\xce\xcf \xcf\xce\xcf\xd7\xcc\xc0\xc0\xde\xc9 \xd4\xc1 \xd3\xcf\xd4\xd2\xd5\xc0\xde\xc9 \xa6\xce\xc6\xcf\xd2\xcd\xc1æ\xc0. \xe3\xc5 Linux-\xd7\xc5\xd2Ӧ\xd1 (1.3.x), \xdd\xcf \xcd\xc5\xce\xdb \xd0\xcf\xd4\xd5\xd6\xce\xc1 \xda\xc1 BSD-\xd7\xc5\xd2Ӧ\xc0 (3.x), \xc1\xcc\xc5 \xda\xc4\xc1\xd4\xce\xc1 \xd0\xd2\xc1\xc3\xc0\xd7\xc1\xd4\xc9 \xa6\xda PPP-\xa6\xce\xd4\xc5\xd2\xc6\xc5\xca\xd3\xc1\xcd\xc9 \xd4\xc1 \xc2\xc1\xc7\xc1\xd4\xd8\xcf\xcd ¦\xcc\xd8\xdb \xd3\xd0\xcf\xc4\xcf\xc2\xc1\xa4\xd4\xd8\xd3\xd1. %prep %setup -q -n %origname-%version %patch0 -p1 -b .glibc %patch1 -p1 -b .config %patch2 -p1 -b .make %patch4 -p1 -b .bof %build %make_build %install install -pD -m755 %origname %buildroot%_bindir/%name install -pD -m644 %origname.1 %buildroot%_man1dir/%name.1 #install -pD -m755 %SOURCE1 %buildroot%_initdir/%name install -pD -m755 %SOURCE2 %buildroot%_sysconfdir/control.d/facilities/%name %pre /usr/sbin/groupadd -r -f netadmin >/dev/null 2>&1 [ $1 -eq 1 ] || /usr/sbin/control-dump %name %post if [ $1 -ge 2 ]; then /usr/sbin/control-restore %name else /usr/sbin/control %name public fi %files %_bindir/* %_man1dir/* #_initdir/* %config %_sysconfdir/control.d/facilities/%name %doc TODO trafshow.lsm # TODO: make configurable and not hardwire VT & params in initscript? %changelog * Sun Apr 13 2008 Michael Shigorin <mike@altlinux.org> 1.3-alt6 - don't install initscript - drop open(1) dependency, thanks legion@ for reminder * Wed Nov 29 2006 Michael Shigorin <mike@altlinux.org> 1.3-alt5 - added ASP patch to fix off-by-one bug resulting in possible buffer overflow; thanks Andy Shevchenko <andriy asplinux com ua> for notifying me and sending a patch (I guess for making it too) * Mon Nov 17 2003 Michael Shigorin <mike@altlinux.ru> 1.3-alt4 - removed initscript from package (was non-essential, will be ported later) * Fri Mar 07 2003 Michael Shigorin <mike@altlinux.ru> 1.3-alt3 - fixed Requires (added open) * Mon Jan 27 2003 Michael Shigorin <mike@altlinux.ru> 1.3-alt2 - spec cleanup - control support - init script added (taken from Black Cat Linux package and severely modified) - Patch3 added (from BCL too) * Tue Nov 19 2002 Michael Shigorin <mike@altlinux.ru> 1.3-alt1 - built for ALT Linux - spec adapted from RH PT one - these people were improving it since 1997 at Red Hat Software: Tim Powers <timp@redhat.com> Michael Maher <mike@redhat.com> Otto Hammersmith <otto@redhat.com> |