1 Summary: cpm - check for network interfaces in promiscuous mode
2 Summary(pl.UTF-8): cpm - szukanie interfejsów sieciowych w trybie promiscuous
7 Group: Networking/Admin
8 Source0: ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/%{name}/%{name}.%{version}.tar.gz
9 # Source0-md5: e689ca1c663e4c643887245f41f13a84
10 Patch0: %{name}-include.patch
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Cpm checks whether any network interface on a host is in promiscuous
15 mode. Cpm uses standard BSD Unix socket(2) and ioctl(2) system calls to
16 determine a system's configured network interfaces, and to check whether
17 any of the network interfaces are currently in promiscuous mode.
19 %description -l pl.UTF-8
20 Cpm sprawdza, czy jakiś interfejs sieciowy jest w trybie promiscuous.
21 Używa standardowych wywołań systemowych socket(2) i ioctl(2) do
22 wyszukania skonfigurowanych w systemie interfejsów sieciowych oraz do
23 sprawdzenia, czy któreś z nich jest aktualnie w trybie promiscuous.
26 %setup -q -n %{name}.%{version}
30 %{__cc} cpm.c -o cpm %{rpmcflags}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
36 install cpm $RPM_BUILD_ROOT%{_bindir}
37 install cpm.1 $RPM_BUILD_ROOT%{_mandir}/man1
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
45 %attr(755,root,root) %{_bindir}/*