]> git.pld-linux.org Git - packages/cdpr.git/blob - cdpr.spec
- tabs in preamble
[packages/cdpr.git] / cdpr.spec
1 # TODO:
2 # - prepare subpackage with cdp server
3 #
4 Summary:        Cisco Discovery Protocol Reporter
5 Summary(pl.UTF-8):      Cisco Discovery Protocol Reporter - narzędzie do śledzenia CDP
6 Name:           cdpr
7 Version:        2.2.0
8 Release:        3
9 License:        GPL v2
10 Group:          Applications/System
11 Source0:        http://www.monkeymental.com/mmfiles/%{name}-%{version}.tar.gz
12 # Source0-md5:  023b8bd6d399204a66ad728f2aa11ca3
13 URL:            http://www.monkeymental.com/nuke/
14 BuildRequires:  libpcap-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 cdpr (Cisco Discovery Protocol Reporter) shows the switch and port
19 that a machine is connected to, provided that the device supports CDP.
20 It can also optionally decode the full CDP packet. cdpr was written to
21 help network/system administrators find out about the equipment that a
22 machine is connected to. This is done by capturing and decoding a
23 Cisco Discovery Protocol (CDP) packet.
24
25 %description -l pl.UTF-8
26 cdpr (Cisco Discovery Protocol Reporter) pokazuje stan switcha i
27 portu, do którego maszyna jest podłączona, jeżeli obsługuje ona CDP.
28 Może także dekodować cały pakiet CDP. cdpr został napisany aby pomóc
29 administratorom systemu/sieci dowiedzieć się do jakiego sprzętu są
30 podłączone maszyny. Jest to robione poprzez przechwytywanie i
31 dekodowanie pakietów Cisco Discovery Protocol (CDP).
32
33 %prep
34 %setup -q
35
36 %build
37 %{__cc} %{rpmcflags} %{rpmldflags} -o cdpr cdpr.c cdprs.c conffile.c -Wall -lpcap
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 install -D cdpr $RPM_BUILD_ROOT%{_sbindir}/cdpr
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README* cdpr.conf cdprs
50 %attr(754,root,root) %{_sbindir}/cdpr
This page took 0.063874 seconds and 3 git commands to generate.