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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Oct 29 00:20:07 2014 UTC (5 years, 1 month ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump, don't install extra bash-completion file (bug #526308). Remove old.

(Portage version: 2.2.14/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.11-r2.ebuild,v 1.1 2014/10/14 17:16:53 chutzpah Exp $
4
5 EAPI=5
6
7 inherit eutils user systemd bash-completion-r1 autotools
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 jansson json-c +lldpmed seccomp sonmp
17 snmp static-libs readline xml zsh-completion"
18
19 RDEPEND=">=dev-libs/libevent-2.0.5
20 snmp? ( net-analyzer/net-snmp[extensible(+)] )
21 xml? ( dev-libs/libxml2 )
22 jansson? ( dev-libs/jansson )
23 json-c? ( dev-libs/json-c )
24 seccomp? ( sys-libs/libseccomp )
25 zsh-completion? ( app-shells/zsh )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? (
29 graph? ( app-doc/doxygen[dot] )
30 !graph? ( app-doc/doxygen )
31 )"
32
33 REQUIRED_USE="graph? ( doc ) json-c? ( !jansson )"
34
35 PATCHES=(
36 "${FILESDIR}"/${P}-zsh-completion-dir.patch
37 "${FILESDIR}"/${P}-bash-completion-dir.patch
38 )
39
40 pkg_setup() {
41 ebegin "Creating lldpd user and group"
42 enewgroup ${PN}
43 enewuser ${PN} -1 -1 -1 ${PN}
44 eend $?
45 }
46
47 src_prepare() {
48 epatch "${PATCHES[@]}"
49 epatch_user
50 eautoreconf
51 }
52
53 src_configure() {
54 econf \
55 --without-embedded-libevent \
56 --with-privsep-user=${PN} \
57 --with-privsep-group=${PN} \
58 --with-privsep-chroot=/run/${PN} \
59 --with-lldpd-ctl-socket=/run/${PN}.socket \
60 --with-lldpd-pid-file=/run/${PN}.pid \
61 --docdir=/usr/share/doc/${PF} \
62 $(use_enable graph doxygen-dot) \
63 $(use_enable doc doxygen-man) \
64 $(use_enable doc doxygen-pdf) \
65 $(use_enable doc doxygen-html) \
66 $(use_enable cdp) \
67 $(use_enable dot1) \
68 $(use_enable dot3) \
69 $(use_enable edp) \
70 $(use_enable fdp) \
71 $(use_enable lldpmed) \
72 $(use_enable sonmp) \
73 $(use_enable static-libs static) \
74 $(use_with json-c) \
75 $(use_with jansson) \
76 $(use_with readline) \
77 $(use_with seccomp) \
78 $(use_with snmp) \
79 $(use_with xml)
80 }
81
82 src_compile() {
83 emake
84 use doc && emake doxygen-doc
85 }
86
87 src_install() {
88 emake DESTDIR="${D}" install
89 prune_libtool_files
90
91 newinitd "${FILESDIR}"/${PN}-initd-4 ${PN}
92 newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
93 newbashcomp src/client/lldpcli.bash-completion lldpcli
94
95 use doc && dohtml -r doxygen/html/*
96
97 keepdir /etc/${PN}.d
98
99 systemd_dounit "${FILESDIR}"/${PN}.service
100 }

  ViewVC Help
Powered by ViewVC 1.1.20