Jan Zeleny a3e201a
Name:           lldpad
14868ab
Version:        0.9.41
Petr Sabata b355825
Release:        4%{?dist}
Jan Zeleny a3e201a
Summary:        Intel LLDP Agent
Jan Zeleny a3e201a
Jan Zeleny a3e201a
Group:          System Environment/Daemons
Jan Zeleny a3e201a
License:        GPLv2
14868ab
URL:            http://open-lldp.org/
b63f874
# git://open-lldp.org/lldp-open-lldp.git
14868ab
Source0:        %{name}-%{version}.tar.bz2
b63f874
# Generic Fedora patches
14868ab
Patch0:         lldpad-0.9.41-init.patch
14868ab
Patch1:         lldpad-0.9.41-make.patch
14868ab
Patch2:         lldpad-0.9.41-lldptool-invalid-pointer.patch
b63f874
# Upstream bugfixes
b63f874
Patch101:       lldpad-0.9.41-new-rework-of-VDP-code-towards-newer-drafts.patch
b63f874
Patch102:       lldpad-0.9.41-bugfix-set-configured-capabilities-as-well.patch
b63f874
Patch103:       lldpad-0.9.41-bugfix-state-ECP_TX_IDLE-no-longer-exists.patch
b63f874
Patch104:       lldpad-0.9.41-cleanup-change-request-from-mode-to-boolean.patch
b63f874
Patch105:       lldpad-0.9.41-new-change-the-ECP-ack-timer-from-RTE-based-to-fixed.patch
b63f874
Patch106:       lldpad-0.9.41-new-change-VDP-ACK-timer-value.patch
b63f874
Patch107:       lldpad-0.9.41-new-call-VDP-station-state-machine-on-demand.patch
b63f874
Patch108:       lldpad-0.9.41-robustness-proper-handling-of-LINK_DOWN-UP.patch
b63f874
Patch109:       lldpad-0.9.41-Fix-README-mailing-list-address.patch
b63f874
Patch110:       lldpad-0.9.41-event-if-always-reject-request-if-link-is-down.patch
b63f874
Patch111:       lldpad-0.9.41-no-error-if-the-profile-already-exists.patch
b63f874
Patch112:       lldpad-0.9.41-fix-potential-crash-after-link-up.patch
b63f874
Patch113:       lldpad-0.9.41-cleanup-only-print-profiles-that-are-removed.patch
b63f874
Patch114:       lldpad-0.9.41-handle-negative-response-in-VDP-state-machine.patch
b63f874
Patch115:       lldpad-0.9.41-be-sure-to-stop-timers-on-VSI_EXIT.patch
b63f874
Patch116:       lldpad-0.9.41-rework-ecp-timer-code-towards-newer-drafts.patch
b63f874
Patch117:       lldpad-0.9.41-check-if-port-is-enabled-for-RxTx.patch
b63f874
Patch118:       lldpad-0.9.41-generic-renamed-find_module_user_data_by_if.patch
b63f874
Patch119:       lldpad-0.9.41-fix-memory-leak-in-vdp_indicate.patch
b63f874
Patch120:       lldpad-0.9.41-always-flag-changed-profile-in-vdp_add_profile.patch
b63f874
Patch121:       lldpad-0.9.41-consolidate-ecp_somethingChangedlocal.patch
b63f874
Patch122:       lldpad-0.9.41-prevent-forgotten-ECP-frame-for-vsi-type.patch
b63f874
Patch123:       lldpad-0.9.41-lldpad-malloc-could-fail-in-clif_attach_helper.patch
b63f874
Patch124:       lldpad-0.9.41-lldpad-remove-unused-cmd_buf-variable-in-clif_reques.patch
b63f874
Patch125:       lldpad-0.9.41-add-pointer-about-EVB-and-VDP-to-manpage.patch
b63f874
Patch126:       lldpad-0.9.41-add-configuration-info-for-EVB-and-VDP-to-manpage.patch
b63f874
Patch127:       lldpad-0.9.41-bugfix-in-bridge-implementation.patch
b63f874
Patch128:       lldpad-0.9.41-add-a-vdp_vsi-to-count-nr-of-VSIs.patch
b63f874
Patch129:       lldpad-0.9.41-rework-EVB-TLV-code.patch
b63f874
Patch130:       lldpad-0.9.41-bugfix-avoid-failed-query-of-vdp-role.patch
b63f874
Patch131:       lldpad-0.9.41-allow-VSI-sm-state-change-from-ASSOC-to-PREASSOC_P.patch
b63f874
Patch132:       lldpad-0.9.41-avoid-duplicate-deassociation.patch
b63f874
Patch133:       lldpad-0.9.41-allow-caching-of-deassociate-requests-via-netlink.patch
b63f874
Patch134:       lldpad-0.9.41-lldpad-DCBx-remove-unused-bchange-value.patch
b63f874
Patch135:       lldpad-0.9.41-lldpad-dcbx-netlink-cleanup.patch
b63f874
Patch136:       lldpad-0.9.41-lldpad-rtnl_recv_operstate-uses-incorrect-recv-lengt.patch
b63f874
Patch137:       lldpad-0.9.41-lldpad-remove-cur_peer-and-last_peer-from-DCBx.patch
b63f874
Patch138:       lldpad-0.9.41-lldpad-FCoE-app-data-never-sent-to-kernel.patch
b63f874
Patch139:       lldpad-0.9.41-lldpad-iSCSI-subtype-does-not-send-kernel-setapp-nlm.patch
b63f874
Patch140:       lldpad-0.9.41-lldpad-remove-print-statements-that-are-not-helpful.patch
b63f874
Patch141:       lldpad-0.9.41-lldpad-DCBx-should-not-free-TLV-type-0.patch
b63f874
Patch142:       lldpad-0.9.41-lldpad-add-802.1Qaz-attributes-to-dcbnl.h.patch
b63f874
Patch143:       lldpad-0.9.41-lldpad-add-802.1Qaz-nlmsg-set-query-support.patch
b63f874
Patch144:       lldpad-0.9.41-lldpad-get-functions-for-Local-and-Remote-MAC-addres.patch
b63f874
Patch145:       lldpad-0.9.41-lldpad-invalidate-peer-rx-frame-after-TTL.patch
b63f874
Patch146:       lldpad-0.9.41-lldpad-cleanup-fix-check-in-gettlv-for-null-ptr-tlvs.patch
b63f874
Patch147:       lldpad-0.9.41-lldpad-initialize-ports-after-netlink-interface-is-c.patch
b63f874
Patch148:       lldpad-0.9.41-lldpad-dormantTimer-should-not-be-touched-by-modules.patch
b63f874
Patch149:       lldpad-0.9.41-lldpad-dcbx-dropped-ifdown-messages-breaks-module.patch
b63f874
Patch150:       lldpad-0.9.41-lldpad-DCB-remove-iSCSI-tc-qdisc-and-filters.patch
b63f874
Patch151:       lldpad-0.9.41-lldpad-make-debug-messages-from-netlink-path-helpful.patch
e9225f8
Patch152:       lldpad-0.9.41-support-disabling-of-LLDP-on-switch-side.patch
e9225f8
Patch153:       lldpad-0.9.41-reduce-number-of-select-timeouts-for-ECP.patch
e9225f8
Patch154:       lldpad-0.9.41-reduce-number-of-select-timeouts-for-VDP.patch
Petr Sabata b355825
Patch155:       lldpad-0.9.41-vdp-must-be-enabled-on-interface.patch
Jan Zeleny a3e201a
Jan Zeleny 2764916
Requires:         kernel >= 2.6.32
Jan Zeleny 2764916
BuildRequires:    libconfig-devel >= 1.3.2 kernel-headers >= 2.6.32
14868ab
BuildRequires:    flex >= 2.5.33
14868ab
BuildRequires:    automake autoconf libtool
14868ab
BuildRequires:    libnl-devel libnl
Jan Zeleny a3e201a
Requires(post):   chkconfig
Jan Zeleny a3e201a
Requires(preun):  chkconfig initscripts
Jan Zeleny a3e201a
Requires(postun): initscripts
Jan Zeleny a3e201a
Provides:         dcbd = %{version}-%{release}
Jan Zeleny a3e201a
Obsoletes:        dcbd < 0.9.26
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%description
Jan Zeleny a3e201a
This package contains the Linux user space daemon and configuration tool for
Jan Zeleny a3e201a
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%package        devel
Jan Zeleny a3e201a
Summary:        Development files for %{name}
Jan Zeleny a3e201a
Group:          Development/Libraries
Jan Zeleny a3e201a
Requires:       %{name} = %{version}-%{release}
Jan Zeleny 14d1ddb
Provides:       dcbd-devel = %{version}-%{release}
Jan Zeleny 14d1ddb
Obsoletes:      dcbd-devel < 0.9.26
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%description    devel
Jan Zeleny a3e201a
The %{name}-devel package contains header files for developing applications
Jan Zeleny a3e201a
that use %{name}.
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%prep
14868ab
%setup -q -c -n %{name}-%{version}
b63f874
# Upstream first
b63f874
%patch101 -p1
b63f874
%patch102 -p1
b63f874
%patch103 -p1
b63f874
%patch104 -p1
b63f874
%patch105 -p1
b63f874
%patch106 -p1
b63f874
%patch107 -p1
b63f874
%patch108 -p1
b63f874
%patch109 -p1
b63f874
%patch110 -p1
b63f874
%patch111 -p1
b63f874
%patch112 -p1
b63f874
%patch113 -p1
b63f874
%patch114 -p1
b63f874
%patch115 -p1
b63f874
%patch116 -p1
b63f874
%patch117 -p1
b63f874
%patch118 -p1
b63f874
%patch119 -p1
b63f874
%patch120 -p1
b63f874
%patch121 -p1
b63f874
%patch122 -p1
b63f874
%patch123 -p1
b63f874
%patch124 -p1
b63f874
%patch125 -p1
b63f874
%patch126 -p1
b63f874
%patch127 -p1
b63f874
%patch128 -p1
b63f874
%patch129 -p1
b63f874
%patch130 -p1
b63f874
%patch131 -p1
b63f874
%patch132 -p1
b63f874
%patch133 -p1
b63f874
%patch134 -p1
b63f874
%patch135 -p1
b63f874
%patch136 -p1
b63f874
%patch137 -p1
b63f874
%patch138 -p1
b63f874
%patch139 -p1
b63f874
%patch140 -p1
b63f874
%patch141 -p1
b63f874
%patch142 -p1
b63f874
%patch143 -p1
b63f874
%patch144 -p1
b63f874
%patch145 -p1
b63f874
%patch146 -p1
b63f874
%patch147 -p1
b63f874
%patch148 -p1
b63f874
%patch149 -p1
b63f874
%patch150 -p1
b63f874
%patch151 -p1
e9225f8
%patch152 -p1
e9225f8
%patch153 -p1
e9225f8
%patch154 -p1
Petr Sabata b355825
%patch155 -p1
b63f874
# Fedora patches on top of that...
Jan Zeleny a3e201a
%patch0 -p1 -b .make
Jan Zeleny a3e201a
%patch1 -p1 -b .init
b63f874
%patch2 -p1 -b .invalid-pointer
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%build
14868ab
./bootstrap.sh
Jan Zeleny a3e201a
%configure
Jan Zeleny a3e201a
make %{?_smp_mflags}
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%install
Jan Zeleny a3e201a
make install DESTDIR=%{buildroot}
Jan Zeleny a3e201a
mkdir -p %{buildroot}%{_initddir}
Jan Zeleny a3e201a
mv %{buildroot}/etc/init.d/%{name} %{buildroot}%{_initddir}
Jan Zeleny a3e201a
rm -rf %{buildroot}/etc/init.d
Jan Zeleny a3e201a
rm -f %{buildroot}%{_mandir}/man8/dcbd.8
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%post
Jan Zeleny a3e201a
/sbin/chkconfig --add %{name}
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%preun
Jan Zeleny a3e201a
if [ $1 = 0 ]; then
Jan Zeleny a3e201a
        /sbin/service %{name} stop > /dev/null 2>&1
Jan Zeleny a3e201a
        /sbin/chkconfig --del %{name}
Jan Zeleny a3e201a
fi
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%postun
Jan Zeleny a3e201a
if [ "$1" -ge "1" ]; then
Jan Zeleny a3e201a
        /sbin/service %{name} condrestart > /dev/null  2>&1 || :
Jan Zeleny a3e201a
fi
Jan Zeleny a3e201a
Jan Zeleny 2764916
%post devel
Jan Zeleny 2764916
## provide legacy support for apps that use the old dcbd interface.
14868ab
if [ ! -e %{_includedir}/dcbd ]; then
14868ab
    ln -T -s %{_includedir}/lldpad %{_includedir}/dcbd
14868ab
fi
14868ab
if [ ! -e %{_includedir}/dcbd/clif_cmds.h ]; then
14868ab
    ln -T -s %{_includedir}/lldpad/lldp_dcbx_cmds.h %{_includedir}/dcbd/clif_cmds.h
14868ab
fi
Jan Zeleny 2764916
Jan Zeleny 2764916
%preun devel
14868ab
if [ -e %{_includedir}/dcbd/clif_cmds.h ]; then
14868ab
    rm -f %{_includedir}/dcbd/clif_cmds.h
14868ab
fi
14868ab
if [ -e %{_includedir}/dcbd ]; then
14868ab
    rm -f %{_includedir}/dcbd
14868ab
fi
Jan Zeleny 2764916
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%files
Jan Zeleny a3e201a
%defattr(-,root,root,-)
Jan Zeleny a3e201a
%doc COPYING README ChangeLog
Jan Zeleny a3e201a
%{_sbindir}/*
Jan Zeleny a3e201a
%dir %{_sharedstatedir}/%{name}
Jan Zeleny a3e201a
%{_initddir}/%{name}
Jan Zeleny a3e201a
%{_mandir}/man8/*
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%files devel
Jan Zeleny a3e201a
%defattr(-,root,root,-)
Jan Zeleny a3e201a
%doc COPYING
Jan Zeleny a3e201a
%doc README
Jan Zeleny a3e201a
%{_includedir}/*
Jan Zeleny a3e201a
%{_libdir}/pkgconfig/*.pc
Jan Zeleny a3e201a
Jan Zeleny a3e201a
Jan Zeleny a3e201a
%changelog
Petr Sabata b355825
* Thu Sep 08 2011 Petr Sabata <contyk@redhat.com> - 0.9.41-4
Petr Sabata b355825
- Include Jens' patch for the same issue (rhbz#701943)
Petr Sabata b355825
e9225f8
* Wed May  4 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-3
e9225f8
- Fix the frequent, power consuming lldpad wake-ups (rhbz#701943)
e9225f8
b63f874
* Thu Apr 21 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-2
b63f874
- Bring in upstream 802.1Qbg bugfixes
b63f874
b63f874
* Thu Feb 10 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-1
14868ab
- 0.9.41 bump
14868ab
- New BR: autotools, flex
14868ab
- Buildroot garbage removed
14868ab
- Devel post and preun scriptlets sanitized
14868ab
58bd133
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.38-2
58bd133
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
58bd133
Jan Zeleny 0d8e022
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.38-1
Jan Zeleny 0d8e022
- rebased to 0.9.38 (various enhancements and bugfixes, see 
Jan Zeleny 0d8e022
  lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list)
Jan Zeleny 0d8e022
Jan Zeleny f8c1a02
* Mon May 10 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-2
Jan Zeleny f8c1a02
- rebuild to match new libconfig
Jan Zeleny f8c1a02
Jan Zeleny 61992b0
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-1
Jan Zeleny 61992b0
- rebased to 0.9.32 (various enhancements and bugfixes, see 
Jan Zeleny 61992b0
  lldpad-0.9.32-relnotes.txt on http://e1000.sf.net for complete list)
Jan Zeleny 61992b0
Jan Zeleny 14d1ddb
* Thu Mar 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-2
Jan Zeleny 14d1ddb
- added Provides and Obsoletes tags to devel subpackage
Jan Zeleny 14d1ddb
Jan Zeleny 2764916
* Mon Mar 15 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-1
Jan Zeleny 2764916
- updated package to 0.9.29, improved compatibility with fcoe-utils
Jan Zeleny 2764916
Jan Zeleny a3e201a
* Fri Feb 26 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-2
Jan Zeleny a3e201a
- updated spec file and LSB init script patch for re-review
Jan Zeleny a3e201a
  (#568641)
Jan Zeleny 2764916
Jan Zeleny a3e201a
* Thu Feb 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-1
Jan Zeleny a3e201a
- rebased to 0.9.26
Jan Zeleny a3e201a
- package renamed to lldpad
Jan Zeleny a3e201a
- enahanced functionality (LLDP supported as well as DCBX)
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Fri Nov 13 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-2
Jan Zeleny a3e201a
- init script patch adding LSB compliance
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Thu Oct 08 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-1
Jan Zeleny a3e201a
- update to new upstream version
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Mon Oct 05 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-5
Jan Zeleny a3e201a
- replaced the last patch, which was not fully functional, with
Jan Zeleny a3e201a
  the new one
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Wed Sep 09 2009 Karsten Hopp <karsten@redhat.com> 0.9.15-4
Jan Zeleny a3e201a
- buildrequire libconfig-devel >= 1.3.2, it doesn't build with 1.3.1 due to
Jan Zeleny a3e201a
  the different config_lookup_string api
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-3
Jan Zeleny a3e201a
- update of config_lookup_string() function calls
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-2
Jan Zeleny a3e201a
- rebuild in order to match new libconfig
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Mon Aug 17 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-1
Jan Zeleny a3e201a
- rebase to 0.9.15
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
Jan Zeleny a3e201a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Fri Mar 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-4
Jan Zeleny a3e201a
- updated scriptlets in spec file to follow the rules
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Wed Mar 11 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-3
Jan Zeleny a3e201a
- added devel files again to support fcoe-utils package
Jan Zeleny a3e201a
- added kernel >= 2.6.29 to Requires, deleted dcbnl.h, since it is
Jan Zeleny a3e201a
  aviable in kernel 2.6.29-rc7
Jan Zeleny a3e201a
- changed config dir from /etc/sysconfig/dcbd to /etc/dcbd
Jan Zeleny a3e201a
- updated init script: added mandatory Short description tag,
Jan Zeleny a3e201a
  deleted default runlevels, which should start the script
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Tue Mar 10 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-2
Jan Zeleny a3e201a
- added patch to enable usage of libconfig shared in system
Jan Zeleny a3e201a
- removed devel part of package
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 0.9.7-1
Jan Zeleny a3e201a
- Updated to 0.9.7
Jan Zeleny a3e201a
- Added a private copy of dcbnl.h until kernel-headers includes it.
Jan Zeleny a3e201a
  Export patch is making it's way to the upstream kernel via net-2.6,
Jan Zeleny a3e201a
  expected in 2.6.29-rc7
Jan Zeleny a3e201a
Jan Zeleny a3e201a
* Thu Feb 26 2009 Chris Leech <christopher.leech@intel.com> - 0.9.5-1
Jan Zeleny a3e201a
- initial RPM packaging
Jan Zeleny a3e201a