From e9df0218bd0d80e59be66fcd426163c4f50e5152 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:09:11 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.9.46-1mamba;Mon Jun 23 2014] --- README.md | 17 +++++ open-lldp-0.9.46-bootstrap.patch | 10 +++ open-lldp.spec | 124 +++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 open-lldp-0.9.46-bootstrap.patch create mode 100644 open-lldp.spec diff --git a/README.md b/README.md index d7b3574..924008c 100644 --- a/README.md +++ b/README.md @@ -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. + diff --git a/open-lldp-0.9.46-bootstrap.patch b/open-lldp-0.9.46-bootstrap.patch new file mode 100644 index 0000000..17c511b --- /dev/null +++ b/open-lldp-0.9.46-bootstrap.patch @@ -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 diff --git a/open-lldp.spec b/open-lldp.spec new file mode 100644 index 0000000..5d92e8f --- /dev/null +++ b/open-lldp.spec @@ -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 +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 0.9.46-1mamba +- package created using the webbuild interface