package created using the webbuild interface [release 0.9.46-1mamba;Mon Jun 23 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 08:09:11 +01:00
parent 39533e1a4b
commit e9df0218bd
3 changed files with 151 additions and 0 deletions

View File

@ -1,2 +1,19 @@
# open-lldp
lldpad provides a core lldp engine for implementing TLVs currently supporting:
LLDP Basic Management TLV set
Data Center Bridging Exchange Protocol (DCBX)
Version 1 - pre-CEE version
Version 2 - CEE version
IEEE 802.1Qaz
LLDP-MED (media endpoint discovery)
802.3 LAN interface extensions
802.1 VLAN extensions
802.1AB Organizational Specific TLVs
Cisco specific TLVs (OUI 0x000142)
draft0 support for Edge Virtual Bridging (EVB) - IEEE 802.1Qbg standard is under development
Edge Control Protocol (ECP)
Virtual Station Interface (VSI) Discovery and Configuration Protocol (VDP)
The lldpad package comes with utilities to manage an LLDP interface with support for reading and configuring TLVs. TLVs and interfaces are individual controlled allowing flexible configuration for TX only, RX only, or TX/RX modes per TLV.

View File

@ -0,0 +1,10 @@
diff -Nru open-lldp-0.9.46.orig/configure.ac open-lldp-0.9.46/configure.ac
--- open-lldp-0.9.46.orig/configure.ac 2014-06-24 00:22:39.330865545 +0200
+++ open-lldp-0.9.46/configure.ac 2014-06-24 00:21:31.848848321 +0200
@@ -1,5 +1,5 @@
AC_INIT([lldpad], [0.9.46], [lldp-devel@open-lldp.org])
-AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
m4_pattern_allow([AM_PROG_AR])
AM_PROG_AR

124
open-lldp.spec Normal file
View File

@ -0,0 +1,124 @@
Name: open-lldp
Version: 0.9.46
Release: 1mamba
Summary: A core lldp engine for implementing TLVs
Group: System/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.open-lldp.org/
Source: http://ftp-osl.osuosl.org/pub/open-lldp/open-lldp-%{version}.tar.gz
Patch0: open-lldp-0.9.46-bootstrap.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libconfig-devel
BuildRequires: libnl1-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
lldpad provides a core lldp engine for implementing TLVs currently supporting:
LLDP Basic Management TLV set
Data Center Bridging Exchange Protocol (DCBX)
Version 1 - pre-CEE version
Version 2 - CEE version
IEEE 802.1Qaz
LLDP-MED (media endpoint discovery)
802.3 LAN interface extensions
802.1 VLAN extensions
802.1AB Organizational Specific TLVs
Cisco specific TLVs (OUI 0x000142)
draft0 support for Edge Virtual Bridging (EVB) - IEEE 802.1Qbg standard is under development
Edge Control Protocol (ECP)
Virtual Station Interface (VSI) Discovery and Configuration Protocol (VDP)
The lldpad package comes with utilities to manage an LLDP interface with support for reading and configuring TLVs. TLVs and interfaces are individual controlled allowing flexible configuration for TX only, RX only, or TX/RX modes per TLV.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p1
%build
./bootstrap.sh
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 lldpad.service %{buildroot}%{_unitdir}/lldpad.service
rm -f %{buildroot}%{_sysconfdir}/init.d/lldpad
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
fi
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/bash_completion.d/lldpad
%{_sysconfdir}/bash_completion.d/lldptool
%{_sbindir}/dcbtool
%{_sbindir}/lldpad
%{_sbindir}/lldptool
%{_unitdir}/lldpad.service
%{_mandir}/man8/dcbtool.8*
%{_mandir}/man8/lldpad.8*
%{_mandir}/man8/lldptool-app.8*
%{_mandir}/man8/lldptool-dcbx.8*
%{_mandir}/man8/lldptool-ets.8*
%{_mandir}/man8/lldptool-evb.8*
%{_mandir}/man8/lldptool-evb22.8*
%{_mandir}/man8/lldptool-med.8*
%{_mandir}/man8/lldptool-pfc.8*
%{_mandir}/man8/lldptool-vdp.8*
%{_mandir}/man8/lldptool.8*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/liblldp_clif.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/lldpad
%{_includedir}/lldpad/*.h
%{_libdir}/liblldp_clif.a
%{_libdir}/liblldp_clif.la
%{_libdir}/liblldp_clif.so
%{_libdir}/pkgconfig/liblldp_clif.pc
%{_libdir}/pkgconfig/lldpad.pc
%doc ChangeLog README
%changelog
* Mon Jun 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.46-1mamba
- package created using the webbuild interface