net-misc/lldpd: add 1.0.21

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2026-03-16 07:33:48 -07:00
parent 735d44c81b
commit 1755d0bf2d
2 changed files with 114 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST lldpd-1.0.18.tar.gz 1988691 BLAKE2B 37ee156013ab9ceaee06d10025fe0b76e26ebafef7a8254866347db8e6b316805a49d0f9f2ba330bb5f863336e95983214c9c9fb453e2290e9be0c47808504c7 SHA512 c8734221767cd879c98ea3ee6fa80e1dce2f8470a97b0f757cfe7ef8fe2adaf878fdedcda896cf65e1af980634f2ab312588658fb85f89c6d5b6cc9d2da52045
DIST lldpd-1.0.19.tar.gz 1987102 BLAKE2B 8303683af56492027a5610240d9c5007ce2a6653dbe6b8f5ce5e28089dac4c06c8716ad96ed5dda31af4a29e10abbbe675ec5cf29b639a1c17db24698e318715 SHA512 128a664de09fb91fd1cab4070e3a9cf2705d91f57e956f6953f431f17fcf21ce3f12b89a536e66057ef456840cfd0c2ac5102ec9736f2856586d7a64751cfb67
DIST lldpd-1.0.20.tar.gz 1996331 BLAKE2B 95743f28d9b3c8ad6f354f7def5f835d9b0668c151ad429dccfc7a249e29234a9ca1fda6b3bcc2890c424053b5adf2d4d9d7c0cb2887e97cc32b42577b91c63a SHA512 13036f8c80dc097604fce9aeb2bd3e513947851d93b656f48ab8869807a956f053a34b16339b7db226ccec36133d0249064f9af2009dfbd46495efde635ef792
DIST lldpd-1.0.21.tar.gz 1999487 BLAKE2B 8c9f2d452e0db2644bef08ca273160ca4996264f814a3149cae5267e57ec7bd34a819b9878cdcef8d6e344fb9b53eac6bb3bf7de408cceacd50065a4131f3bbb SHA512 5bace3d8357ddf90685fadc16ce2d79a6f2003bb553effb5a0ed764779c5a185d328c05a1bbcb24ae592686434c628aa28c51aaeed11902ef70bffd7ebc00ada

View File

@@ -0,0 +1,113 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd bash-completion-r1 autotools tmpfiles
DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)"
HOMEPAGE="https://lldpd.github.io/"
SRC_URI="https://github.com/lldpd/lldpd/releases/download/${PV}/${P}.tar.gz"
LICENSE="ISC"
SLOT="0/4"
KEYWORDS="~amd64 ~x86"
IUSE="cdp doc +dot1 +dot3 edp fdp graph +lldpmed old-kernel sanitizers
seccomp sonmp snmp static-libs test readline valgrind xml"
RESTRICT="!test? ( test )"
RDEPEND="
acct-group/lldpd
acct-user/lldpd
dev-libs/libbsd
>=dev-libs/libevent-2.1.11:=
sys-libs/readline:0=
seccomp? ( sys-libs/libseccomp:= )
snmp? ( net-analyzer/net-snmp:=[extensible(+)] )
xml? ( dev-libs/libxml2:= )
"
DEPEND="
${RDEPEND}
test? ( dev-libs/check )
valgrind? ( dev-debug/valgrind )
"
BDEPEND="
virtual/pkgconfig
doc? (
graph? ( app-text/doxygen[dot,doc] )
!graph? ( app-text/doxygen )
)
"
REQUIRED_USE="
graph? ( doc )
test? ( snmp sanitizers )
"
# tests need root
RESTRICT+=" test"
src_prepare() {
default
eautoreconf
}
src_configure() {
export ac_cv_header_valgrind_valgrind_h=$(usex valgrind)
econf \
--cache-file="${S}"/config.cache \
--without-embedded-libevent \
--with-privsep-user=${PN} \
--with-privsep-group=${PN} \
--with-privsep-chroot=/run/${PN} \
--with-lldpd-ctl-socket=/run/${PN}.socket \
--with-lldpd-pid-file=/run/${PN}.pid \
$(use_enable cdp) \
$(use_enable doc doxygen-doc) \
$(use_enable doc doxygen-man) \
$(use_enable doc doxygen-pdf) \
$(use_enable doc doxygen-html) \
$(use_enable dot1) \
$(use_enable dot3) \
$(use_enable edp) \
$(use_enable fdp) \
$(use_enable graph doxygen-dot) \
$(use_enable lldpmed) \
$(use_enable old-kernel oldies) \
$(use_enable sonmp) \
$(use_enable static-libs static) \
$(use_with readline) \
$(use_enable sanitizers) \
$(use_with seccomp) \
$(use_with snmp) \
$(use_with xml)
}
src_compile() {
emake
use doc && emake doxygen-doc
}
src_install() {
emake DESTDIR="${D}" install
find "${D}" -name '*.la' -delete || die
newinitd "${FILESDIR}"/${PN}-initd-5 ${PN}
newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
newbashcomp src/client/completion/lldpcli lldpcli
use doc && dodoc -r doxygen/html
insinto /etc
doins "${FILESDIR}/lldpd.conf"
keepdir /etc/${PN}.d
systemd_dounit "${FILESDIR}"/${PN}.service
newtmpfiles "${FILESDIR}"/tmpfilesd ${PN}.conf
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
}