* [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file
@ 2012-04-23 6:55 yegorslists at googlemail.com
2012-04-23 6:55 ` [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20 yegorslists at googlemail.com
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: yegorslists at googlemail.com @ 2012-04-23 6:55 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/wpa_supplicant/wpa_supplicant.conf | 6 ++++++
package/wpa_supplicant/wpa_supplicant.mk | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
create mode 100755 package/wpa_supplicant/wpa_supplicant.conf
diff --git a/package/wpa_supplicant/wpa_supplicant.conf b/package/wpa_supplicant/wpa_supplicant.conf
new file mode 100755
index 0000000..1994a6c
--- /dev/null
+++ b/package/wpa_supplicant/wpa_supplicant.conf
@@ -0,0 +1,6 @@
+ctrl_interface=/var/run/wpa_supplicant
+ap_scan=1
+
+network={
+ key_mgmt=NONE
+}
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 0a672ee..4a1baea 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -118,10 +118,18 @@ ifeq ($(BR2_PACKAGE_DBUS),y)
WPA_SUPPLICANT_POST_INSTALL_TARGET_HOOKS += WPA_SUPPLICANT_INSTALL_DBUS
endif
+define WPA_SUPPLICANT_INSTALL_CONFIG
+ $(INSTALL) -m 644 \
+ package/wpa_supplicant/wpa_supplicant.conf $(TARGET_DIR)/etc/wpa_supplicant.conf
+endef
+
+WPA_SUPPLICANT_POST_INSTALL_TARGET_HOOKS += WPA_SUPPLICANT_INSTALL_CONFIG
+
define WPA_SUPPLICANT_UNINSTALL_TARGET_CMDS
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(WPA_SUPPLICANT_TARGET_BINS))
rm -f $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf
rm -f $(TARGET_DIR)/usr/share/dbus-1/system-services/$(WPA_SUPPLICANT_DBUS_SERVICE).service
+ rm -f $(TARGET_DIR)/usr/etc/wpa_supplicant.conf
endef
$(eval $(call AUTOTARGETS))
--
1.7.7
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20
2012-04-23 6:55 [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file yegorslists at googlemail.com
@ 2012-04-23 6:55 ` yegorslists at googlemail.com
2012-04-24 20:09 ` Peter Korsgaard
2012-04-24 20:13 ` [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file Peter Korsgaard
2012-05-09 20:37 ` Peter Korsgaard
2 siblings, 1 reply; 7+ messages in thread
From: yegorslists at googlemail.com @ 2012-04-23 6:55 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
v2: remove commented DBUS_SOURCE line
package/dbus/dbus.mk | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 0942b33..7e72e3d 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -3,8 +3,7 @@
# dbus
#
#############################################################
-DBUS_VERSION = 1.4.16
-DBUS_SOURCE = dbus-$(DBUS_VERSION).tar.gz
+DBUS_VERSION = 1.4.20
DBUS_SITE = http://dbus.freedesktop.org/releases/dbus/
DBUS_INSTALL_STAGING = YES
--
1.7.7
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20
2012-04-23 6:55 ` [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20 yegorslists at googlemail.com
@ 2012-04-24 20:09 ` Peter Korsgaard
0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2012-04-24 20:09 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
yegorslists> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file
2012-04-23 6:55 [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file yegorslists at googlemail.com
2012-04-23 6:55 ` [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20 yegorslists at googlemail.com
@ 2012-04-24 20:13 ` Peter Korsgaard
2012-04-24 22:03 ` Thomas Petazzoni
2012-04-25 6:23 ` Yegor Yefremov
2012-05-09 20:37 ` Peter Korsgaard
2 siblings, 2 replies; 7+ messages in thread
From: Peter Korsgaard @ 2012-04-24 20:13 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
yegorslists> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
yegorslists> ---
yegorslists> package/wpa_supplicant/wpa_supplicant.conf | 6 ++++++
yegorslists> package/wpa_supplicant/wpa_supplicant.mk | 8 ++++++++
yegorslists> 2 files changed, 14 insertions(+), 0 deletions(-)
yegorslists> create mode 100755 package/wpa_supplicant/wpa_supplicant.conf
yegorslists> +define WPA_SUPPLICANT_INSTALL_CONFIG
yegorslists> + $(INSTALL) -m 644 \
yegorslists> + package/wpa_supplicant/wpa_supplicant.conf $(TARGET_DIR)/etc/wpa_supplicant.conf
Normally we only install these default files if not already present in
the rootfs, so people can put their own version in the skeleton if they
need something else. See ifplugd for an example.
yegorslists> +
yegorslists> define WPA_SUPPLICANT_UNINSTALL_TARGET_CMDS
yegorslists> rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(WPA_SUPPLICANT_TARGET_BINS))
yegorslists> rm -f $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf
yegorslists> rm -f $(TARGET_DIR)/usr/share/dbus-1/system-services/$(WPA_SUPPLICANT_DBUS_SERVICE).service
yegorslists> + rm -f $(TARGET_DIR)/usr/etc/wpa_supplicant.conf
This doesn't work so well when you add the check before installation as
adding/removing/adding wpasupplicant again would then overwrite the
skeleton one. I suggest you just skip this.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file
2012-04-24 20:13 ` [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file Peter Korsgaard
@ 2012-04-24 22:03 ` Thomas Petazzoni
2012-04-25 6:23 ` Yegor Yefremov
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2012-04-24 22:03 UTC (permalink / raw)
To: buildroot
Hello,
Le Tue, 24 Apr 2012 22:13:46 +0200,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :
> yegorslists> +define WPA_SUPPLICANT_INSTALL_CONFIG
> yegorslists> + $(INSTALL) -m 644 \
> yegorslists> + package/wpa_supplicant/wpa_supplicant.conf $(TARGET_DIR)/etc/wpa_supplicant.conf
>
> Normally we only install these default files if not already present in
> the rootfs, so people can put their own version in the skeleton if they
> need something else. See ifplugd for an example.
I am less and less sure this is a scenario we should support. We have
been talking for a while of removing the ability of using a custom
target skeleton, and instead recommend all users to use the post-build
script capability, which is much more appropriate.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file
2012-04-24 20:13 ` [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file Peter Korsgaard
2012-04-24 22:03 ` Thomas Petazzoni
@ 2012-04-25 6:23 ` Yegor Yefremov
1 sibling, 0 replies; 7+ messages in thread
From: Yegor Yefremov @ 2012-04-25 6:23 UTC (permalink / raw)
To: buildroot
Am 24.04.2012 22:13, schrieb Peter Korsgaard:
>>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
>
> yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
> yegorslists> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> yegorslists> ---
> yegorslists> package/wpa_supplicant/wpa_supplicant.conf | 6 ++++++
> yegorslists> package/wpa_supplicant/wpa_supplicant.mk | 8 ++++++++
> yegorslists> 2 files changed, 14 insertions(+), 0 deletions(-)
> yegorslists> create mode 100755 package/wpa_supplicant/wpa_supplicant.conf
>
>
> yegorslists> +define WPA_SUPPLICANT_INSTALL_CONFIG
> yegorslists> + $(INSTALL) -m 644 \
> yegorslists> + package/wpa_supplicant/wpa_supplicant.conf $(TARGET_DIR)/etc/wpa_supplicant.conf
>
> Normally we only install these default files if not already present in
> the rootfs, so people can put their own version in the skeleton if they
> need something else. See ifplugd for an example.
>
> yegorslists> +
> yegorslists> define WPA_SUPPLICANT_UNINSTALL_TARGET_CMDS
> yegorslists> rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(WPA_SUPPLICANT_TARGET_BINS))
> yegorslists> rm -f $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf
> yegorslists> rm -f $(TARGET_DIR)/usr/share/dbus-1/system-services/$(WPA_SUPPLICANT_DBUS_SERVICE).service
> yegorslists> + rm -f $(TARGET_DIR)/usr/etc/wpa_supplicant.conf
>
> This doesn't work so well when you add the check before installation as
> adding/removing/adding wpasupplicant again would then overwrite the
> skeleton one. I suggest you just skip this.
Should I just this file to default skeleton or drop it completely, so that user would supply it via custom script?
Yegor
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file
2012-04-23 6:55 [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file yegorslists at googlemail.com
2012-04-23 6:55 ` [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20 yegorslists at googlemail.com
2012-04-24 20:13 ` [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file Peter Korsgaard
@ 2012-05-09 20:37 ` Peter Korsgaard
2 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2012-05-09 20:37 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-05-09 20:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 6:55 [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file yegorslists at googlemail.com
2012-04-23 6:55 ` [Buildroot] [PATCH v2 2/2] dbus: bump to 1.4.20 yegorslists at googlemail.com
2012-04-24 20:09 ` Peter Korsgaard
2012-04-24 20:13 ` [Buildroot] [PATCH v2 1/2] wpa_supplicant: install basic configuration file Peter Korsgaard
2012-04-24 22:03 ` Thomas Petazzoni
2012-04-25 6:23 ` Yegor Yefremov
2012-05-09 20:37 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox