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

Contents of /net-misc/lldpd/lldpd-0.7.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Feb 21 18:47:03 2014 UTC (5 years, 11 months ago) by chutzpah
Branch: MAIN
Version bump (bug #501994), add seccomp USE flag.

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

1 chutzpah 1.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.6.ebuild,v 1.1 2013/08/05 21:15:11 chutzpah Exp $
4    
5     EAPI=5
6    
7     inherit eutils user
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     # remove the bundled libevent
41     rm -rf libevent
42     epatch "${FILESDIR}"/${P}-fix-readline-wrapper.patch
43    
44     epatch_user
45     }
46    
47     src_configure() {
48     econf \
49     --with-privsep-user=${PN} \
50     --with-privsep-group=${PN} \
51     --with-privsep-chroot=/var/lib/${PN} \
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-1 ${PN}
82     newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
83    
84     use doc && dohtml -r doxygen/html/*
85    
86     keepdir /var/lib/${PN}
87     }

  ViewVC Help
Powered by ViewVC 1.1.20