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