]> git.pld-linux.org Git - packages/lldpd.git/commitdiff
lldp daemon
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 14 Nov 2012 13:02:21 +0000 (14:02 +0100)
committerPaweł Gołaszewski <blues@pld-linux.org>
Wed, 14 Nov 2012 13:02:21 +0000 (14:02 +0100)
.gitignore [new file with mode: 0644]
lldpd.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..8c288db
--- /dev/null
@@ -0,0 +1,2 @@
+*~
+lldpd-0.5.7.tar.gz
diff --git a/lldpd.spec b/lldpd.spec
new file mode 100644 (file)
index 0000000..0996fc8
--- /dev/null
@@ -0,0 +1,91 @@
+Summary:       Open Source implementation of IEEE 802.1AB
+Summary(pl.UTF-8):     Implementacja IEEE 802.1AB z otwartymi źródłami
+Name:          lldpd
+Version:       0.5.7
+Release:       0.1
+License:       GPL
+Group:         Networking
+#Source0:      http://dl.sourceforge.net/openlldp/%{name}-%{version}%{subver}.tar.bz2
+Source0:       http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz
+# Source0-md5: 68d11173cfaecd5ae00ec57a28d94ee5
+#Source2:      %{name}-lldpd.init
+#Source3:      %{name}-lldpd.sysconfig
+#Source4:      %{name}-lldpd.service
+URL:           https://github.com/vincentbernat/lldpd/wiki
+BuildRequires: autoconf >= 1.5
+BuildRequires: automake
+BuildRequires: libconfuse-devel
+Requires(post,preun,postun):   systemd-units >= 38
+Requires:      systemd-units >= 38
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LLDP (Link Layer Discovery Protocol) (also known as 802.1ab) is an
+industry standard protocol designed to supplant proprietary Link-Layer
+protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP
+(Cisco Discovery Protocol). The goal of LLDP is to provide an
+inter-vendor compatible mechanism to deliver Link-Layer notifications
+to adjacent network devices.
+
+lldpd is a lldp daemon for GNU/Linux and implements both reception and
+sending. It supports both LLDP and LLDP-MED (contributed by Michael
+Hanig). It also implements an SNMP subagent for net-snmp to get local
+and remote LLDP information. The LLDP MIB is partially implemented but
+the most useful tables are here.
+
+lldpd supports bridge, vlan and bonding. bonding need to be done on
+real physical devices, not on bridges, vlans, etc. However, vlans can
+be mapped on the bonding device. You can bridge vlan but not add vlans
+on bridges. More complex setups may give false results.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+#install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_mandir}/man8,%{systemdunitdir}}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+#install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd
+#install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/lldpd
+#install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/lldpd.service
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add lldpd
+%service lldpd restart "LLDP Daemon"
+%systemd_post lldpd.service
+
+%preun
+if [ "$1" = "0" ]; then
+        %service lldpd stop
+        /sbin/chkconfig --del lldpd
+fi
+%systemd_preun lldpd.service
+
+%postun
+%systemd_reload
+
+%triggerpostun -- openlldp < 0.4
+%systemd_trigger lldpd.service
+
+%files
+%defattr(644,root,root,755)
+#%doc AUTHORS ChangeLog LICENSE README
+#%attr(754,root,root) /etc/rc.d/init.d/lldpd
+#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lldpd
+#%{systemdunitdir}/lldpd.service
+#%attr(755,root,root) %{_sbindir}/lldpd
+#%attr(755,root,root) %{_bindir}/lldpneighbors
+#%{_mandir}/man8/*.8*
This page took 0.390218 seconds and 4 git commands to generate.