1 |
chutzpah 14/07/07 22:08:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lldpd-0.7.9-r1.ebuild |
5 |
Log: |
6 |
Revision bump, add patch to make pidfile creation work properly with privilege separation. Rework init script to be much more robust. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 net-misc/lldpd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/ChangeLog?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -u -r1.14 -r1.15 |
23 |
--- ChangeLog 1 Jul 2014 18:01:53 -0000 1.14 |
24 |
+++ ChangeLog 7 Jul 2014 22:08:35 -0000 1.15 |
25 |
@@ -1,6 +1,14 @@ |
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.14 2014/07/01 18:01:53 chutzpah Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.15 2014/07/07 22:08:35 chutzpah Exp $ |
30 |
+ |
31 |
+*lldpd-0.7.9-r1 (07 Jul 2014) |
32 |
+ |
33 |
+ 07 Jul 2014; Patrick McLean <chutzpah@g.o> +lldpd-0.7.9-r1.ebuild, |
34 |
+ +files/lldpd-0.7.9-dont-fork-after-making-pidfile.patch, |
35 |
+ +files/lldpd-initd-2: |
36 |
+ Revision bump, add patch to make pidfile creation work properly with |
37 |
+ privilege separation. Rework init script to be much more robust. |
38 |
|
39 |
*lldpd-0.7.9 (01 Jul 2014) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-misc/lldpd/lldpd-0.7.9-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.9-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lldpd/lldpd-0.7.9-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: lldpd-0.7.9-r1.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-r1.ebuild,v 1.1 2014/07/07 22:08:36 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 |
# remove the bundled libevent |
91 |
rm -rf libevent |
92 |
|
93 |
epatch "${FILESDIR}"/${P}-dont-fork-after-making-pidfile.patch |
94 |
epatch_user |
95 |
} |
96 |
|
97 |
src_configure() { |
98 |
econf \ |
99 |
--with-privsep-user=${PN} \ |
100 |
--with-privsep-group=${PN} \ |
101 |
--with-privsep-chroot=/run/${PN} \ |
102 |
--with-lldpd-ctl-socket=/run/${PN}.socket \ |
103 |
--with-lldpd-pid-file=/run/${PN}.pid \ |
104 |
--docdir=/usr/share/doc/${PF} \ |
105 |
$(use_enable graph doxygen-dot) \ |
106 |
$(use_enable doc doxygen-man) \ |
107 |
$(use_enable doc doxygen-pdf) \ |
108 |
$(use_enable doc doxygen-html) \ |
109 |
$(use_enable cdp) \ |
110 |
$(use_enable dot1) \ |
111 |
$(use_enable dot3) \ |
112 |
$(use_enable edp) \ |
113 |
$(use_enable fdp) \ |
114 |
$(use_enable lldpmed) \ |
115 |
$(use_enable sonmp) \ |
116 |
$(use_enable static-libs static) \ |
117 |
$(use_with json) \ |
118 |
$(use_with readline) \ |
119 |
$(use_with seccomp) \ |
120 |
$(use_with snmp) \ |
121 |
$(use_with xml) |
122 |
} |
123 |
|
124 |
src_compile() { |
125 |
emake |
126 |
use doc && emake doxygen-doc |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
emake DESTDIR="${D}" install |
131 |
prune_libtool_files |
132 |
|
133 |
newinitd "${FILESDIR}"/${PN}-initd-2 ${PN} |
134 |
newconfd "${FILESDIR}"/${PN}-confd-1 ${PN} |
135 |
|
136 |
use doc && dohtml -r doxygen/html/* |
137 |
|
138 |
keepdir /var/lib/${PN} |
139 |
|
140 |
systemd_dounit "${FILESDIR}"/${PN}.service |
141 |
} |