1 Summary: Open Source implementation of IEEE 802.1AB
2 Summary(pl.UTF-8): Implementacja IEEE 802.1AB z otwartymi źródłami
8 #Source0: http://dl.sourceforge.net/openlldp/%{name}-%{version}%{subver}.tar.bz2
9 Source0: http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz
10 # Source0-md5: 68d11173cfaecd5ae00ec57a28d94ee5
11 #Source2: %{name}-lldpd.init
12 #Source3: %{name}-lldpd.sysconfig
13 #Source4: %{name}-lldpd.service
14 URL: https://github.com/vincentbernat/lldpd/wiki
15 BuildRequires: autoconf >= 1.5
16 BuildRequires: automake
17 BuildRequires: libconfuse-devel
18 Requires(post,preun,postun): systemd-units >= 38
19 Requires: systemd-units >= 38
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LLDP (Link Layer Discovery Protocol) (also known as 802.1ab) is an
24 industry standard protocol designed to supplant proprietary Link-Layer
25 protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP
26 (Cisco Discovery Protocol). The goal of LLDP is to provide an
27 inter-vendor compatible mechanism to deliver Link-Layer notifications
28 to adjacent network devices.
30 lldpd is a lldp daemon for GNU/Linux and implements both reception and
31 sending. It supports both LLDP and LLDP-MED (contributed by Michael
32 Hanig). It also implements an SNMP subagent for net-snmp to get local
33 and remote LLDP information. The LLDP MIB is partially implemented but
34 the most useful tables are here.
36 lldpd supports bridge, vlan and bonding. bonding need to be done on
37 real physical devices, not on bridges, vlans, etc. However, vlans can
38 be mapped on the bonding device. You can bridge vlan but not add vlans
39 on bridges. More complex setups may give false results.
52 rm -rf $RPM_BUILD_ROOT
53 #install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_mandir}/man8,%{systemdunitdir}}
56 DESTDIR=$RPM_BUILD_ROOT
58 #install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd
59 #install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/lldpd
60 #install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/lldpd.service
63 rm -rf $RPM_BUILD_ROOT
66 /sbin/chkconfig --add lldpd
67 %service lldpd restart "LLDP Daemon"
68 %systemd_post lldpd.service
71 if [ "$1" = "0" ]; then
73 /sbin/chkconfig --del lldpd
75 %systemd_preun lldpd.service
80 %triggerpostun -- openlldp < 0.4
81 %systemd_trigger lldpd.service
84 %defattr(644,root,root,755)
85 #%doc AUTHORS ChangeLog LICENSE README
86 #%attr(754,root,root) /etc/rc.d/init.d/lldpd
87 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lldpd
88 #%{systemdunitdir}/lldpd.service
89 #%attr(755,root,root) %{_sbindir}/lldpd
90 #%attr(755,root,root) %{_bindir}/lldpneighbors