[oe] [RFC] Ship dbus config and dbus service activation files
Stefan Schmidt
stefan at datenfreihafen.org
Wed Dec 10 23:49:10 UTC 2008
Hello.
While playing to get connman 0.1 running I found that we don't ship two files in
the wpa-supplicant that come in handy.
/etc/dbus-1/system.d/dbus-wpa_supplicant.conf
That one is really needed. Without it a wpa-supplicant -u barks out about wrong
security.
/usr/share/dbus-1/system-services/dbus-wpa_supplicant.service
This one is a nice-to-have. It allows autostart the service with the service
activation infrastructure from dbus. If a bus name listed in such a file is
called and not available it gets started the way described in this file.
The following patch i nstalls the files correctly for me. Never used FILES_${PN}
before so I would like to get some review before.
diff --git a/packages/wpa-supplicant/wpa-supplicant-0.6.inc b/packages/wpa-supplicant/wpa-supplicant-0.6.inc
index 6198958..779bee7 100644
--- a/packages/wpa-supplicant/wpa-supplicant-0.6.inc
+++ b/packages/wpa-supplicant/wpa-supplicant-0.6.inc
@@ -59,7 +59,14 @@ do_install () {
install -d ${D}${sysconfdir}/wpa_supplicant
install -m 755 ${WORKDIR}/ifupdown.sh ${D}${sysconfdir}/wpa_supplicant/
install -m 755 ${WORKDIR}/functions.sh ${D}${sysconfdir}/wpa_supplicant
-
+
+ install -d ${D}/${sysconfdir}/dbus-1/system.d
+ install -m 644 ${S}/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
+ install -d ${D}/${datadir}/dbus-1/system-services
+ install -m 644 ${S}/dbus-wpa_supplicant.service ${D}/${datadir}/dbus-1/system-services
+
ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-pre-up.d/wpasupplicant
ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-post-down.d/wpasupplicant
}
+
+FILES_${PN} += "${datadir}/dbus-1/system-services/*"
diff --git a/packages/wpa-supplicant/wpa-supplicant_0.6.0.bb b/packages/wpa-supplicant/wpa-supplicant_0.6.0.bb
index d20ccaa..11fc774 100644
--- a/packages/wpa-supplicant/wpa-supplicant_0.6.0.bb
+++ b/packages/wpa-supplicant/wpa-supplicant_0.6.0.bb
@@ -1,3 +1,3 @@
require wpa-supplicant-0.6.inc
-PR = "r1"
+PR = "r2"
diff --git a/packages/wpa-supplicant/wpa-supplicant_0.6.3.bb b/packages/wpa-supplicant/wpa-supplicant_0.6.3.bb
index d20ccaa..11fc774 100644
--- a/packages/wpa-supplicant/wpa-supplicant_0.6.3.bb
+++ b/packages/wpa-supplicant/wpa-supplicant_0.6.3.bb
@@ -1,3 +1,3 @@
require wpa-supplicant-0.6.inc
-PR = "r1"
+PR = "r2"
Anyone objections?
regards
Stefan Schmidt
More information about the Openembedded-devel
mailing list