1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 DESCRIPTION="The Link Layer Discovery Protocol"
6 HOMEPAGE="http://openlldp.sourceforge.net"
8 SRC_URI="http://downloads.sourceforge.net/${PN}/${MY_P}.tar.gz"
13 KEYWORDS="~x86 ~amd64"
16 DEPEND="libpcap? ( net-libs/libpcap )"
20 use libpcap && myconf=" --enable-generic-framer"
21 use debug && myconf="${myconf} --enable-efence"
23 econf --prefix=/usr/lib/openlldp \
25 || die "Error: econf failed!"
26 emake || die "emake failed"
30 make DESTDIR="${D}" install || die "emake install failed"
33 newinitd "${FILESDIR}"/openlldp.initd lldpd
34 newconfd "${FILESDIR}"/openlldp.confd lldpd
38 elog "This is an experimental ebuild. Use with caution."
40 ! use libpcap && elog "The kernel module \"af_packet\" is needed for this tool to run."