diff options
-rw-r--r-- | net-misc/lldpd/Manifest | 1 | ||||
-rw-r--r-- | net-misc/lldpd/lldpd-1.0.1.ebuild | 102 |
2 files changed, 103 insertions, 0 deletions
diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest index 8c2973be6b17..0a7e38f78239 100644 --- a/net-misc/lldpd/Manifest +++ b/net-misc/lldpd/Manifest @@ -2,3 +2,4 @@ DIST lldpd-0.9.3.tar.gz 1601102 BLAKE2B 0ba31d20dad9770c93fa4930a7c439273c36e5ce DIST lldpd-0.9.7.tar.gz 1619527 BLAKE2B 20d255d47cdc92deb65f5f1e43322ace26b3169db1511bb8e534fa8d935e97b4f123be544980f39cbb0764030ace81d087810397df3d076094cda98829375b8f SHA512 6b087de11b54c3f731498081680c836a28b882b7e925150d8ca3a582538f6a9c294d1e94b8e906a7cbb40e9663eedb33699eddb870c186da4d88cf3a88238ae2 DIST lldpd-0.9.8.tar.gz 1620806 BLAKE2B fb813f827f3adf9db9fe911c10d221f5d28c14f86e50b2d8a15d64e1794bb8a1cb93ca1df4b91cc5dc30c730026ebc88bc7549043ca5a12dd8371b5911890e6c SHA512 d3822d4dbb91cd10e678aacd176c83117d8682cfaf928eab8a0363ef40ca54a6f2d88759f219d0e524da88ad6e283d3c4f33a4e5d01761c5d23b02d7ee1083d6 DIST lldpd-0.9.9.tar.gz 1615627 BLAKE2B 3518003aa92b499c32dc07a2a3c12fa6ff30a4feda215ce80e4aacf66e7b9ac70f85d07f39e55bb24c8ec7742f93f85fb0d048005a6fb0bc0bef9ff5f81b57ba SHA512 2e517743069da18d406f095e879fa00b1c593e868164e2113db4629bedfa0f250c694f8c85ac5939e6e8feba9de05656bcd1baec3a9b1933e2157a513ffc5a64 +DIST lldpd-1.0.1.tar.gz 1590903 BLAKE2B 37ff1c042537ac31f394986f1bbd3faf13105d07f340ed045a4bbc196912c0c017a5d60b2c6a89b0da9faa5a7ff8e9c4ef0d4d01a39504a31c23288a89eb92a3 SHA512 61b2a7a3a78276c613c6d0b34eb625e69e5c8a206b6658a167d6a09ac6d0e1c943e46c0ff6fc3538a791d9947f193185b65848da581b3d6ecb9bc0befadde8dd diff --git a/net-misc/lldpd/lldpd-1.0.1.ebuild b/net-misc/lldpd/lldpd-1.0.1.ebuild new file mode 100644 index 000000000000..e555b6b4f7ea --- /dev/null +++ b/net-misc/lldpd/lldpd-1.0.1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils user systemd bash-completion-r1 autotools + +DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)" +HOMEPAGE="https://vincentbernat.github.com/lldpd/" +SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cdp doc +dot1 +dot3 edp fdp graph +lldpmed old-kernel sanitizers + seccomp sonmp snmp static-libs test readline xml zsh-completion" + +RDEPEND="dev-libs/libbsd + >=dev-libs/libevent-2.0.5:= + snmp? ( net-analyzer/net-snmp[extensible(+)] ) + xml? ( dev-libs/libxml2 ) + seccomp? ( sys-libs/libseccomp ) + zsh-completion? ( app-shells/zsh )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + graph? ( app-doc/doxygen[dot] ) + !graph? ( app-doc/doxygen ) + ) + test? ( dev-libs/check )" + +REQUIRED_USE="graph? ( doc )" + +PATCHES=( + "${FILESDIR}/${PN}-0.9.5-seccomp-add-socket-ops.patch" +) + +pkg_setup() { + ebegin "Creating lldpd user and group" + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} + eend $? +} + +src_prepare() { + default + + eautoreconf + elibtoolize +} + +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 \ + --docdir=/usr/share/doc/${PF} \ + $(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 + prune_libtool_files + + 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 + systemd_newtmpfilesd "${FILESDIR}"/tmpfilesd ${PN}.conf +} |