1 |
commit: 8f2427d219301489038ed5753bc9c44fec0f5ca8 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Mar 15 12:40:31 2023 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 15 23:25:43 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f2427d2 |
7 |
|
8 |
net-misc/lldpd: fix doc generation |
9 |
|
10 |
--doxygen-* options requires --doxygen-doc option. |
11 |
Added CPE identifier. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/779850 |
14 |
Closes: https://bugs.gentoo.org/827742 |
15 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/30133 |
17 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
18 |
|
19 |
net-misc/lldpd/lldpd-1.0.16-r1.ebuild | 107 ++++++++++++++++++++++++++++++++++ |
20 |
net-misc/lldpd/metadata.xml | 1 + |
21 |
2 files changed, 108 insertions(+) |
22 |
|
23 |
diff --git a/net-misc/lldpd/lldpd-1.0.16-r1.ebuild b/net-misc/lldpd/lldpd-1.0.16-r1.ebuild |
24 |
new file mode 100644 |
25 |
index 000000000000..57f61cc2162b |
26 |
--- /dev/null |
27 |
+++ b/net-misc/lldpd/lldpd-1.0.16-r1.ebuild |
28 |
@@ -0,0 +1,107 @@ |
29 |
+# Copyright 1999-2023 Gentoo Authors |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=8 |
33 |
+ |
34 |
+inherit systemd bash-completion-r1 autotools tmpfiles |
35 |
+ |
36 |
+DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)" |
37 |
+HOMEPAGE="https://lldpd.github.io/" |
38 |
+SRC_URI="https://github.com/lldpd/lldpd/releases/download/${PV}/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="ISC" |
41 |
+SLOT="0/4.9.1" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="cdp doc +dot1 +dot3 edp fdp graph +lldpmed old-kernel sanitizers |
44 |
+ seccomp sonmp snmp static-libs test readline xml" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ acct-group/lldpd |
49 |
+ acct-user/lldpd |
50 |
+ dev-libs/libbsd |
51 |
+ >=dev-libs/libevent-2.1.11:= |
52 |
+ sys-libs/readline:0= |
53 |
+ seccomp? ( sys-libs/libseccomp:= ) |
54 |
+ snmp? ( net-analyzer/net-snmp:=[extensible(+)] ) |
55 |
+ xml? ( dev-libs/libxml2:= ) |
56 |
+" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ test? ( dev-libs/check ) |
59 |
+" |
60 |
+BDEPEND="virtual/pkgconfig |
61 |
+ doc? ( |
62 |
+ graph? ( app-doc/doxygen[dot,doc] ) |
63 |
+ !graph? ( app-doc/doxygen ) |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+REQUIRED_USE=" |
68 |
+ graph? ( doc ) |
69 |
+ test? ( snmp sanitizers ) |
70 |
+" |
71 |
+ |
72 |
+# tests need root |
73 |
+RESTRICT+=" test" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ --without-embedded-libevent \ |
84 |
+ --with-privsep-user=${PN} \ |
85 |
+ --with-privsep-group=${PN} \ |
86 |
+ --with-privsep-chroot=/run/${PN} \ |
87 |
+ --with-lldpd-ctl-socket=/run/${PN}.socket \ |
88 |
+ --with-lldpd-pid-file=/run/${PN}.pid \ |
89 |
+ $(use_enable cdp) \ |
90 |
+ $(use_enable doc doxygen-doc) \ |
91 |
+ $(use_enable doc doxygen-man) \ |
92 |
+ $(use_enable doc doxygen-pdf) \ |
93 |
+ $(use_enable doc doxygen-html) \ |
94 |
+ $(use_enable dot1) \ |
95 |
+ $(use_enable dot3) \ |
96 |
+ $(use_enable edp) \ |
97 |
+ $(use_enable fdp) \ |
98 |
+ $(use_enable graph doxygen-dot) \ |
99 |
+ $(use_enable lldpmed) \ |
100 |
+ $(use_enable old-kernel oldies) \ |
101 |
+ $(use_enable sonmp) \ |
102 |
+ $(use_enable static-libs static) \ |
103 |
+ $(use_with readline) \ |
104 |
+ $(use_enable sanitizers) \ |
105 |
+ $(use_with seccomp) \ |
106 |
+ $(use_with snmp) \ |
107 |
+ $(use_with xml) |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ emake |
112 |
+ use doc && emake doxygen-doc |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake DESTDIR="${D}" install |
117 |
+ find "${D}" -name '*.la' -delete || die |
118 |
+ |
119 |
+ newinitd "${FILESDIR}"/${PN}-initd-5 ${PN} |
120 |
+ newconfd "${FILESDIR}"/${PN}-confd-1 ${PN} |
121 |
+ newbashcomp src/client/completion/lldpcli lldpcli |
122 |
+ |
123 |
+ use doc && dodoc -r doxygen/html |
124 |
+ |
125 |
+ insinto /etc |
126 |
+ doins "${FILESDIR}/lldpd.conf" |
127 |
+ keepdir /etc/${PN}.d |
128 |
+ |
129 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
130 |
+ newtmpfiles "${FILESDIR}"/tmpfilesd ${PN}.conf |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ tmpfiles_process ${PN}.conf |
135 |
+} |
136 |
|
137 |
diff --git a/net-misc/lldpd/metadata.xml b/net-misc/lldpd/metadata.xml |
138 |
index d77375b75aca..862a9a8e9b1f 100644 |
139 |
--- a/net-misc/lldpd/metadata.xml |
140 |
+++ b/net-misc/lldpd/metadata.xml |
141 |
@@ -32,6 +32,7 @@ lldpd also implements CDP (Cisco Discovery Protocol), FDP (Foundry Discovery Pro |
142 |
<flag name="snmp">Enable the use of SNMP</flag> |
143 |
</use> |
144 |
<upstream> |
145 |
+ <remote-id type="cpe">cpe:/a:lldpd_project:lldpd</remote-id> |
146 |
<remote-id type="github">lldpd/lldpd</remote-id> |
147 |
</upstream> |
148 |
</pkgmetadata> |