forked from pool/open-lldp
drop link
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/open-lldp?expand=0&rev=4
This commit is contained in:
commit
5fb4f28229
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
4
mkinitrd-boot.sh
Normal file
4
mkinitrd-boot.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
#%stage: device
|
||||
#%depends: network
|
||||
#%programs: lldpad dcbtool
|
35
mkinitrd-setup.sh
Normal file
35
mkinitrd-setup.sh
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#%stage: device
|
||||
#%depends: fcoe
|
||||
#
|
||||
|
||||
#
|
||||
# Check if DCBX is active for FCoE traffic
|
||||
#
|
||||
dcbd_check_app_fcoe() {
|
||||
local if=$1
|
||||
local dcberr=1
|
||||
|
||||
. /etc/fcoe/cfg-${if}
|
||||
if [ "$DCB_REQUIRED" = "yes" ] ; then
|
||||
echo "active"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "${root_fcoe}" ] ; then
|
||||
dcb_status=$(dcbd_check_app_fcoe $fcoe_vif)
|
||||
if [ "$dcb_status" = "active" ] ; then
|
||||
root_dcbd=1
|
||||
fi
|
||||
fi
|
||||
|
||||
save_var root_dcbd
|
||||
|
||||
if [ "${root_dcbd}" ] ; then
|
||||
mkdir -p ${tmp_mnt}/var/lib/lldpad
|
||||
if [ -f /var/lib/lldpad/lldpad.conf ] ; then
|
||||
# copy the dcbd configuration
|
||||
cp -p /var/lib/lldpad/lldpad.conf ${tmp_mnt}/var/lib/lldpad
|
||||
fi
|
||||
fi
|
3
open-lldp-0.9.46.tar.gz
Normal file
3
open-lldp-0.9.46.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c7b4abc970bf4cc12617b8124de0b440e69fc2a9f680973d2c313301802def14
|
||||
size 341218
|
22525
open-lldp-git-update.patch
Normal file
22525
open-lldp-git-update.patch
Normal file
File diff suppressed because it is too large
Load Diff
101
open-lldp.changes
Normal file
101
open-lldp.changes
Normal file
@ -0,0 +1,101 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 13 10:42:57 CEST 2013 - hare@suse.de
|
||||
|
||||
- Rename to open-lldp to be compliant with upstream
|
||||
- Update to latest git version
|
||||
* Systemd integration
|
||||
* EVB fixes
|
||||
- Update mkinitrd scriptlets
|
||||
- Remove 'llpdad-makefile-fixup', merged with upstream
|
||||
- Remove 'mkinitrd-stop.sh'
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 1 13:23:39 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Bump to 0.9.46 new upstream url found from fedora pkg:
|
||||
* Add IEEE802.1Qbg EVB module support
|
||||
* add and improve test code evbest/nltest
|
||||
* 8021qaz fix to work with hardware that does not support CEE DCBX
|
||||
* support lldpad running on bonded interfaces
|
||||
* pretty print support for VDP
|
||||
* new -p option to display lldpad process identifier
|
||||
* generate shared library liblldp_clif for applications to use
|
||||
* Add vdptest program
|
||||
* various link event fixes
|
||||
* Support for multiple agent types Nearest non-TPMR, Nearest customer bridge,
|
||||
and Nearest Bridge (always supported).
|
||||
* New man pages for VDP, EVB, and MED have been added.
|
||||
* DCBX improvements to remap DCB attributes when the host has less traffic
|
||||
classes then the peer.
|
||||
* Support to parse 802.1AB Organizationally Specific TLVs, Cisco Specific TLVs
|
||||
and the LLINK attributes of the DCBX CEE TLVs.
|
||||
* Support to reconfigure and set the MSAP subtype.
|
||||
* Additional gcc warnings turned on and miscellaneous fixes.
|
||||
* New client interface (abstract sockets) to support initrd stage
|
||||
* IEEE 802.1Qaz support has been added
|
||||
* EVB support has been added
|
||||
* Add iSCSI TLV support
|
||||
* Numerous bug fixes and code cleanup
|
||||
* Reworked netlink event handling to be more robust and handle dropped nlmsgs.
|
||||
* DCBx puts netdevice into linkmode until dcbx negotiation complete
|
||||
- Remove obsolete patches, applied upstream/done differently by upstream:
|
||||
* lldpad-0.9.32-compile-fixes
|
||||
* lldpad-0.9.32-fix-buffer-overflow
|
||||
* lldpad-0.9.32-fix-error-in-pgid-construction
|
||||
* lldpad-0.9.32-fix-lldptool-segfault
|
||||
* lldpad-0.9.32-fix-race-condition
|
||||
- Rebase patch to apply on current version:
|
||||
* lldpad-makefile-fixup
|
||||
- Use unit file instead of init file to move under systemd
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 23 19:02:58 CEST 2013 - ohering@suse.de
|
||||
|
||||
- Remove usage of absolute paths in mkinitrd scripts
|
||||
- Add Requires(post/postun) to spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 13 10:49:52 UTC 2012 - coolo@suse.com
|
||||
|
||||
- patch license to follow spdx.org standard
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 23 21:13:01 UTC 2011 - coolo@suse.com
|
||||
|
||||
- add libtool as buildrequire to avoid implicit dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 6 10:53:00 CEST 2010 - hare@suse.de
|
||||
|
||||
- Port rpm from SLES11 SP1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 7 16:02:31 CEST 2010 - hare@suse.de
|
||||
|
||||
- Remove 'fix link flap' patch (bnc#603580)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 26 13:53:10 CEST 2010 - hare@suse.de
|
||||
|
||||
- Patches from bnc#599107:
|
||||
* fix race condition by opening client socket earlier
|
||||
* fix error in construction of the Priority Group TLV
|
||||
* fix link flap
|
||||
* fix segfault when handling lldptool arguments
|
||||
* fix buffer overflow in lldp-med inventory string
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 26 11:50:46 CET 2010 - kukuk@suse.de
|
||||
|
||||
- Fix requires of -devel subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 24 16:00:04 CET 2010 - hare@suse.de
|
||||
|
||||
- Fixup mkinitrd setup script to always create /var/lib/lldpad
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 23 15:11:03 CET 2010 - hare@suse.de
|
||||
|
||||
- Obsolete dcbd by lldpad version 0.9.32 (bnc#590487)
|
||||
|
144
open-lldp.spec
Normal file
144
open-lldp.spec
Normal file
@ -0,0 +1,144 @@
|
||||
#
|
||||
# spec file for package open-lldp
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define libname liblldp_clif1
|
||||
Name: open-lldp
|
||||
Summary: Link Layer Discovery Protocol (LLDP) Agent
|
||||
License: GPL-2.0
|
||||
Group: System/Daemons
|
||||
Version: 0.9.46
|
||||
Release: 0
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: libconfig-devel
|
||||
BuildRequires: libnl-1_1-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: readline-devel
|
||||
Url: http://open-lldp.org/
|
||||
Source: http://ftp-osl.osuosl.org/pub/%{name}/%{name}-%{version}.tar.gz
|
||||
Source20: mkinitrd-boot.sh
|
||||
Source22: mkinitrd-setup.sh
|
||||
Patch0: %{name}-git-update.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: dcbd = %{version}
|
||||
Obsoletes: dcbd < %{version}
|
||||
Provides: lldpad = %{version}
|
||||
Obsoletes: lldpad < %{version}
|
||||
Requires(post): mkinitrd
|
||||
Requires(postun): mkinitrd
|
||||
BuildRequires: systemd
|
||||
%systemd_requires
|
||||
|
||||
%description
|
||||
This package contains the Link Layer Discovery Protocol (LLDP) Agent
|
||||
with Data Center Bridging (DCB) for Intel(R) Network Connections
|
||||
'lldpad' plus the configuration tools 'dcbtool' and 'lldptool'.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
|
||||
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: Link Layer Discovery Protocol (LLDP) libraries
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname}
|
||||
This package contains the Link Layer Discovery Protocol (LLDP) libraries
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Link Layer Discovery Protocol (LLDP) Agent
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{libname} = %{version}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the Link Layer Discovery Protocol (LLDP) Agent
|
||||
with Data Center Bridging (DCB) for Intel(R) Network Connections
|
||||
'lldpad' plus the configuration tools 'dcbtool' and 'lldptool'.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
|
||||
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
autoreconf -vi
|
||||
%configure \
|
||||
--disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/var/lib/lldpad
|
||||
%makeinstall
|
||||
install -d %{buildroot}/lib/mkinitrd/scripts/
|
||||
install -m 755 %{S:20} %{buildroot}/lib/mkinitrd/scripts/boot-lldpad.sh
|
||||
install -m 755 %{S:22} %{buildroot}/lib/mkinitrd/scripts/setup-lldpad.sh
|
||||
# remove la archives
|
||||
rm -rf %{buildroot}/%{_libdir}/*.la
|
||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rclldpad
|
||||
chmod 655 %{buildroot}/
|
||||
|
||||
%post
|
||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
||||
%{fillup_and_insserv -n -i lldpad}
|
||||
%service_add_post lldpad.service
|
||||
|
||||
%preun
|
||||
%service_del_preun lldpad.service
|
||||
|
||||
%postun
|
||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
||||
%{insserv_cleanup lldpad}
|
||||
|
||||
%post -n %libname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %libname -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README ChangeLog
|
||||
%dir /var/lib/lldpad
|
||||
%{_unitdir}/*
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/man8/*
|
||||
%config /etc/bash_completion.d/*
|
||||
/lib/mkinitrd
|
||||
|
||||
%files -n %libname
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user