Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
lldpd
lldpd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lldpd.spec of Package lldpd
# # spec file for package lldpd # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define lldpd_user lldpd %define lldpd_group lldpd %define lldpd_chroot %{_localstatedir}/run/lldpd %define sover 4 %define libname liblldpctl%{sover} #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif %bcond_without xml %bcond_without cdp %bcond_without edp %bcond_without sonmp %bcond_without fdp %bcond_without lldpmed %bcond_without dot1 %bcond_without dot3 %bcond_without custom %bcond_without snmp %bcond_with oldies %bcond_without libbsd %bcond_without systemd %bcond_without system_libevent %bcond_with seccomp Name: lldpd Version: 1.0.1 Release: 0 Summary: Implementation of IEEE 802.1ab (LLDP) # We have some GPL linux headers in include/linux, they are used on # platforms where glibc headers are not recent enough License: MIT AND GPL-2.0+ Group: System/Daemons URL: http://vincentbernat.github.com/lldpd/ Source0: http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz Source1: lldpd.sysconfig Source2: http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz.gpg#/%{name}-%{version}.tar.gz.asc Source3: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x95A42FE8353525F9#/%{name}.keyring BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: systemd-rpm-macros Requires(pre): %fillup_prereq Requires(pre): pwdutils %if %{with seccomp} BuildRequires: libseccomp-devel %endif %if %{with snmp} BuildRequires: net-snmp-devel BuildRequires: openssl-devel %endif %if %{with system_libevent} BuildRequires: libevent-devel %endif %if %{with xml} BuildRequires: libxml2-devel %endif %if %{with libbsd} BuildRequires: libbsd-devel %endif %description This implementation provides LLDP sending and reception, supports VLAN and includes an SNMP subagent that can interface to an SNMP agent through AgentX protocol. LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme 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. This daemon is also able to deal with CDP, FDP, SONMP and EDP protocol. It also handles LLDP-MED extension. %package -n %{libname} Summary: Implementation of IEEE 802.1ab - Shared library License: MIT Group: System/Libraries %description -n %{libname} This package provides the shared library for lldpd. LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme 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. %package devel Summary: Implementation of IEEE 802.1ab - Tools and header files for developers License: MIT Group: Development/Languages/C and C++ Requires: lldpd = %{version}-%{release} %description devel This package is required to develop alternate clients for lldpd. LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme 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. %prep %setup -q %build %configure \ %if %{with seccomp} --with-seccomp \ %endif %if %{with snmp} --with-snmp \ %endif %if %{with xml} --with-xml \ %endif %if %{with libbsd} --with-libbsd \ %endif %if %{with cdp} --enable-cdp \ %else --disable-cdp \ %endif %if %{with edp} --enable-edp \ %else --disable-edp \ %endif %if %{with sonmp} --enable-sonmp \ %else --disable-sonmp \ %endif %if %{with fdp} --enable-fdp \ %else --disable-fdp \ %endif %if %{with lldpmed} --enable-lldpmed \ %else --disable-lldpmed \ %endif %if %{with dot1} --enable-dot1 \ %else --disable-dot1 \ %endif %if %{with dot3} --enable-dot3 \ %else --disable-dot3 \ %endif %if %{with custom} --enable-custom \ %else --disable-custom \ %endif %if %{with oldies} --enable-oldies \ %else --disable-oldies \ %endif --with-privsep-user=%{lldpd_user} \ --with-privsep-group=%{lldpd_group} \ --with-privsep-chroot=%{lldpd_chroot} \ %if %{without systemd} --with-systemdsystemunitdir=no \ %else --with-systemdsystemunitdir=%{_unitdir} \ %endif --with-sysusersdir=no \ --prefix=%{_usr} \ --localstatedir=%{_localstatedir} \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} \ --docdir=%{_docdir}/lldpd \ --enable-pie \ --disable-static [ -f %{_includedir}/net-snmp/agent/struct.h ] || touch src/struct.h make %{?_smp_mflags} V=1 %install %make_install install -Dpm 0644 %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.lldpd install -dm0755 %{buildroot}/%{_sbindir} ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rclldpd rm -f %{buildroot}%{_libdir}/liblldpctl.la %pre # Create lldpd user/group if getent group %{lldpd_group} >/dev/null 2>&1 ; then : ; else \ %{_sbindir}/groupadd -r %{lldpd_group} > /dev/null 2>&1 || exit 1 ; fi if getent passwd %{lldpd_user} >/dev/null 2>&1 ; then : ; else \ %{_sbindir}/useradd -g %{lldpd_group} -M -r -s /sbin/nologin \ -c "LLDP daemon" -d %{lldpd_chroot} %{lldpd_user} 2> /dev/null \ || exit 1 ; fi %service_add_pre lldpd.service %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %post %service_add_post lldpd.service %fillup_only %preun %service_del_preun lldpd.service %postun %service_del_postun lldpd.service %files %dir %{_docdir}/lldpd %doc %{_docdir}/lldpd/NEWS %doc %{_docdir}/lldpd/LICENSE %doc %{_docdir}/lldpd/ChangeLog %doc %{_docdir}/lldpd/README.md %doc %{_docdir}/lldpd/CONTRIBUTE.md %{_sbindir}/lldpd %{_sbindir}/lldpctl %{_sbindir}/lldpcli %{_datadir}/zsh %{_datadir}/bash-completion %{_mandir}/man8/lldp*.8%{ext_man} %config %{_sysconfdir}/lldpd.d %{_unitdir}/lldpd.service %{_sbindir}/rclldpd %{_fillupdir}/sysconfig.lldpd %files -n %{libname} %{_libdir}/liblldpctl.so.* %files devel %{_libdir}/liblldpctl.so %{_libdir}/pkgconfig/lldpctl.pc %{_includedir}/lldpctl.h %{_includedir}/lldp-const.h %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor