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