connman: fix out-of-tree build and nfsroot
[opendreambox.git] / meta-opendreambox / recipes-connectivity / connman / connman_git.bb
1 require recipes-connectivity/connman/connman.inc
2
3 SRCREV = "b749455b13963be9799018be2d86993d6c672908"
4 PV = "1.29+git${SRCPV}"
5
6 SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman.git \
7            file://0001-build-Create-directories-before-putting-files-in-the.patch \
8            file://0002-device-inet-Create-read-only-devices-instead-of-igno.patch \
9            file://0003-Add-EnvironmentFile-and-Wants.patch \
10            file://connman \
11            file://connmand-env \
12            file://connman-env.service.in"
13
14 S = "${WORKDIR}/git"
15
16 do_install_append() {
17         rm -rf ${D}${sysconfdir}/init.d
18
19         install -m 755 ${WORKDIR}/connmand-env ${D}${sbindir}/connmand-env
20         sed -e 's,@sbindir@,${sbindir},g' < ${WORKDIR}/connman-env.service.in > ${D}${systemd_unitdir}/system/connman-env.service
21         chmod 644 ${D}${systemd_unitdir}/system/connman-env.service
22 }
23
24 FILES_${PN} += "${sbindir}/connmand-env ${systemd_unitdir}/system/connman-env.service"
25
26 INITSCRIPT_PACKAGES = ""