]> git.pld-linux.org Git - packages/lldpd.git/blob - lldpd.spec
0996fc8e08f15d11a4f07dc46ce457468926210c
[packages/lldpd.git] / lldpd.spec
1 Summary:        Open Source implementation of IEEE 802.1AB
2 Summary(pl.UTF-8):      Implementacja IEEE 802.1AB z otwartymi źródłami
3 Name:           lldpd
4 Version:        0.5.7
5 Release:        0.1
6 License:        GPL
7 Group:          Networking
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)
21
22 %description
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.
29
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.
35
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.
40
41 %prep
42 %setup -q
43
44 %build
45 %{__aclocal}
46 %{__autoconf}
47 %{__automake}
48 %configure
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 #install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_mandir}/man8,%{systemdunitdir}}
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
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
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/chkconfig --add lldpd
67 %service lldpd restart "LLDP Daemon"
68 %systemd_post lldpd.service
69
70 %preun
71 if [ "$1" = "0" ]; then
72         %service lldpd stop
73         /sbin/chkconfig --del lldpd
74 fi
75 %systemd_preun lldpd.service
76
77 %postun
78 %systemd_reload
79
80 %triggerpostun -- openlldp < 0.4
81 %systemd_trigger lldpd.service
82
83 %files
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
91 #%{_mandir}/man8/*.8*
This page took 0.036062 seconds and 2 git commands to generate.