Patchwork [meta-systemd,V3] wpa-supplicant: add systemd support

login
register
mail settings
Submitter Andreas Müller
Date Aug. 17, 2012, 7:48 a.m.
Message ID <1345189700-26130-2-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/34787/
State Accepted
Commit d7553889e89a33c166c5d67411c4ffe7b4d6ed99
Headers show

Comments

Andreas Müller - Aug. 17, 2012, 7:48 a.m.
* native systemd support came in with v1.0 [1]
* needs [2] to work properly
* mends my wlan under control of networkmanager

[1] http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap-1.git;a=blob_plain;f=wpa_supplicant/ChangeLog
[2] http://patches.openembedded.org/patch/34335/

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
v1->v2: chenge recipe's location
v2->v3: add SYSTEMD_AUTO_ENABLE = "disable"
 .../wpa-supplicant/wpa-supplicant_1.0.bbappend     |    3 ---
 .../wpa-supplicant/wpa-supplicant_1.0.bbappend     |   15 +++++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
 create mode 100644 meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
Andreas Müller - Aug. 21, 2012, 6:20 a.m.
On Fri, Aug 17, 2012 at 9:48 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> * native systemd support came in with v1.0 [1]
> * needs [2] to work properly
> * mends my wlan under control of networkmanager
>
> [1] http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap-1.git;a=blob_plain;f=wpa_supplicant/ChangeLog
> [2] http://patches.openembedded.org/patch/34335/
>
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> ---
> v1->v2: chenge recipe's location
> v2->v3: add SYSTEMD_AUTO_ENABLE = "disable"
>  .../wpa-supplicant/wpa-supplicant_1.0.bbappend     |    3 ---
>  .../wpa-supplicant/wpa-supplicant_1.0.bbappend     |   15 +++++++++++++++
>  2 files changed, 15 insertions(+), 3 deletions(-)
>  delete mode 100644 meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
>  create mode 100644 meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
>
> diff --git a/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend b/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
> deleted file mode 100644
> index 54da0ff..0000000
> --- a/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> -
> -PRINC = "1"
> diff --git a/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
> new file mode 100644
> index 0000000..a4dceb4
> --- /dev/null
> +++ b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
> @@ -0,0 +1,15 @@
> +PRINC = "2"
> +
> +inherit systemd
> +
> +SYSTEMD_PACKAGES = "${PN}-systemd"
> +SYSTEMD_SERVICE = "wpa_supplicant.service"
> +SYSTEMD_AUTO_ENABLE = "disable"
> +
> +do_install_append () {
> +    install -d ${D}${systemd_unitdir}/system
> +    install -m 644 ${S}/systemd/*.service ${D}${systemd_unitdir}/system
> +}
> +
> +# systemd.bbclass does not catch all multiple-instance-service-files
> +FILES_${PN}-systemd += "${systemd_unitdir}/system/"
> --
> 1.7.4.4
>
A bit inpatient but: ping

Patch

diff --git a/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend b/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
deleted file mode 100644
index 54da0ff..0000000
--- a/meta-oe/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
+++ /dev/null
@@ -1,3 +0,0 @@ 
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
- 
-PRINC = "1"
diff --git a/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
new file mode 100644
index 0000000..a4dceb4
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bbappend
@@ -0,0 +1,15 @@ 
+PRINC = "2"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "wpa_supplicant.service"
+SYSTEMD_AUTO_ENABLE = "disable"
+
+do_install_append () {
+    install -d ${D}${systemd_unitdir}/system
+    install -m 644 ${S}/systemd/*.service ${D}${systemd_unitdir}/system
+}
+
+# systemd.bbclass does not catch all multiple-instance-service-files
+FILES_${PN}-systemd += "${systemd_unitdir}/system/"