1*4882a593SmuzhiyunSUMMARY = "Open-LLDP"
2*4882a593SmuzhiyunDESCRIPTION = "Link Layer Discovery Protocol for Linux that includes support for DCBX"
3*4882a593SmuzhiyunHOMEPAGE = "http://open-lldp.org/start"
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=8c2bc283e65df398ced5f5b747e78162"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunS = "${WORKDIR}/git"
9*4882a593Smuzhiyun
10*4882a593Smuzhiyuninherit pkgconfig autotools
11*4882a593Smuzhiyuninherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunDEPENDS = "libnl libconfig readline"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRCREV = "b71bfb87fefb31c4b1a6a7ae351791c90966c3a8"
16*4882a593SmuzhiyunPV .= "+git${SRCPV}"
17*4882a593SmuzhiyunSRC_URI = "git://github.com/intel/openlldp.git;protocol=https;branch=master \
18*4882a593Smuzhiyun           file://0001-Fix-musl-libc-build-issue.patch \
19*4882a593Smuzhiyun           file://0001-autotools-Add-include-path-to-generated-version.h.patch \
20*4882a593Smuzhiyun           file://0001-autotools-Add-option-to-disable-installation-of-syst.patch \
21*4882a593Smuzhiyun           file://0001-cmds-fix-enum-conversion.patch \
22*4882a593Smuzhiyun           file://0002-lldp_head-rename-and-make-extern.patch \
23*4882a593Smuzhiyun           file://0003-lldp-add-packed-struct-definition.patch \
24*4882a593Smuzhiyun           file://0004-lldptool-make-extern.patch \
25*4882a593Smuzhiyun           file://0005-cisco_oui-match-encode-handler-prototypes.patch \
26*4882a593Smuzhiyun           file://0006-ecp22-make-enum-a-type-rather-than-instance.patch \
27*4882a593Smuzhiyun           file://0007-lldp_8021qaz-extern-config-object.patch \
28*4882a593Smuzhiyun           file://0008-stringops-fix-some-string-copy-errors.patch \
29*4882a593Smuzhiyun           file://0009-8021qaz-mark-prio-map-functions-static.patch \
30*4882a593Smuzhiyun           file://lldp_head-remove-all-references.patch \
31*4882a593Smuzhiyun           "
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun# Makefile.am adds -Werror to AM_CFLAGS. There are warnings so disable it.
34*4882a593SmuzhiyunTARGET_CFLAGS += "-Wno-error"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun# Enable install of systemd conf files.
37*4882a593SmuzhiyunEXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_system_unitdir}', '', d)}"
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "lldpad.service lldpad.socket"
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun# To enable service at boot set to enable in local.conf.
42*4882a593SmuzhiyunSYSTEMD_AUTO_ENABLE ?= "disable"
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunRRECOMMENDS:${PN} = "iproute2-tc"
45