/[gentoo-x86]/net-misc/lldpd/lldpd-0.7.9-r2.ebuild
Gentoo

Contents of /net-misc/lldpd/lldpd-0.7.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 8 23:17:39 2014 UTC (5 years, 5 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Another revision bump, this one to fix the init script so the rundir gets created properly.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI=5
6
7 inherit eutils user systemd
8
9 DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)"
10 HOMEPAGE="http://vincentbernat.github.com/lldpd/"
11 SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz"
12
13 LICENSE="ISC"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="cdp doc +dot1 +dot3 edp fdp graph json +lldpmed seccomp sonmp snmp static-libs readline xml"
17
18 RDEPEND=">=dev-libs/libevent-2.0.5
19 snmp? ( net-analyzer/net-snmp[extensible(+)] )
20 xml? ( dev-libs/libxml2 )
21 json? ( dev-libs/jansson )
22 seccomp? ( sys-libs/libseccomp )"
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig
25 doc? (
26 graph? ( app-doc/doxygen[dot] )
27 !graph? ( app-doc/doxygen )
28 )"
29
30 REQUIRED_USE="graph? ( doc )"
31
32 pkg_setup() {
33 ebegin "Creating lldpd user and group"
34 enewgroup ${PN}
35 enewuser ${PN} -1 -1 -1 ${PN}
36 eend $?
37 }
38
39 src_prepare() {
40 epatch "${FILESDIR}"/${P}-seccomp-add-syscalls.patch
41 epatch_user
42 }
43
44 src_configure() {
45 econf \
46 --without-embedded-libevent \
47 --with-privsep-user=${PN} \
48 --with-privsep-group=${PN} \
49 --with-privsep-chroot=/run/${PN} \
50 --with-lldpd-ctl-socket=/run/${PN}.socket \
51 --with-lldpd-pid-file=/run/${PN}.pid \
52 --docdir=/usr/share/doc/${PF} \
53 $(use_enable graph doxygen-dot) \
54 $(use_enable doc doxygen-man) \
55 $(use_enable doc doxygen-pdf) \
56 $(use_enable doc doxygen-html) \
57 $(use_enable cdp) \
58 $(use_enable dot1) \
59 $(use_enable dot3) \
60 $(use_enable edp) \
61 $(use_enable fdp) \
62 $(use_enable lldpmed) \
63 $(use_enable sonmp) \
64 $(use_enable static-libs static) \
65 $(use_with json) \
66 $(use_with readline) \
67 $(use_with seccomp) \
68 $(use_with snmp) \
69 $(use_with xml)
70 }
71
72 src_compile() {
73 emake
74 use doc && emake doxygen-doc
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install
79 prune_libtool_files
80
81 newinitd "${FILESDIR}"/${PN}-initd-2 ${PN}
82 newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
83
84 use doc && dohtml -r doxygen/html/*
85
86 keepdir /etc/${PN}.d
87
88 systemd_dounit "${FILESDIR}"/${PN}.service
89 }

  ViewVC Help
Powered by ViewVC 1.1.20