Name: cdpr Version: 2.4 Release: 1 Summary: Cisco Discovery Protocol Analyzer Group: Applications/System License: GPLv2+ URL: http://sourceforge.net/projects/cdpr/ Source0: http://www.monkeymental.com/mmfiles/%{name}-%{version}.tgz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libpcap-devel >= 0.9.8-2, sed Requires: libpcap >= 0.9.8-2 %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 %patch0 export PATH=/opt/freeware/bin:$PATH sed -i 's/\r//g' COPYING README %build make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp %{name} ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/%{name} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc COPYING license.txt README README.cdprs %{_bindir}/%{name} /usr/bin/%{name} %changelog * Tue Aug 09 2011 Michael Perzl - 2.4-1 - first version for AIX V5.1 and higher