diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2022-11-14 14:54:13 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-11-14 14:54:13 -0800 |
commit | 7eaf2fbb5fd659d4085cde0823fbbf6afed73961 (patch) | |
tree | 83fbbe2b442d7236572f88df56c53e028ca5cefa | |
parent | sys-apps/nvme-cli: drop 1.16, 2.0, 2.1.1 (diff) | |
download | gentoo-7eaf2fbb5fd659d4085cde0823fbbf6afed73961.tar.gz gentoo-7eaf2fbb5fd659d4085cde0823fbbf6afed73961.tar.bz2 gentoo-7eaf2fbb5fd659d4085cde0823fbbf6afed73961.zip |
net-misc/lldpd: add 1.0.16
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | net-misc/lldpd/Manifest | 1 | ||||
-rw-r--r-- | net-misc/lldpd/lldpd-1.0.16.ebuild | 106 |
2 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest index b328c4f3edc4..1c4e0f7fd3cb 100644 --- a/net-misc/lldpd/Manifest +++ b/net-misc/lldpd/Manifest @@ -1,2 +1,3 @@ DIST lldpd-1.0.14.tar.gz 1979314 BLAKE2B 9e4dc2126eb07b09e42da07c1ddff9fd02a306404c45632cc80eb791e05cf07c0919a57fca2b91c6302ec01447213ed7f1b5a5bb14482b1f9c3a1fc501a0fdcb SHA512 268d85144fd06c70c9394acdbd92478b0ee3426beed76e48363f71e329681c57ab6bb1d7b313011e1243eeaaeb2b1f35085641bd86d6894c7d998d030d84b548 DIST lldpd-1.0.15.tar.gz 1980892 BLAKE2B 40702bbe633e7214c73c61e3e811ebe2655480ba3ef0655371c2042798b61fb6066c0051c33fb81e80c17149a1ad94007b2d0562533d24a0d7505dc2fd5caa44 SHA512 c245421cd153be39756e15c379daa70529119a50e0db7fff82a1d7f892f527c6582783aedadf096a4e2ea6352befb7215cecae675bd605d5fcf55820a39a6791 +DIST lldpd-1.0.16.tar.gz 1967182 BLAKE2B 3a359ec6539087ab1ffa5e1f83b90cc375b047b6e404df21067621bac9c9e5bab4b04209e9111d72fc2486046fb1d4b6744c093342c908f9a6475cd0b5a33328 SHA512 4abd25d1d7325f0a963518d916139f39b9250c37dfd918819019cabaafcdbedbfa03c78da80d36a09a0f4b1d79d4ee5e8aee1d10596bcd5710cd0c1181ba27c1 diff --git a/net-misc/lldpd/lldpd-1.0.16.ebuild b/net-misc/lldpd/lldpd-1.0.16.ebuild new file mode 100644 index 000000000000..080ae10dcb2b --- /dev/null +++ b/net-misc/lldpd/lldpd-1.0.16.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2022 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-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 +} |