diff options
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 776bbfbff2..856bb9ee17 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -34,7 +34,7 @@ PACKAGECONFIG ??= "wispr iptables client\ | |||
34 | 34 | ||
35 | # If you want ConnMan to support VPN, add following statement into | 35 | # If you want ConnMan to support VPN, add following statement into |
36 | # local.conf or distro config | 36 | # local.conf or distro config |
37 | # PACKAGECONFIG_append_pn-connman = " openvpn vpnc l2tp pptp" | 37 | # PACKAGECONFIG:append:pn-connman = " openvpn vpnc l2tp pptp" |
38 | 38 | ||
39 | PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_unitdir}/system/ --with-tmpfilesdir=${sysconfdir}/tmpfiles.d/,--with-systemdunitdir='' --with-tmpfilesdir=''" | 39 | PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_unitdir}/system/ --with-tmpfilesdir=${sysconfdir}/tmpfiles.d/,--with-systemdunitdir='' --with-tmpfilesdir=''" |
40 | PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi, wpa-supplicant, wpa-supplicant" | 40 | PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi, wpa-supplicant, wpa-supplicant" |
@@ -64,16 +64,16 @@ python __anonymous () { | |||
64 | d.setVar('SYSTEMD_PACKAGES', systemd_packages) | 64 | d.setVar('SYSTEMD_PACKAGES', systemd_packages) |
65 | } | 65 | } |
66 | 66 | ||
67 | SYSTEMD_SERVICE_${PN} = "connman.service" | 67 | SYSTEMD_SERVICE:${PN} = "connman.service" |
68 | SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" | 68 | SYSTEMD_SERVICE:${PN}-vpn = "connman-vpn.service" |
69 | SYSTEMD_SERVICE_${PN}-wait-online = "connman-wait-online.service" | 69 | SYSTEMD_SERVICE:${PN}-wait-online = "connman-wait-online.service" |
70 | 70 | ||
71 | ALTERNATIVE_PRIORITY = "100" | 71 | ALTERNATIVE_PRIORITY = "100" |
72 | ALTERNATIVE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','resolv-conf','',d)}" | 72 | ALTERNATIVE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','resolv-conf','',d)}" |
73 | ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv-conf.connman','',d)}" | 73 | ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv-conf.connman','',d)}" |
74 | ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv.conf','',d)}" | 74 | ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv.conf','',d)}" |
75 | 75 | ||
76 | do_install_append() { | 76 | do_install:append() { |
77 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 77 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
78 | install -d ${D}${sysconfdir}/init.d | 78 | install -d ${D}${sysconfdir}/init.d |
79 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman | 79 | install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman |
@@ -100,7 +100,7 @@ do_install_append() { | |||
100 | } | 100 | } |
101 | 101 | ||
102 | # These used to be plugins, but now they are core | 102 | # These used to be plugins, but now they are core |
103 | RPROVIDES_${PN} = "\ | 103 | RPROVIDES:${PN} = "\ |
104 | connman-plugin-loopback \ | 104 | connman-plugin-loopback \ |
105 | connman-plugin-ethernet \ | 105 | connman-plugin-ethernet \ |
106 | ${@bb.utils.contains('PACKAGECONFIG', 'bluetooth','connman-plugin-bluetooth', '', d)} \ | 106 | ${@bb.utils.contains('PACKAGECONFIG', 'bluetooth','connman-plugin-bluetooth', '', d)} \ |
@@ -108,7 +108,7 @@ RPROVIDES_${PN} = "\ | |||
108 | ${@bb.utils.contains('PACKAGECONFIG', '3g','connman-plugin-ofono', '', d)} \ | 108 | ${@bb.utils.contains('PACKAGECONFIG', '3g','connman-plugin-ofono', '', d)} \ |
109 | " | 109 | " |
110 | 110 | ||
111 | RDEPENDS_${PN} = "\ | 111 | RDEPENDS:${PN} = "\ |
112 | dbus \ | 112 | dbus \ |
113 | " | 113 | " |
114 | 114 | ||
@@ -119,11 +119,11 @@ def add_rdepends(bb, d, file, pkg, depmap, multilib_prefix, add_insane_skip): | |||
119 | if plugintype in depmap: | 119 | if plugintype in depmap: |
120 | rdepends = map(lambda x: multilib_prefix + x, \ | 120 | rdepends = map(lambda x: multilib_prefix + x, \ |
121 | depmap[plugintype].split()) | 121 | depmap[plugintype].split()) |
122 | d.setVar("RDEPENDS_%s" % pkg, " ".join(rdepends)) | 122 | d.setVar("RDEPENDS:%s" % pkg, " ".join(rdepends)) |
123 | if add_insane_skip: | 123 | if add_insane_skip: |
124 | d.appendVar("INSANE_SKIP_%s" % pkg, "dev-so") | 124 | d.appendVar("INSANE_SKIP:%s" % pkg, "dev-so") |
125 | 125 | ||
126 | python populate_packages_prepend() { | 126 | python populate_packages:prepend() { |
127 | depmap = dict(pppd="ppp") | 127 | depmap = dict(pppd="ppp") |
128 | multilib_prefix = (d.getVar("MLPREFIX") or "") | 128 | multilib_prefix = (d.getVar("MLPREFIX") or "") |
129 | 129 | ||
@@ -144,72 +144,72 @@ python populate_packages_prepend() { | |||
144 | 144 | ||
145 | PACKAGES =+ "${PN}-tools ${PN}-tests ${PN}-client" | 145 | PACKAGES =+ "${PN}-tools ${PN}-tests ${PN}-client" |
146 | 146 | ||
147 | FILES_${PN}-tools = "${bindir}/wispr" | 147 | FILES:${PN}-tools = "${bindir}/wispr" |
148 | RDEPENDS_${PN}-tools ="${PN}" | 148 | RDEPENDS:${PN}-tools ="${PN}" |
149 | 149 | ||
150 | FILES_${PN}-tests = "${bindir}/*-test" | 150 | FILES:${PN}-tests = "${bindir}/*-test" |
151 | 151 | ||
152 | FILES_${PN}-client = "${bindir}/connmanctl" | 152 | FILES:${PN}-client = "${bindir}/connmanctl" |
153 | RDEPENDS_${PN}-client ="${PN}" | 153 | RDEPENDS:${PN}-client ="${PN}" |
154 | 154 | ||
155 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ | 155 | FILES:${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \ |
156 | ${libdir}/connman/plugins \ | 156 | ${libdir}/connman/plugins \ |
157 | ${sysconfdir} ${sharedstatedir} ${localstatedir} ${datadir} \ | 157 | ${sysconfdir} ${sharedstatedir} ${localstatedir} ${datadir} \ |
158 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ | 158 | ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \ |
159 | ${datadir}/dbus-1/system-services/* \ | 159 | ${datadir}/dbus-1/system-services/* \ |
160 | ${sysconfdir}/tmpfiles.d/connman_resolvconf.conf" | 160 | ${sysconfdir}/tmpfiles.d/connman_resolvconf.conf" |
161 | 161 | ||
162 | FILES_${PN}-dev += "${libdir}/connman/*/*.la" | 162 | FILES:${PN}-dev += "${libdir}/connman/*/*.la" |
163 | 163 | ||
164 | PACKAGES =+ "${PN}-vpn ${PN}-wait-online" | 164 | PACKAGES =+ "${PN}-vpn ${PN}-wait-online" |
165 | 165 | ||
166 | SUMMARY_${PN}-vpn = "A daemon for managing VPN connections within embedded devices" | 166 | SUMMARY:${PN}-vpn = "A daemon for managing VPN connections within embedded devices" |
167 | DESCRIPTION_${PN}-vpn = "The ConnMan VPN provides a daemon for \ | 167 | DESCRIPTION:${PN}-vpn = "The ConnMan VPN provides a daemon for \ |
168 | managing VPN connections within embedded devices running the Linux \ | 168 | managing VPN connections within embedded devices running the Linux \ |
169 | operating system. The connman-vpnd handles all the VPN connections \ | 169 | operating system. The connman-vpnd handles all the VPN connections \ |
170 | and starts/stops VPN client processes when necessary. The connman-vpnd \ | 170 | and starts/stops VPN client processes when necessary. The connman-vpnd \ |
171 | provides a DBus API for managing VPN connections. All the different \ | 171 | provides a DBus API for managing VPN connections. All the different \ |
172 | VPN technogies are implemented using plug-ins." | 172 | VPN technogies are implemented using plug-ins." |
173 | FILES_${PN}-vpn += "${sbindir}/connman-vpnd \ | 173 | FILES:${PN}-vpn += "${sbindir}/connman-vpnd \ |
174 | ${sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf \ | 174 | ${sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf \ |
175 | ${datadir}/dbus-1/system-services/net.connman.vpn.service \ | 175 | ${datadir}/dbus-1/system-services/net.connman.vpn.service \ |
176 | ${systemd_unitdir}/system/connman-vpn.service" | 176 | ${systemd_unitdir}/system/connman-vpn.service" |
177 | 177 | ||
178 | SUMMARY_${PN}-wait-online = "A program that will return once ConnMan has connected to a network" | 178 | SUMMARY:${PN}-wait-online = "A program that will return once ConnMan has connected to a network" |
179 | DESCRIPTION_${PN}-wait-online = "A service that can be enabled so that \ | 179 | DESCRIPTION:${PN}-wait-online = "A service that can be enabled so that \ |
180 | the system waits until a network connection is established." | 180 | the system waits until a network connection is established." |
181 | FILES_${PN}-wait-online += "${sbindir}/connmand-wait-online \ | 181 | FILES:${PN}-wait-online += "${sbindir}/connmand-wait-online \ |
182 | ${systemd_unitdir}/system/connman-wait-online.service" | 182 | ${systemd_unitdir}/system/connman-wait-online.service" |
183 | 183 | ||
184 | SUMMARY_${PN}-plugin-vpn-openvpn = "An OpenVPN plugin for ConnMan VPN" | 184 | SUMMARY:${PN}-plugin-vpn-openvpn = "An OpenVPN plugin for ConnMan VPN" |
185 | DESCRIPTION_${PN}-plugin-vpn-openvpn = "The ConnMan OpenVPN plugin uses openvpn client \ | 185 | DESCRIPTION:${PN}-plugin-vpn-openvpn = "The ConnMan OpenVPN plugin uses openvpn client \ |
186 | to create a VPN connection to OpenVPN server." | 186 | to create a VPN connection to OpenVPN server." |
187 | FILES_${PN}-plugin-vpn-openvpn += "${libdir}/connman/scripts/openvpn-script \ | 187 | FILES:${PN}-plugin-vpn-openvpn += "${libdir}/connman/scripts/openvpn-script \ |
188 | ${libdir}/connman/plugins-vpn/openvpn.so" | 188 | ${libdir}/connman/plugins-vpn/openvpn.so" |
189 | RDEPENDS_${PN}-plugin-vpn-openvpn += "${PN}-vpn" | 189 | RDEPENDS:${PN}-plugin-vpn-openvpn += "${PN}-vpn" |
190 | RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','openvpn','${PN}-plugin-vpn-openvpn', '', d)}" | 190 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','openvpn','${PN}-plugin-vpn-openvpn', '', d)}" |
191 | 191 | ||
192 | SUMMARY_${PN}-plugin-vpn-vpnc = "A vpnc plugin for ConnMan VPN" | 192 | SUMMARY:${PN}-plugin-vpn-vpnc = "A vpnc plugin for ConnMan VPN" |
193 | DESCRIPTION_${PN}-plugin-vpn-vpnc = "The ConnMan vpnc plugin uses vpnc client \ | 193 | DESCRIPTION:${PN}-plugin-vpn-vpnc = "The ConnMan vpnc plugin uses vpnc client \ |
194 | to create a VPN connection to Cisco3000 VPN Concentrator." | 194 | to create a VPN connection to Cisco3000 VPN Concentrator." |
195 | FILES_${PN}-plugin-vpn-vpnc += "${libdir}/connman/scripts/openconnect-script \ | 195 | FILES:${PN}-plugin-vpn-vpnc += "${libdir}/connman/scripts/openconnect-script \ |
196 | ${libdir}/connman/plugins-vpn/vpnc.so \ | 196 | ${libdir}/connman/plugins-vpn/vpnc.so \ |
197 | ${libdir}/connman/scripts/vpn-script" | 197 | ${libdir}/connman/scripts/vpn-script" |
198 | RDEPENDS_${PN}-plugin-vpn-vpnc += "${PN}-vpn" | 198 | RDEPENDS:${PN}-plugin-vpn-vpnc += "${PN}-vpn" |
199 | RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','vpnc','${PN}-plugin-vpn-vpnc', '', d)}" | 199 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','vpnc','${PN}-plugin-vpn-vpnc', '', d)}" |
200 | 200 | ||
201 | SUMMARY_${PN}-plugin-vpn-l2tp = "A L2TP plugin for ConnMan VPN" | 201 | SUMMARY:${PN}-plugin-vpn-l2tp = "A L2TP plugin for ConnMan VPN" |
202 | DESCRIPTION_${PN}-plugin-vpn-l2tp = "The ConnMan L2TP plugin uses xl2tpd daemon \ | 202 | DESCRIPTION:${PN}-plugin-vpn-l2tp = "The ConnMan L2TP plugin uses xl2tpd daemon \ |
203 | to create a VPN connection to L2TP server." | 203 | to create a VPN connection to L2TP server." |
204 | FILES_${PN}-plugin-vpn-l2tp += "${libdir}/connman/scripts/libppp-plugin.so* \ | 204 | FILES:${PN}-plugin-vpn-l2tp += "${libdir}/connman/scripts/libppp-plugin.so* \ |
205 | ${libdir}/connman/plugins-vpn/l2tp.so" | 205 | ${libdir}/connman/plugins-vpn/l2tp.so" |
206 | RDEPENDS_${PN}-plugin-vpn-l2tp += "${PN}-vpn" | 206 | RDEPENDS:${PN}-plugin-vpn-l2tp += "${PN}-vpn" |
207 | RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','l2tp','${PN}-plugin-vpn-l2tp', '', d)}" | 207 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','l2tp','${PN}-plugin-vpn-l2tp', '', d)}" |
208 | 208 | ||
209 | SUMMARY_${PN}-plugin-vpn-pptp = "A PPTP plugin for ConnMan VPN" | 209 | SUMMARY:${PN}-plugin-vpn-pptp = "A PPTP plugin for ConnMan VPN" |
210 | DESCRIPTION_${PN}-plugin-vpn-pptp = "The ConnMan PPTP plugin uses pptp-linux client \ | 210 | DESCRIPTION:${PN}-plugin-vpn-pptp = "The ConnMan PPTP plugin uses pptp-linux client \ |
211 | to create a VPN connection to PPTP server." | 211 | to create a VPN connection to PPTP server." |
212 | FILES_${PN}-plugin-vpn-pptp += "${libdir}/connman/scripts/libppp-plugin.so* \ | 212 | FILES:${PN}-plugin-vpn-pptp += "${libdir}/connman/scripts/libppp-plugin.so* \ |
213 | ${libdir}/connman/plugins-vpn/pptp.so" | 213 | ${libdir}/connman/plugins-vpn/pptp.so" |
214 | RDEPENDS_${PN}-plugin-vpn-pptp += "${PN}-vpn" | 214 | RDEPENDS:${PN}-plugin-vpn-pptp += "${PN}-vpn" |
215 | RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','pptp','${PN}-plugin-vpn-pptp', '', d)}" | 215 | RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','pptp','${PN}-plugin-vpn-pptp', '', d)}" |