1 |
commit: 5fbda1d59d4f5f82ed7694644478e41379cd245a |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Fri Aug 23 17:40:50 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 23 17:46:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fbda1d5 |
7 |
|
8 |
net-misc/lldpd: Version bump to 1.0.4 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
net-misc/lldpd/Manifest | 1 + |
15 |
net-misc/lldpd/lldpd-1.0.4.ebuild | 105 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 106 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest |
19 |
index 31d5455509f..0dca7523c58 100644 |
20 |
--- a/net-misc/lldpd/Manifest |
21 |
+++ b/net-misc/lldpd/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST lldpd-0.9.3.tar.gz 1601102 BLAKE2B 0ba31d20dad9770c93fa4930a7c439273c36e5cebdb0b4a1674f0a375008f642e33d71b9668c91313ec4bb3311e1b4bd22d0996ed6347d2cacfd7cce24536a58 SHA512 0d40d77bfde78f9ceece56968981f3a36bd7e683b12de05e84e5da0409b8e0d06062e5d665942637a66164af0254a6ac3d1a327aab3bcb48ec91ecfdd2693283 |
24 |
DIST lldpd-1.0.1.tar.gz 1590903 BLAKE2B 37ff1c042537ac31f394986f1bbd3faf13105d07f340ed045a4bbc196912c0c017a5d60b2c6a89b0da9faa5a7ff8e9c4ef0d4d01a39504a31c23288a89eb92a3 SHA512 61b2a7a3a78276c613c6d0b34eb625e69e5c8a206b6658a167d6a09ac6d0e1c943e46c0ff6fc3538a791d9947f193185b65848da581b3d6ecb9bc0befadde8dd |
25 |
DIST lldpd-1.0.3.tar.gz 1605563 BLAKE2B 968d1c2e046049fd9ba9e9af7b8cb4f531fbd99f41a9157679f3694f800b0da1a4dd3b21feac583fa5cde3f57b022e2d6ee543ea349e1136037ba10419e3c855 SHA512 bae121a707d06726830dbb6b45210c1ed23aa2a99349a68d088b3ae3109504a6b462c7b0abf8543297083294519be2878779edf1a41bb73fe002bb6c9f966ef1 |
26 |
+DIST lldpd-1.0.4.tar.gz 1607806 BLAKE2B 28fc45b0f2fe958e5d0aac370b54fda286aa4f04c228eeb12a2f60ea6643f63a7de3831ee3f0a060cd4de3849e75b58fdb6a868dc1aa0f8dc4b516fdd4f4ead0 SHA512 a5537acf2ca3be22a70124101c1c70713e655aee8d6344d25901aa5eff1efd5afb221364b9c92388bf3edf74c4cd5841fb7c9ba77745ac3cd80051bc0bad1ac9 |
27 |
|
28 |
diff --git a/net-misc/lldpd/lldpd-1.0.4.ebuild b/net-misc/lldpd/lldpd-1.0.4.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..04dd3d66540 |
31 |
--- /dev/null |
32 |
+++ b/net-misc/lldpd/lldpd-1.0.4.ebuild |
33 |
@@ -0,0 +1,105 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit eutils user systemd bash-completion-r1 autotools |
40 |
+ |
41 |
+DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)" |
42 |
+HOMEPAGE="https://vincentbernat.github.com/lldpd/" |
43 |
+SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="ISC" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="cdp doc +dot1 +dot3 edp fdp graph +lldpmed old-kernel sanitizers |
49 |
+ seccomp sonmp snmp static-libs test readline xml zsh-completion" |
50 |
+ |
51 |
+RDEPEND="dev-libs/libbsd |
52 |
+ >=dev-libs/libevent-2.0.5:= |
53 |
+ sys-libs/readline:0= |
54 |
+ snmp? ( net-analyzer/net-snmp[extensible(+)] ) |
55 |
+ xml? ( dev-libs/libxml2:= ) |
56 |
+ seccomp? ( sys-libs/libseccomp:= ) |
57 |
+ zsh-completion? ( app-shells/zsh )" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ test? ( dev-libs/check )" |
60 |
+BDEPEND="virtual/pkgconfig |
61 |
+ doc? ( |
62 |
+ graph? ( app-doc/doxygen[dot] ) |
63 |
+ !graph? ( app-doc/doxygen ) |
64 |
+ )" |
65 |
+ |
66 |
+REQUIRED_USE="graph? ( doc )" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/lldpd-0.9.5-seccomp-add-socket-ops.patch" |
70 |
+ "${FILESDIR}/lldpd-1.0.1-seccomp-add-brk.patch" |
71 |
+ "${FILESDIR}/lldpd-1.0.2-seccomp-add-misc.patch" |
72 |
+) |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ ebegin "Creating lldpd user and group" |
76 |
+ enewgroup ${PN} |
77 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
78 |
+ eend $? |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ eautoreconf |
85 |
+ elibtoolize |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ econf \ |
90 |
+ --without-embedded-libevent \ |
91 |
+ --with-privsep-user=${PN} \ |
92 |
+ --with-privsep-group=${PN} \ |
93 |
+ --with-privsep-chroot=/run/${PN} \ |
94 |
+ --with-lldpd-ctl-socket=/run/${PN}.socket \ |
95 |
+ --with-lldpd-pid-file=/run/${PN}.pid \ |
96 |
+ --docdir=/usr/share/doc/${PF} \ |
97 |
+ $(use_enable cdp) \ |
98 |
+ $(use_enable doc doxygen-man) \ |
99 |
+ $(use_enable doc doxygen-pdf) \ |
100 |
+ $(use_enable doc doxygen-html) \ |
101 |
+ $(use_enable dot1) \ |
102 |
+ $(use_enable dot3) \ |
103 |
+ $(use_enable edp) \ |
104 |
+ $(use_enable fdp) \ |
105 |
+ $(use_enable graph doxygen-dot) \ |
106 |
+ $(use_enable lldpmed) \ |
107 |
+ $(use_enable old-kernel oldies) \ |
108 |
+ $(use_enable sonmp) \ |
109 |
+ $(use_enable static-libs static) \ |
110 |
+ $(use_with readline) \ |
111 |
+ $(use_enable sanitizers) \ |
112 |
+ $(use_with seccomp) \ |
113 |
+ $(use_with snmp) \ |
114 |
+ $(use_with xml) |
115 |
+} |
116 |
+ |
117 |
+src_compile() { |
118 |
+ emake |
119 |
+ use doc && emake doxygen-doc |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ emake DESTDIR="${D}" install |
124 |
+ find "${D}" -name '*.la' -delete || die |
125 |
+ |
126 |
+ newinitd "${FILESDIR}"/${PN}-initd-5 ${PN} |
127 |
+ newconfd "${FILESDIR}"/${PN}-confd-1 ${PN} |
128 |
+ newbashcomp src/client/completion/lldpcli lldpcli |
129 |
+ |
130 |
+ use doc && dodoc -r doxygen/html |
131 |
+ |
132 |
+ insinto /etc |
133 |
+ doins "${FILESDIR}/lldpd.conf" |
134 |
+ keepdir /etc/${PN}.d |
135 |
+ |
136 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
137 |
+ systemd_newtmpfilesd "${FILESDIR}"/tmpfilesd ${PN}.conf |
138 |
+} |