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: lldpd-0.7.9-r3.ebuild ChangeLog lldpd-0.7.9-r2.ebuild
Date: Tue, 08 Jul 2014 23:17:44
Message-Id: 20140708231739.5E3AE2004E@flycatcher.gentoo.org
1 chutzpah 14/07/08 23:17:39
2
3 Modified: ChangeLog
4 Added: lldpd-0.7.9-r3.ebuild
5 Removed: lldpd-0.7.9-r2.ebuild
6 Log:
7 Another revision bump, this one to fix the init script so the rundir gets created properly.
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
10
11 Revision Changes Path
12 1.17 net-misc/lldpd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.17&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.17&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?r1=1.16&r2=1.17
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v
21 retrieving revision 1.16
22 retrieving revision 1.17
23 diff -u -r1.16 -r1.17
24 --- ChangeLog 8 Jul 2014 18:34:25 -0000 1.16
25 +++ ChangeLog 8 Jul 2014 23:17:39 -0000 1.17
26 @@ -1,6 +1,13 @@
27 # ChangeLog for net-misc/lldpd
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.16 2014/07/08 18:34:25 chutzpah Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.17 2014/07/08 23:17:39 chutzpah Exp $
31 +
32 +*lldpd-0.7.9-r3 (08 Jul 2014)
33 +
34 + 08 Jul 2014; Patrick McLean <chutzpah@g.o> -lldpd-0.7.9-r2.ebuild,
35 + +lldpd-0.7.9-r3.ebuild, -files/lldpd-initd-2, +files/lldpd-initd-3:
36 + Another revision bump, this one to fix the init script so the rundir gets
37 + created properly.
38
39 *lldpd-0.7.9-r2 (08 Jul 2014)
40
41
42
43
44 1.1 net-misc/lldpd/lldpd-0.7.9-r3.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.9-r3.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.9-r3.ebuild?rev=1.1&content-type=text/plain
48
49 Index: lldpd-0.7.9-r3.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/lldpd-0.7.9-r3.ebuild,v 1.1 2014/07/08 23:17:39 chutzpah Exp $
54
55 EAPI=5
56
57 inherit eutils user systemd
58
59 DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)"
60 HOMEPAGE="http://vincentbernat.github.com/lldpd/"
61 SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz"
62
63 LICENSE="ISC"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="cdp doc +dot1 +dot3 edp fdp graph json +lldpmed seccomp sonmp snmp static-libs readline xml"
67
68 RDEPEND=">=dev-libs/libevent-2.0.5
69 snmp? ( net-analyzer/net-snmp[extensible(+)] )
70 xml? ( dev-libs/libxml2 )
71 json? ( dev-libs/jansson )
72 seccomp? ( sys-libs/libseccomp )"
73 DEPEND="${RDEPEND}
74 virtual/pkgconfig
75 doc? (
76 graph? ( app-doc/doxygen[dot] )
77 !graph? ( app-doc/doxygen )
78 )"
79
80 REQUIRED_USE="graph? ( doc )"
81
82 pkg_setup() {
83 ebegin "Creating lldpd user and group"
84 enewgroup ${PN}
85 enewuser ${PN} -1 -1 -1 ${PN}
86 eend $?
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${P}-seccomp-add-syscalls.patch
91 epatch_user
92 }
93
94 src_configure() {
95 econf \
96 --without-embedded-libevent \
97 --with-privsep-user=${PN} \
98 --with-privsep-group=${PN} \
99 --with-privsep-chroot=/run/${PN} \
100 --with-lldpd-ctl-socket=/run/${PN}.socket \
101 --with-lldpd-pid-file=/run/${PN}.pid \
102 --docdir=/usr/share/doc/${PF} \
103 $(use_enable graph doxygen-dot) \
104 $(use_enable doc doxygen-man) \
105 $(use_enable doc doxygen-pdf) \
106 $(use_enable doc doxygen-html) \
107 $(use_enable cdp) \
108 $(use_enable dot1) \
109 $(use_enable dot3) \
110 $(use_enable edp) \
111 $(use_enable fdp) \
112 $(use_enable lldpmed) \
113 $(use_enable sonmp) \
114 $(use_enable static-libs static) \
115 $(use_with json) \
116 $(use_with readline) \
117 $(use_with seccomp) \
118 $(use_with snmp) \
119 $(use_with xml)
120 }
121
122 src_compile() {
123 emake
124 use doc && emake doxygen-doc
125 }
126
127 src_install() {
128 emake DESTDIR="${D}" install
129 prune_libtool_files
130
131 newinitd "${FILESDIR}"/${PN}-initd-3 ${PN}
132 newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
133
134 use doc && dohtml -r doxygen/html/*
135
136 keepdir /etc/${PN}.d
137
138 systemd_dounit "${FILESDIR}"/${PN}.service
139 }