From: Saul Wold <sgw@linux.intel.com>
To: Yevhen Kyriukha <kirgene@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v2] connman: fix systemd support for connman-* packages.
Date: Tue, 13 Aug 2013 08:30:55 -0700 [thread overview]
Message-ID: <520A512F.3060108@linux.intel.com> (raw)
In-Reply-To: <1376393206-14191-1-git-send-email-kirgene@gmail.com>
On 08/13/2013 04:26 AM, Yevhen Kyriukha wrote:
> This patch fixes systemd's postinst/postrm script generation.
>
> Signed-off-by: Yevhen Kyriukha <kirgene@gmail.com>
> ---
> meta/recipes-connectivity/connman/connman.inc | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
> index 6b5ea0b..37ce3ec 100644
> --- a/meta/recipes-connectivity/connman/connman.inc
> +++ b/meta/recipes-connectivity/connman/connman.inc
> @@ -56,6 +56,14 @@ PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls,"
> INITSCRIPT_NAME = "connman"
> INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
>
> +python __anonymous () {
> + systemd_packages = "${PN}"
> + pkgconfig = d.getVar('PACKAGECONFIG', True)
> + if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
> + systemd_packages += " ${PN}-vpn"
> + d.setVar('SYSTEMD_PACKAGES', systemd_packages)
> +}
> +
> SYSTEMD_SERVICE_${PN} = "connman.service"
> SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
> SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
>
Can't you use the base_contains style of anon python in the
SYSTEMD_PACKAGES:
SYSTEMD_PACKAGES = "${PN} ${@base_contains('PACKAGECONFIG', 'vpn',
'${PN}-vpn', '', d)}"
Or can any one of those in the list above trigger the vpn, it would be
cleaner if we just trigger on just one item.
Sau!
next prev parent reply other threads:[~2013-08-13 15:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 11:26 [PATCH v2] connman: fix systemd support for connman-* packages Yevhen Kyriukha
2013-08-13 15:30 ` Saul Wold [this message]
2013-08-13 16:08 ` Yevhen Kyriukha
2013-08-20 11:58 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=520A512F.3060108@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=kirgene@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.