summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb')
-rw-r--r--meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb68
1 files changed, 68 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb b/meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb
new file mode 100644
index 0000000000..47d3c38ed0
--- /dev/null
+++ b/meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb
@@ -0,0 +1,68 @@
1SUMMARY = "A 802.1ab implementation (LLDP) to help you locate neighbors of all your equipments"
2SECTION = "net/misc"
3LICENSE = "ISC"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/ISC;md5=f3b90e78ea0cffb20bf5cca7947a896d"
5
6DEPENDS = "libbsd libevent"
7
8SRC_URI = "\
9 http://media.luffy.cx/files/${PN}/${PN}-${PV}.tar.gz \
10 file://lldpd.init.d \
11 file://lldpd.default \
12 file://fix-libevent-configure.patch \
13 "
14
15SRC_URI[md5sum] = "8cb74065956bc32a575ee5203b0e0fb5"
16SRC_URI[sha256sum] = "6b50b8aa47d1424a93ba3df55af26da41f7d5718db8d25e99291c4a6cd09c20e"
17
18inherit autotools update-rc.d useradd systemd pkgconfig
19
20USERADD_PACKAGES = "${PN}"
21USERADD_PARAM_${PN} = "--system -g lldpd --shell /bin/false lldpd"
22GROUPADD_PARAM_${PN} = "--system lldpd"
23
24EXTRA_OECONF += "--without-embedded-libevent \
25 --disable-oldies \
26 --with-privsep-user=lldpd \
27 --with-privsep-group=lldpd"
28
29PACKAGECONFIG ??= "cdp fdp edp sonmp lldpmed dot1 dot3"
30PACKAGECONFIG[json] = "--with-json,--without-json,jansson"
31PACKAGECONFIG[xml] = "--with-xml,--without-xml,libxm2"
32PACKAGECONFIG[snmp] = "--with-snmp,--without-snmp,net-snmp"
33PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
34PACKAGECONFIG[seccomp] = "--with-seccomp,--without-seccomp,libseccomp"
35PACKAGECONFIG[cdp] = "--enable-cdp,--disable-cdp"
36PACKAGECONFIG[fdp] = "--enable-fdp,--disable-fdp"
37PACKAGECONFIG[edp] = "--enable-edp,--disable-edp"
38PACKAGECONFIG[sonmp] = "--enable-sonmp,--disable-sonmp"
39PACKAGECONFIG[lldpmed] = "--enable-lldpmed,--disable-lldpmed"
40PACKAGECONFIG[dot1] = "--enable-dot1,--disable-dot1"
41PACKAGECONFIG[dot3] = "--enable-dot3,--disable-dot3"
42PACKAGECONFIG[custom] = "--enable-custom,--disable-custom"
43
44INITSCRIPT_NAME = "lldpd"
45INITSCRIPT_PARAMS = "defaults"
46
47SYSTEMD_SERVICE_${PN} = "lldpd.service"
48
49do_install_append() {
50 install -Dm 0755 ${WORKDIR}/lldpd.init.d ${D}${sysconfdir}/init.d/lldpd
51 install -Dm 0644 ${WORKDIR}/lldpd.default ${D}${sysconfdir}/default/lldpd
52 # Make an empty configuration file
53 touch ${D}${sysconfdir}/lldpd.conf
54}
55
56PACKAGES =+ "${PN}-bash-completion ${PN}-zsh-completion"
57
58FILES_${PN} += "${libdir}/sysusers.d"
59RDEPENDS_${PN} += "os-release"
60
61FILES_${PN}-bash-completion += "${sysconfdir}/bash_completion.d/ \
62 ${datadir}/bash-completion/ \
63 "
64RDEPENDS_${PN}-bash-completion += "bash"
65
66FILES_${PN}-zsh-completion += "${datadir}/zsh/"
67# FIXME: zsh is broken in meta-oe so this cannot be enabled for now
68#RDEPENDS_${PN}-zsh-completion += "zsh"