blob: 87bf5b22d92f518e4578ee032200f51693315b86 [file] [log] [blame]
developer6040b462022-07-01 13:42:44 +08001DESCRIPTION = "OpenWrt AP roaming assist daemon"
2HOMEPAGE = "https://git.openwrt.org/project/usteer.git"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://README.md;md5=26019f6caa040c198cccce12a534366f"
5SECTION = "kernel/userland"
6DEPENDS = "json-c libubox ubus libnl-tiny libpcap"
7
8SRC_URI = "git://git.openwrt.org/project/usteer.git"
9
10SRCREV = "${AUTOREV}"
11PV = "git${SRCPV}"
12
13S = "${WORKDIR}/git"
14
15inherit cmake pkgconfig
16
17do_install_append () {
18 install -dm 0755 ${D}/sbin
19 ln -s /usr/sbin/usteerd ${D}/sbin/usteerd
20}
21
22FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
23
24inherit ${@d.getVar('DISTRO', True) == 'rdk' and 'systemd' or 'base'}
25
26SRC_URI_append_rdk += "\
27 file://usteer.service \
28"
29SYSTEMD_AUTO_ENABLE_${PN} = "disable"
30SYSTEMD_SERVICE_${PN}_rdk = "usteer.service"
31
32do_install_append_rdk() {
33 # Install systemd unit files
34 install -d ${D}${systemd_unitdir}/system
35 install -m 0644 ${WORKDIR}/usteer.service ${D}${systemd_unitdir}/system
36 sed -i -e 's,@SBINDIR@,${sbindir},g' \
37 ${D}${systemd_unitdir}/system/usteer.service
38}
39