diff options
Diffstat (limited to 'cdpr.spec')
-rw-r--r-- | cdpr.spec | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cdpr.spec b/cdpr.spec new file mode 100644 index 0000000..74b23cb --- /dev/null +++ b/cdpr.spec @@ -0,0 +1,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 |