]> git.pld-linux.org Git - packages/cpm.git/blob - cpm.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/cpm.git] / cpm.spec
1 Summary:        cpm - check for network interfaces in promiscuous mode
2 Summary(pl):    cpm - znajd¼ interfejsy sieciowe w trybie promiscuous
3 Name:           cpm
4 Version:        1.2
5 Release:        1
6 License:        custom (free)
7 Group:          Networking/Admin
8 Source0:        ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/%{name}/%{name}.%{version}.tar.gz
9 Patch0:         %{name}-include.patch
10 BuildRequires:  glibc-devel
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
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.
18
19 %description -l pl
20 Cpm sprawdza, czy jaki¶ interfejs sieciowy jest w trybie promiscuous.
21 U¿ywa standardowych wywo³añ systemowych socket(2) i ioctl(2) do wyszukania
22 skonfigurowanych w systemie interfejsów sieciowych oraz do sprawdzenia,
23 czy które¶ z nich jest aktualnie w trybie promiscuous.
24
25 %prep
26 %setup -q -n %{name}.%{version}
27 %patch0 -p0
28
29 %build
30 %{__cc} cpm.c -o cpm %{rpmcflags}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%_bindir,%_mandir/man1}
35
36 install cpm   $RPM_BUILD_ROOT%{_bindir}
37 install cpm.1 $RPM_BUILD_ROOT%{_mandir}/man1
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README
45 %attr(755,root,root) %{_bindir}/*
46 %{_mandir}/man1/*
This page took 0.060301 seconds and 3 git commands to generate.