summaryrefslogtreecommitdiff
path: root/cdpr.spec
blob: 74b23cb785df31c3806d621be9fc34aa7bfd3c27 (plain)
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
Summary:	Cisco Discovery Protocol Reporter
Summary(pl):	Cisco Discovery Protocol Reporter
Name:		cdpr
Version:	1.0.2
Release:	1
License:	GPL v2
Group:		Applications/System
Source0:	http://www.monkeymental.com/mmfiles/%{name}-%{version}.tgz
URL:		http://www.monkeymental.com/nuke/
BuildRequires:	libpcap-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
cdpr (Cisco Discovery Protocol Reporter) shows the switch and port
that a machine is connected to, provided that the device supports CDP.
It can also optionally decode the full CDP packet. cdpr was written to
help network/system administrators find out about the equipment that a
machine is connected to. This is done by capturing and decoding a
Cisco Discovery Protocol (CDP) packet.

%description -l pl
cdpr (Cisco Discovery Protocol Reporter) pokazuje stan switcha i
portu, do którego maszyna jest podłączona, jeżeli obsługuje ona CDP.
Może także dekodować cały pakiet CDP. cdpr został napisany aby pomóc
administratorom systemu/sieci dowiedzieć się do jakiego sprzętu są
podłączone maszyny. Jest to robione poprzez przechwytywanie i
dekodowanie pakietów Cisco Discovery Protocol (CDP).

%prep
%setup -q

%build
%{__cc} %{rpmcflags} %{rpmldflags} -o cdpr cdpr.c -Wall -lpcap

%install
rm -rf $RPM_BUILD_ROOT
install -D cdpr $RPM_BUILD_ROOT%{_sbindir}/cdpr

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%attr(754,root,root) %{_sbindir}/cdpr