436175
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
436175
%define _hardened_build 1
436175
436175
%global checkout 036e314
436175
436175
Name:               lldpad
436175
Version:            1.0.1
436175
Release:            5.git%{checkout}%{?dist}
436175
Summary:            Intel LLDP Agent
436175
Group:              System Environment/Daemons
436175
License:            GPLv2
436175
URL:                http://open-lldp.org/
436175
Source0:            %{name}-%{version}.tar.gz
436175
Patch1:             open-lldp-v1.0.1-1-VDP-vdp22_cmds-retrieve-vsi-paramenter-data.patch
436175
Patch2:             open-lldp-v1.0.1-2-VDP-vdptool-first-version.patch
436175
Patch3:             open-lldp-v1.0.1-3-VDP-vdptool-test-cases-Some-test-cases-to-test-the-n.patch
436175
Patch4:             open-lldp-v1.0.1-4-VDP-Changes-to-make-the-interface-to-VDP22-in-lldpad.patch
436175
Patch5:             open-lldp-v1.0.1-5-VDP-Support-for-get-tlv-in-vdptool-and-VDP22.patch
436175
Patch6:             open-lldp-v1.0.1-6-VDP-Support-in-VDP22-for-correct-error-code-status-t.patch
436175
Patch7:             open-lldp-v1.0.1-7-VDP-Support-for-OUI-infrastructure-in-VDP22.patch
436175
Patch8:             open-lldp-v1.0.1-8-VDP-Support-for-OUI-infrastructure-in-vdptool.patch
436175
Patch9:             open-lldp-v1.0.1-9-VDP-Support-for-OUI-infrastructure-in-vdp22.patch
436175
Patch10:            open-lldp-v1.0.1-10-VDP-Support-for-OUI-infrastructure-in-vdp22.patch
436175
Patch11:            open-lldp-v1.0.1-11-VDP-Support-for-Cisco-specific-OUI-extensions-to-VDP.patch
436175
Patch12:            open-lldp-v1.0.1-12-VDP22-Fix-the-ack-timeout-handler-to-set-the-right-t.patch
436175
Patch13:            open-lldp-v1.0.1-13-VDP-Changes-in-OUI-infra-for-get-tlv.patch
436175
Patch14:            open-lldp-v1.0.1-14-VDP-Changes-in-Cisco-OUI-handlers-to-support-get-tlv.patch
436175
Patch15:            open-lldp-v1.0.1-15-VDP-Add-vdptool-man-page-to-Makefile.patch
436175
Patch16:            open-lldp-v1.0.1-16-VDP-Fixed-DBG-print-compile-errors-in-32-bit-systems.patch
436175
Patch17:            open-lldp-v1.0.1-17-lldp-automake-fixes-for-dist-distcheck.patch
436175
Patch18:            open-lldp-v1.0.1-18-enabled-test-tool-building-for-distcheck.patch
436175
Patch19:            open-lldp-v1.0.1-19-nltest-build-error.patch
436175
Patch20:            open-lldp-v1.0.1-20-lldp-automake-fix-drop-prefix-on-vdptool_LDADD.patch
436175
Patch21:            open-lldp-v1.0.1-21-lldpad-Fix-DCBX-event-generation-from-lldpad.patch
436175
Patch22:            open-lldp-v1.0.1-22-vdp-Fixed-the-memory-leak-for-modify-VSI-support-for.patch
436175
Patch23:            open-lldp-v1.0.1-23-lldp-make-TTL-TLV-configurable.patch
436175
Patch24:            open-lldp-v1.0.1-24-switch-from-sysv-to-posix-shared-memory-apis.patch
436175
Patch25:            open-lldp-v1.0.1-25-l2_linux_packet-correctly-process-return-value-of-ge.patch
436175
Patch26:            open-lldp-v1.0.1-26-lldpad-system-capability-incorrect-advertised-as-sta.patch
436175
# not upstream
436175
Patch27:            open-lldp-v1.0.1-27-fix-build-warnings.patch
436175
Patch99:            lldpad-0.9.46-Ignore-supplied-PG-configuration-if-PG-is-being-disabled.patch
436175
Patch100:           open-lldp-v1.0.1-28-fix-oid-display.patch
436175
Patch101:           0001-memleak-on-received-TLVs-from-modules.patch
436175
436175
Requires:           kernel >= 2.6.32
436175
BuildRequires:      automake autoconf libtool
436175
BuildRequires:      flex >= 2.5.33
436175
BuildRequires:      kernel-headers >= 2.6.32
436175
BuildRequires:      libconfig-devel >= 1.3.2
436175
BuildRequires:      libnl3-devel
436175
BuildRequires:      readline-devel
436175
BuildRequires:      systemd
436175
Requires:           readline
436175
Requires(post):     systemd
436175
Requires(preun):    systemd
436175
Requires(postun):   systemd
436175
Provides:           dcbd = %{version}-%{release}
436175
Obsoletes:          dcbd < 0.9.26
436175
436175
%description
436175
This package contains the Linux user space daemon and configuration tool for
436175
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.
436175
436175
%package            devel
436175
Summary:            Development files for %{name}
436175
Group:              Development/Libraries
436175
Requires:           %{name}%{?_isa} = %{version}-%{release}
436175
Provides:           dcbd-devel = %{version}-%{release}
436175
Obsoletes:          dcbd-devel < 0.9.26
436175
436175
%description devel
436175
The %{name}-devel package contains header files for developing applications
436175
that use %{name}.
436175
436175
%prep
436175
%autosetup -p1
436175
436175
%build
436175
./bootstrap.sh
436175
%configure --disable-static
436175
# fix the hardened build flags
436175
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
436175
make %{?_smp_mflags}
436175
436175
%install
436175
make install DESTDIR=%{buildroot}
436175
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
436175
rm -f %{buildroot}%{_libdir}/liblldp_clif.la
436175
436175
%post
436175
/sbin/ldconfig
436175
%systemd_post %{name}.service %{name}.socket
436175
436175
%preun
436175
%systemd_preun %{name}.service %{name}.socket
436175
436175
%postun
436175
/sbin/ldconfig
436175
%systemd_postun_with_restart %{name}.service %{name}.socket
436175
436175
%post devel
436175
## provide legacy support for apps that use the old dcbd interface.
436175
if [ ! -e %{_includedir}/dcbd ]; then
436175
    ln -T -s %{_includedir}/lldpad %{_includedir}/dcbd
436175
fi
436175
if [ ! -e %{_includedir}/dcbd/clif_cmds.h ]; then
436175
    ln -T -s %{_includedir}/lldpad/lldp_dcbx_cmds.h %{_includedir}/dcbd/clif_cmds.h
436175
fi
436175
436175
%preun devel
436175
if [ -e %{_includedir}/dcbd/clif_cmds.h ]; then
436175
    rm -f %{_includedir}/dcbd/clif_cmds.h
436175
fi
436175
if [ -e %{_includedir}/dcbd ]; then
436175
    rm -f %{_includedir}/dcbd
436175
fi
436175
436175
%files
436175
%doc COPYING README ChangeLog
436175
%{_sbindir}/*
436175
%{_libdir}/liblldp_clif.so.*
436175
%dir %{_sharedstatedir}/%{name}
436175
%{_unitdir}/%{name}.service
436175
%{_unitdir}/%{name}.socket
436175
%dir %{_sysconfdir}/bash_completion.d/
436175
%{_sysconfdir}/bash_completion.d/*
436175
%{_mandir}/man3/*
436175
%{_mandir}/man8/*
436175
436175
%files devel
436175
%{_includedir}/*
436175
%{_libdir}/pkgconfig/*.pc
436175
%{_libdir}/liblldp_clif.so
436175
436175
%changelog
436175
* Tue Feb 26 2019 Aaron Conole <aconole@redhat.com> - 1.0.1-5.git036e314
436175
- Fix memory leak on TLV reception (#1196320)
436175
436175
* Wed Aug 08 2018 Aaron Conole <aconole@redhat.com> - 1.0.1-4.git036e314
436175
- fix the OID printing routine (#1551623)
436175
436175
* Wed Jul 06 2016 Chris Leech <cleech@redhat.com> - 1.0.1-3.git036e314
436175
- 1273663 sync with upstream v1.0.1-26-g036e314
436175
  system capability incorrect advertised as station only
436175
436175
* Wed Aug 12 2015 Chris Leech <cleech@redhat.com> - 1.0.1-2.git986eb2e
436175
- convert from sysv shm to posix, to allow selinux restorecon (#1080287)
436175
436175
* Thu Jun 18 2015 Chris Leech <cleech@redhat.com> - 1.0.1-1.git986eb2e
436175
- rebased to upstream v1.0.1-23-g986eb2e (#1175802)
436175
436175
* Tue Oct 21 2014 Chris Leech <cleech@redhat.com> - 0.9.46-10
436175
- Sync with upstream v0.9.46-123-g48a5f38 (#1087096)
436175
436175
* Fri Jun 27 2014 Chris Leech <cleech@redhat.com> - 0.9.46-9
436175
- Fix IEEE mode DCBX (#1102886)
436175
436175
* Wed Mar 19 2014 Petr Å abata <contyk@redhat.com> - 0.9.46-8
436175
- Ignore supplied PG configuration if PG is being disabled (#1067261)
436175
436175
* Tue Mar 18 2014 Petr Å abata <contyk@redhat.com> - 0.9.46-7
436175
- Migrate properly with VEPA (#1070725)
436175
436175
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.46-6
436175
- Mass rebuild 2014-01-24
436175
436175
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.46-5
436175
- Mass rebuild 2013-12-27
436175
436175
* Fri Nov 08 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-4
436175
- Support multiple virtual machines again (#1020625)
436175
436175
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-3
436175
- Require 'systemd' instead of 'systemd-units'
436175
436175
* Tue Jul 02 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-2
436175
- Fix the hardened build flags
436175
436175
* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-1
436175
- 0.9.46 bump
436175
- 802.1Qaz fixes to enable support on not CEE DCBX-enabled hardware
436175
- 802.1Qbg EVB module support
436175
- lldpad now supports bonded interfaces
436175
436175
* Tue Mar 05 2013 Petr Å abata <contyk@redhat.com> - 0.9.45-5
436175
- Fix build by patching the sizeof() call in lldp_8021qaz_cmds.c
436175
436175
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.45-4
436175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
436175
436175
* Tue Aug 28 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-3
436175
- Migrate to systemd scriptlets (#850192)
436175
436175
* Thu Aug 23 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-2
436175
- Fix displaying of the Management Address TLV (327ef662)
436175
436175
* Wed Aug 15 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-1
436175
- 0.9.45 bump
436175
- Provide bash-completion and the new clif library
436175
436175
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.44-2
436175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
436175
436175
* Fri Jan 27 2012 Petr Å abata <contyk@redhat.com> - 0.9.44-1
436175
- 0.9.44 bump, patches cleanup
436175
- Correct dependencies a bit
436175
- Require dlopen()'d readline
436175
436175
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.43-6
436175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
436175
436175
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-5
436175
- Do not enable lldpad by default (#701999)
436175
436175
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-4
436175
- Enable hardened build
436175
436175
* Tue Sep 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-3
436175
- Mute systemd output (#737897)
436175
436175
* Tue Aug 30 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-2
436175
- Apply various upstream 0.9.43 bugfixes
436175
- Include not yet accepted Jens Osterkamp's patch to fix bug #720080
436175
- Whitespace cleanup, phew
436175
436175
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-1
436175
- 0.9.43 bump
436175
- Drop the the clean exit patch and our unit file, both are now included upstream
436175
436175
* Tue Jun 21 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-2
436175
- Introduce systemd unit file, drop SysV support
436175
- Call systemctl instead of service and chkconfig
436175
- Enable the service only on new installation (post)
436175
- Clean exit patch
436175
436175
* Mon Jun 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-1
436175
- 0.9.42 bump (massive patches cleanup)
436175
- Remove obsolete defattr
436175
- Remove COPYING and README from devel subpackage
436175
436175
* Wed May  4 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-3
436175
- Fix the frequent, power consuming lldpad wake-ups (rhbz#701943)
436175
436175
* Thu Apr 21 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-2
436175
- Bring in upstream 802.1Qbg bugfixes
436175
436175
* Thu Feb 10 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-1
436175
- 0.9.41 bump
436175
- New BR: autotools, flex
436175
- Buildroot garbage removed
436175
- Devel post and preun scriptlets sanitized
436175
436175
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.38-2
436175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
436175
436175
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.38-1
436175
- rebased to 0.9.38 (various enhancements and bugfixes, see 
436175
  lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list)
436175
436175
* Mon May 10 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-2
436175
- rebuild to match new libconfig
436175
436175
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-1
436175
- rebased to 0.9.32 (various enhancements and bugfixes, see 
436175
  lldpad-0.9.32-relnotes.txt on http://e1000.sf.net for complete list)
436175
436175
* Thu Mar 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-2
436175
- added Provides and Obsoletes tags to devel subpackage
436175
436175
* Mon Mar 15 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-1
436175
- updated package to 0.9.29, improved compatibility with fcoe-utils
436175
436175
* Fri Feb 26 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-2
436175
- updated spec file and LSB init script patch for re-review
436175
  (#568641)
436175
436175
* Thu Feb 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-1
436175
- rebased to 0.9.26
436175
- package renamed to lldpad
436175
- enahanced functionality (LLDP supported as well as DCBX)
436175
436175
* Fri Nov 13 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-2
436175
- init script patch adding LSB compliance
436175
436175
* Thu Oct 08 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-1
436175
- update to new upstream version
436175
436175
* Mon Oct 05 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-5
436175
- replaced the last patch, which was not fully functional, with
436175
  the new one
436175
436175
* Wed Sep 09 2009 Karsten Hopp <karsten@redhat.com> 0.9.15-4
436175
- buildrequire libconfig-devel >= 1.3.2, it doesn't build with 1.3.1 due to
436175
  the different config_lookup_string api
436175
436175
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-3
436175
- update of config_lookup_string() function calls
436175
436175
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-2
436175
- rebuild in order to match new libconfig
436175
436175
* Mon Aug 17 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-1
436175
- rebase to 0.9.15
436175
436175
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
436175
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
436175
436175
* Fri Mar 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-4
436175
- updated scriptlets in spec file to follow the rules
436175
436175
* Wed Mar 11 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-3
436175
- added devel files again to support fcoe-utils package
436175
- added kernel >= 2.6.29 to Requires, deleted dcbnl.h, since it is
436175
  aviable in kernel 2.6.29-rc7
436175
- changed config dir from /etc/sysconfig/dcbd to /etc/dcbd
436175
- updated init script: added mandatory Short description tag,
436175
  deleted default runlevels, which should start the script
436175
436175
* Tue Mar 10 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-2
436175
- added patch to enable usage of libconfig shared in system
436175
- removed devel part of package
436175
436175
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 0.9.7-1
436175
- Updated to 0.9.7
436175
- Added a private copy of dcbnl.h until kernel-headers includes it.
436175
  Export patch is making it's way to the upstream kernel via net-2.6,
436175
  expected in 2.6.29-rc7
436175
436175
* Thu Feb 26 2009 Chris Leech <christopher.leech@intel.com> - 0.9.5-1
436175
- initial RPM packaging