summaryrefslogtreecommitdiff
path: root/net-misc/lldpd
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/lldpd')
-rw-r--r--net-misc/lldpd/Manifest3
-rw-r--r--net-misc/lldpd/lldpd-1.0.16-r1.ebuild107
-rw-r--r--net-misc/lldpd/metadata.xml1
3 files changed, 110 insertions, 1 deletions
diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest
index 1b8e65b8f49c..f74f3e4a3edf 100644
--- a/net-misc/lldpd/Manifest
+++ b/net-misc/lldpd/Manifest
@@ -4,5 +4,6 @@ AUX lldpd.conf 49 BLAKE2B e0d6b2a386bc2ac794df1de27061c58a193a3d141beac3cb0d893c
AUX lldpd.service 205 BLAKE2B 787e9d19def1d4d3cfe207e928b994d46b4fda5d2431ab147d24c4fa2b5b72426af5ee5ac57d40cfb2d1bc3ea6c1b253e1daaa341d998d66889bbc94c83d2438 SHA512 5b5aead569c842c2850fb0180b67beb87b4f0301e9e591d957089f5c659a30ef464fadd44a01f9b5476ff999368c3494c7dc7013db473d518721e5fab41cd054
AUX tmpfilesd 32 BLAKE2B ad674d771fa90bde09e231ef21358928de2f3eccdbe0e9b3e2a0c0438a55899e858c98dc3d49714ee07cec4c921d15d955fd0c34f6dfaa4f3667bc4c0e9dfcde SHA512 58b11cc9241c4da25bf53da31b1ed64a489a7bd0998bc8a395659d77975607fd6ab035ffc830ddbfe2e5be244ff7c308900358452aee728fd56a4a7d4e80ffde
DIST lldpd-1.0.16.tar.gz 1967182 BLAKE2B 3a359ec6539087ab1ffa5e1f83b90cc375b047b6e404df21067621bac9c9e5bab4b04209e9111d72fc2486046fb1d4b6744c093342c908f9a6475cd0b5a33328 SHA512 4abd25d1d7325f0a963518d916139f39b9250c37dfd918819019cabaafcdbedbfa03c78da80d36a09a0f4b1d79d4ee5e8aee1d10596bcd5710cd0c1181ba27c1
+EBUILD lldpd-1.0.16-r1.ebuild 2366 BLAKE2B 7e8354df5ca8327d903fe3c7ccfc44873f6dfe2658b1cb313d1992451f4412bad8a966f61fbe052f01fc5964a6eda6b27219507d7d408736d585f6a0ea920bd6 SHA512 aa3b39467d33ffe7eae6148ce04a7f2ce2994dc19a6fe7c4aa1334ac8fcbdea9e47f13f9fff77e7dcec5ceb196596140e51c4aa50fb0ed676fcbc5586cfb4fd5
EBUILD lldpd-1.0.16.ebuild 2330 BLAKE2B 1055f1615104b97cb0b60187cbc0859fd3c2a787dac842c771942f874a6762d2b096a17984114fcf82a3f54d829c3815831df045ee450d9db2611cf0f0a23dc2 SHA512 063236742018f4f22c7d3fcf711a71de882181b315c6c51eb489e37437887962a7c9125179694ee5d689d0dafb7d97c0b8a3be670f96fad3ce6cb4c24fabba20
-MISC metadata.xml 2845 BLAKE2B 30a48fae80109b4f3a2afc8ff90dd103e33ade04d9ecfbe44fc2e43cb0fd9d8f0d54ed098e28fcffedab5f4276b5719c62497d7b39d40fd75f0e12f1e0dcb439 SHA512 e96fbb704401d871d83e9f11144a9259ae5e58bfcdcc98bc08e0199998044588485118f264adafc4927ed69bba2de7fd06dc6bdd2bb3357b90d903168685451a
+MISC metadata.xml 2908 BLAKE2B 22dbdc0f603fd34be78e8a3c648d942f01c7a6095496ff81f1644522e3ea14feb12494795efd1bf843965114aea177a969bb0238eb9759b2722ccd2ecd59f391 SHA512 6e8e88e96ec02896d9cad4f7895a578cf06639e4113f96ecefed313f77a8a0a757d9cfeb080bf10ad3387963c5b78ea21c257145442c9b0716115cc2da44903c
diff --git a/net-misc/lldpd/lldpd-1.0.16-r1.ebuild b/net-misc/lldpd/lldpd-1.0.16-r1.ebuild
new file mode 100644
index 000000000000..57f61cc2162b
--- /dev/null
+++ b/net-misc/lldpd/lldpd-1.0.16-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2023 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.9.1"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdp doc +dot1 +dot3 edp fdp graph +lldpmed old-kernel sanitizers
+ seccomp sonmp snmp static-libs test readline 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 )
+"
+BDEPEND="virtual/pkgconfig
+ doc? (
+ graph? ( app-doc/doxygen[dot,doc] )
+ !graph? ( app-doc/doxygen )
+ )
+"
+
+REQUIRED_USE="
+ graph? ( doc )
+ test? ( snmp sanitizers )
+"
+
+# tests need root
+RESTRICT+=" test"
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --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
+}
diff --git a/net-misc/lldpd/metadata.xml b/net-misc/lldpd/metadata.xml
index d77375b75aca..862a9a8e9b1f 100644
--- a/net-misc/lldpd/metadata.xml
+++ b/net-misc/lldpd/metadata.xml
@@ -32,6 +32,7 @@ lldpd also implements CDP (Cisco Discovery Protocol), FDP (Foundry Discovery Pro
<flag name="snmp">Enable the use of SNMP</flag>
</use>
<upstream>
+ <remote-id type="cpe">cpe:/a:lldpd_project:lldpd</remote-id>
<remote-id type="github">lldpd/lldpd</remote-id>
</upstream>
</pkgmetadata>