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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 13 18:06:06 2014 UTC (5 years, 2 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump, make sure to pass LLDPD_OPTS to the command line (bug #525190). Remove old.

(Portage version: 2.2.14_rc1/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.ebuild,v 1.1 2014/10/09 21:38:31 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 )
38
39 pkg_setup() {
40 ebegin "Creating lldpd user and group"
41 enewgroup ${PN}
42 enewuser ${PN} -1 -1 -1 ${PN}
43 eend $?
44 }
45
46 src_prepare() {
47 epatch "${PATCHES[@]}"
48 epatch_user
49 eautoreconf
50 }
51
52 src_configure() {
53 econf \
54 --without-embedded-libevent \
55 --with-privsep-user=${PN} \
56 --with-privsep-group=${PN} \
57 --with-privsep-chroot=/run/${PN} \
58 --with-lldpd-ctl-socket=/run/${PN}.socket \
59 --with-lldpd-pid-file=/run/${PN}.pid \
60 --docdir=/usr/share/doc/${PF} \
61 $(use_enable graph doxygen-dot) \
62 $(use_enable doc doxygen-man) \
63 $(use_enable doc doxygen-pdf) \
64 $(use_enable doc doxygen-html) \
65 $(use_enable cdp) \
66 $(use_enable dot1) \
67 $(use_enable dot3) \
68 $(use_enable edp) \
69 $(use_enable fdp) \
70 $(use_enable lldpmed) \
71 $(use_enable sonmp) \
72 $(use_enable static-libs static) \
73 $(use_with json-c) \
74 $(use_with jansson) \
75 $(use_with readline) \
76 $(use_with seccomp) \
77 $(use_with snmp) \
78 $(use_with xml)
79 }
80
81 src_compile() {
82 emake
83 use doc && emake doxygen-doc
84 }
85
86 src_install() {
87 emake DESTDIR="${D}" install
88 prune_libtool_files
89
90 newinitd "${FILESDIR}"/${PN}-initd-3 ${PN}
91 newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
92 newbashcomp src/client/lldpcli.bash-completion lldpcli
93
94 use doc && dohtml -r doxygen/html/*
95
96 keepdir /etc/${PN}.d
97
98 systemd_dounit "${FILESDIR}"/${PN}.service
99 }

  ViewVC Help
Powered by ViewVC 1.1.20