1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Tools
11 url = https://lldpd.github.io
13 summary = Utilities for the Link Layer Discovery Protocol
16 The LLDPD project aims to provide a comprehensive implementation of
17 the IEEE standard 802.1AB Link Layer Discovery Protocol.
20 source_dl = https://media.luffy.cx/files/lldpd/
26 (libseccomp-devel if arch(x86_64))
33 configure_options += \
34 --without-embedded-libevent \
37 --with-privsep-user=lldpd \
38 --with-privsep-group=lldpd
40 # lldpd does not support seccomp on aarch64.
41 if "%{DISTRO_ARCH}" == "aarch64"
42 configure_options += --without-seccomp
44 configure_options += --with-seccomp
53 getent group lldpd >/dev/null || groupadd -r lldpd
54 getent passwd lldpd >/dev/null || \
55 useradd -r -g lldpd -d / -s /sbin/nologin lldpd
70 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
74 /bin/systemctl --no-reload disable lldpd.service >/dev/null 2>&1 || :
75 /bin/systemctl stop lldpd.service >/dev/null 2>&1 || :
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
83 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
84 /bin/systemctl try-restart lldpd.service >/dev/null 2>&1 || :
92 package %{name}-debuginfo