commit: f2a184132aecd15290367a36e03c56a8fbb48949 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Tue Sep 16 14:44:26 2025 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Tue Sep 16 14:44:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2a18413
net-misc/lldpd: add 1.0.20 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> net-misc/lldpd/Manifest | 1 + net-misc/lldpd/lldpd-1.0.20.ebuild | 113 +++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest index d28d40ac2a46..64202800f1d9 100644 --- a/net-misc/lldpd/Manifest +++ b/net-misc/lldpd/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/net-misc/lldpd/lldpd-1.0.20.ebuild b/net-misc/lldpd/lldpd-1.0.20.ebuild new file mode 100644 index 000000000000..bafbf8ec5a7f --- /dev/null +++ b/net-misc/lldpd/lldpd-1.0.20.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2025 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 +}
