2 # - separate package with client and daemon (possible?)
4 Summary: Implementation of IEEE 802.1AB, EDP and CDP
5 Summary(pl.UTF-8): Implementacja IEEE 802.1AB, EDP oraz CDP
11 Source0: http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz
12 # Source0-md5: 3db3a80fa6a384cd59e9d6a42ce7b630
13 #Source2: %{name}-lldpd.init
14 #Source3: %{name}-lldpd.sysconfig
15 #Source4: %{name}-lldpd.service
16 URL: https://github.com/vincentbernat/lldpd/wiki
17 BuildRequires: autoconf >= 1.5
18 BuildRequires: automake
19 BuildRequires: libconfuse-devel
20 Requires(post,preun,postun): systemd-units >= 38
21 Requires: systemd-units >= 38
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 LLDP (Link Layer Discovery Protocol) (also known as 802.1ab) is an
26 industry standard protocol designed to supplant proprietary Link-Layer
27 protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP
28 (Cisco Discovery Protocol). The goal of LLDP is to provide an
29 inter-vendor compatible mechanism to deliver Link-Layer notifications
30 to adjacent network devices.
32 lldpd is a lldp daemon for GNU/Linux and implements both reception and
33 sending. It supports both LLDP and LLDP-MED (contributed by Michael
34 Hanig). It also implements an SNMP subagent for net-snmp to get local
35 and remote LLDP information. The LLDP MIB is partially implemented but
36 the most useful tables are here.
38 lldpd supports bridge, vlan and bonding. bonding need to be done on
39 real physical devices, not on bridges, vlans, etc. However, vlans can
40 be mapped on the bonding device. You can bridge vlan but not add vlans
41 on bridges. More complex setups may give false results.
51 rm -rf $RPM_BUILD_ROOT
52 #install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{systemdunitdir}}
55 DESTDIR=$RPM_BUILD_ROOT
57 #install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd
58 #install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/lldpd
59 #install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/lldpd.service
62 rm -rf $RPM_BUILD_ROOT
65 /sbin/chkconfig --add lldpd
66 %service lldpd restart "LLDP Daemon"
67 %systemd_post lldpd.service
70 if [ "$1" = "0" ]; then
72 /sbin/chkconfig --del lldpd
74 %systemd_preun lldpd.service
79 %triggerpostun -- openlldp < 0.4
80 %systemd_trigger lldpd.service
83 %defattr(644,root,root,755)
84 %doc CHANGELOG README.md
85 #%attr(754,root,root) /etc/rc.d/init.d/lldpd
86 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lldpd
87 #%{systemdunitdir}/lldpd.service
88 %attr(755,root,root) %{_sbindir}/lldpd
89 %attr(755,root,root) %{_sbindir}/lldpctl
90 %{_mandir}/man8/lldpd.8*
91 %{_mandir}/man8/lldpctl.8*