diff --git a/.cvsignore b/.cvsignore index e69de29..56c97d2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cdpr-2.2.1.tar.gz diff --git a/cdpr.spec b/cdpr.spec new file mode 100644 index 0000000..a158c58 --- /dev/null +++ b/cdpr.spec @@ -0,0 +1,52 @@ +Name: cdpr +Version: 2.2.1 +Release: 2%{?dist} +Summary: Cisco Discovery Protocol Analyzer + +Group: Applications/System +License: GPLv2+ +URL: http://sourceforge.net/projects/cdpr/ +Source0: http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libpcap-devel + +%description +cdpr is used to decode a Cisco Disovery Protocol (CDP) packet, by default it +will report the device ID, the IP Address (of the device), and the port +number that the machine is connected to. +Optionally it will decode the entire CDP packet. + + +%prep +%setup -q + +sed -i 's/\r//g' COPYING README + +%build +make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install -p -m755 %{name} $RPM_BUILD_ROOT%{_bindir}/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING license.txt README README.cdprs +%{_bindir}/%{name} + + +%changelog +* Mon Oct 29 2007 2.2.1-2 +- Minor SPEC file cleanup from bug # 355631 + +* Tue Oct 16 2007 2.2.1-1 +- Initial RPM Build diff --git a/sources b/sources index e69de29..2f56327 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1e682e7e9c03f9b004c1f97c0ed25431 cdpr-2.2.1.tar.gz