Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/lldpd: ChangeLog metadata.xml lldpd-0.7.10.ebuild
Date: Mon, 22 Sep 2014 18:09:24
Message-Id: 20140922180919.A2D865F29@oystercatcher.gentoo.org
1 chutzpah 14/09/22 18:09:19
2
3 Modified: ChangeLog metadata.xml
4 Added: lldpd-0.7.10.ebuild
5 Log:
6 Version bump, add json-c USE flag and rename json to jansson. Import bash and zsh completions from upstream git. Import some bugfix patches from upstream.
7
8 (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
9
10 Revision Changes Path
11 1.18 net-misc/lldpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 8 Jul 2014 23:17:39 -0000 1.17
24 +++ ChangeLog 22 Sep 2014 18:09:19 -0000 1.18
25 @@ -1,6 +1,16 @@
26 # ChangeLog for net-misc/lldpd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.17 2014/07/08 23:17:39 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.18 2014/09/22 18:09:19 chutzpah Exp $
30 +
31 +*lldpd-0.7.10 (22 Sep 2014)
32 +
33 + 22 Sep 2014; Patrick McLean <chutzpah@g.o> +lldpd-0.7.10.ebuild,
34 + +files/lldpd-0.7.10-completions.patch,
35 + +files/lldpd-0.7.10-handle-read-errors.patch,
36 + +files/lldpd-0.7.10-only-use-physical-for-chassis-id.patch,
37 + +files/lldpd-0.7.10-zsh-completion-dir.patch, metadata.xml:
38 + Version bump, add json-c USE flag and rename json to jansson. Import bash and
39 + zsh completions from upstream git. Import some bugfix patches from upstream.
40
41 *lldpd-0.7.9-r3 (08 Jul 2014)
42
43
44
45
46 1.5 net-misc/lldpd/metadata.xml
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/metadata.xml?rev=1.5&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/metadata.xml?rev=1.5&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/metadata.xml?r1=1.4&r2=1.5
51
52 Index: metadata.xml
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/net-misc/lldpd/metadata.xml,v
55 retrieving revision 1.4
56 retrieving revision 1.5
57 diff -u -r1.4 -r1.5
58 --- metadata.xml 21 Feb 2014 18:47:02 -0000 1.4
59 +++ metadata.xml 22 Sep 2014 18:09:19 -0000 1.5
60 @@ -25,7 +25,9 @@
61 <flag name='dot3'>Enable Dot3 extension (PHY stuff)</flag>
62 <flag name='edp'>Enable Extreme Discovery Protocol</flag>
63 <flag name='fdp'>Enable Foundry Discovery Protocol</flag>
64 + <flag name='jansson'>Enable JSON output via Jansson</flag>
65 <flag name='json'>Enable JSON output via Jansson</flag>
66 + <flag name='json-c'>Enable JSON output via json-c</flag>
67 <flag name='lldpmed'>Enable LLDP-MED extension</flag>
68 <flag name='seccomp'>Enable use of libseccomp for system call filtering</flag>
69 <flag name='sonmp'>Enable SynOptics Network Management</flag>
70
71
72
73 1.1 net-misc/lldpd/lldpd-0.7.10.ebuild
74
75 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.10.ebuild?rev=1.1&view=markup
76 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.10.ebuild?rev=1.1&content-type=text/plain
77
78 Index: lldpd-0.7.10.ebuild
79 ===================================================================
80 # Copyright 1999-2014 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 # $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/lldpd-0.7.10.ebuild,v 1.1 2014/09/22 18:09:19 chutzpah Exp $
83
84 EAPI=5
85
86 inherit eutils user systemd bash-completion-r1
87
88 DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)"
89 HOMEPAGE="http://vincentbernat.github.com/lldpd/"
90 SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz"
91
92 LICENSE="ISC"
93 SLOT="0"
94 KEYWORDS="~amd64 ~x86"
95 IUSE="cdp doc +dot1 +dot3 edp fdp graph jansson json-c +lldpmed seccomp sonmp
96 snmp static-libs readline xml zsh-completion"
97
98 RDEPEND=">=dev-libs/libevent-2.0.5
99 snmp? ( net-analyzer/net-snmp[extensible(+)] )
100 xml? ( dev-libs/libxml2 )
101 jansson? ( dev-libs/jansson )
102 json-c? ( dev-libs/json-c )
103 seccomp? ( sys-libs/libseccomp )
104 zsh-completion? ( app-shells/zsh )"
105 DEPEND="${RDEPEND}
106 virtual/pkgconfig
107 doc? (
108 graph? ( app-doc/doxygen[dot] )
109 !graph? ( app-doc/doxygen )
110 )"
111
112 REQUIRED_USE="graph? ( doc ) json-c? ( !jansson )"
113
114 PATCHES=(
115 "${FILESDIR}"/${P}-completions.patch
116 "${FILESDIR}"/${P}-handle-read-errors.patch
117 "${FILESDIR}"/${P}-only-use-physical-for-chassis-id.patch
118 "${FILESDIR}"/${P}-zsh-completion-dir.patch
119 )
120
121 pkg_setup() {
122 ebegin "Creating lldpd user and group"
123 enewgroup ${PN}
124 enewuser ${PN} -1 -1 -1 ${PN}
125 eend $?
126 }
127
128 src_prepare() {
129 epatch "${PATCHES[@]}"
130 epatch_user
131 }
132
133 src_configure() {
134 econf \
135 --without-embedded-libevent \
136 --with-privsep-user=${PN} \
137 --with-privsep-group=${PN} \
138 --with-privsep-chroot=/run/${PN} \
139 --with-lldpd-ctl-socket=/run/${PN}.socket \
140 --with-lldpd-pid-file=/run/${PN}.pid \
141 --docdir=/usr/share/doc/${PF} \
142 $(use_enable graph doxygen-dot) \
143 $(use_enable doc doxygen-man) \
144 $(use_enable doc doxygen-pdf) \
145 $(use_enable doc doxygen-html) \
146 $(use_enable cdp) \
147 $(use_enable dot1) \
148 $(use_enable dot3) \
149 $(use_enable edp) \
150 $(use_enable fdp) \
151 $(use_enable lldpmed) \
152 $(use_enable sonmp) \
153 $(use_enable static-libs static) \
154 $(use_with json-c) \
155 $(use_with jansson) \
156 $(use_with readline) \
157 $(use_with seccomp) \
158 $(use_with snmp) \
159 $(use_with xml)
160 }
161
162 src_compile() {
163 emake
164 use doc && emake doxygen-doc
165 }
166
167 src_install() {
168 emake DESTDIR="${D}" install
169 prune_libtool_files
170
171 newinitd "${FILESDIR}"/${PN}-initd-3 ${PN}
172 newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
173 newbashcomp src/client/lldpcli.bash-completion lldpcli
174
175 if use zsh-completion; then
176 insinto /usr/share/zsh/site-functions
177 doins src/client/_lldpcli
178 fi
179
180 use doc && dohtml -r doxygen/html/*
181
182 keepdir /etc/${PN}.d
183
184 systemd_dounit "${FILESDIR}"/${PN}.service
185 }