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 = http://vincentbernat.github.com/lldpd/
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 = http://media.luffy.cx/files/lldpd/
32 configure_options += \
35 --with-privsep-user=lldpd \
36 --with-privsep-group=lldpd
43 # Create tmp directory.
44 mkdir -pv -m 700 %{BUILDROOT}/run/lldpd
45 chown -v lldpd.lldpd %{BUILDROOT}/run/lldpd
50 getent group lldpd >/dev/null || groupadd -r lldpd
51 getent passwd lldpd >/dev/null || \
52 useradd -r -g lldpd -d / -s /sbin/nologin lldpd
67 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
71 /bin/systemctl --no-reload disable lldpd.service >/dev/null 2>&1 || :
72 /bin/systemctl stop lldpd.service >/dev/null 2>&1 || :
76 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
80 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
81 /bin/systemctl try-restart lldpd.service >/dev/null 2>&1 || :
89 package %{name}-debuginfo