summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-11-26 13:47:35 +0000
committerRod Whitby <rod@whitby.id.au>2006-11-26 13:47:35 +0000
commitac617615d1c4aeb68c2f0fcbfa20ab670943f8b4 (patch)
treecb0f888f39982a8e258fb0a3f383d4a5dbe48f33 /packages
parent27cd162f98bc561efdedb6285c7dbc7440219b76 (diff)
parent37283947cf8d26758806925b29c2053b250efba5 (diff)
merge of 101cc837c8a2d1c2d4abc0f9ed9415554cbb609c
and 95d8882549c61d28fd1ccd1223c761df50dfcebb
Diffstat (limited to 'packages')
-rw-r--r--packages/tasks/task-base.bb22
-rw-r--r--packages/tasks/task-opie.bb25
-rw-r--r--packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty0
-rw-r--r--packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch19
-rw-r--r--packages/wpa-supplicant/wpa-supplicant_0.5.5.bb62
5 files changed, 93 insertions, 35 deletions
diff --git a/packages/tasks/task-base.bb b/packages/tasks/task-base.bb
index 366da828bd..a9b3881444 100644
--- a/packages/tasks/task-base.bb
+++ b/packages/tasks/task-base.bb
@@ -40,30 +40,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
# usbgadget
# usbhost
-
-MACHINE_FEATURES ?= "kernel26"
-DISTRO_FEATURES ?= ""
DISTRO_CORE_PACKAGE ?= "task-base-core-default"
-DISTRO_EXTRA_RDEPENDS ?= ""
-DISTRO_EXTRA_RRECOMMENDS ?= ""
-MACHINE_EXTRA_RDEPENDS ?= ""
-MACHINE_EXTRA_RRECOMMENDS ?= ""
-MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
-
-
-COMBINED_FEATURES = "\
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "alsa", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "bluetooth", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "ext2", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "irda", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "pcmcia", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "pci", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "usbgadget", d)} \
- ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "usbhost", d)}"
-
-
#
# task-base
#
diff --git a/packages/tasks/task-opie.bb b/packages/tasks/task-opie.bb
index 72c66e7ba8..b421818379 100644
--- a/packages/tasks/task-opie.bb
+++ b/packages/tasks/task-opie.bb
@@ -1,11 +1,11 @@
DESCRIPTION = "Tasks for OPIE stuff"
SECTION = "opie/base"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
ALLOW_EMPTY = "1"
-PACKAGE_ARCH = "all"
LICENSE = "MIT"
PROVIDES = "task-opie-everything"
-PR = "r3"
+PR = "r4"
PACKAGES = "task-opie-applets task-opie-apps task-opie-base \
task-opie-base-applets task-opie-base-apps \
@@ -35,16 +35,13 @@ RDEPENDS_task-opie-base = "opie-alarm opie-qcop opie-quicklauncher opie-taskbar
# things for reasonable bootstrap image
#
RDEPENDS_task-opie-base-applets = "opie-aboutapplet opie-clockapplet opie-suspendapplet \
- opie-homeapplet opie-rotateapplet \
- opie-irdaapplet opie-brightnessapplet opie-batteryapplet \
- opie-pcmciaapplet opie-volumeapplet \
- opie-screenshotapplet"
-
-#
-# keyboard models can benefit from the vt and logout applets
-#
-RDEPENDS_task-opie-base-applets_append_openzaurus = " opie-vtapplet opie-logoutapplet"
-RDEPENDS_task-opie-base-applets_append_mnci = " opie-vtapplet opie-logoutapplet"
+ opie-homeapplet opie-rotateapplet \
+ opie-brightnessapplet opie-volumeapplet \
+ opie-screenshotapplet \
+ ${@base_contains("COMBINED_FEATURES", "irda", "opie-irdaapplet", "",d)} \
+ ${@base_contains("COMBINED_FEATURES", "apm", "opie-batteryapplet", "",d)} \
+ ${@base_contains("COMBINED_FEATURES", "pcmcia", "opie-pcmciaapplet", "",d)} \
+ ${@base_contains("MACHINE_FEATURES", "keyboard", "opie-vtapplet opie-logoutapplet", "",d)}"
#
# clamshell models can benefit from the autorotate applet
@@ -67,7 +64,9 @@ RDEPENDS_task-opie-base-settings = "opie-packagemanager opie-light-and-power opi
# That settings can be removed and device will be still usable
#
RDEPENDS_task-opie-extra-settings = "opie-language opie-doctab opie-mediummount \
- opie-networksettings-wlanplugin opie-networksettings-pppplugin"
+ ${@base_contains("DISTRO_FEATURES", "wifi", "opie-networksettings-wlanplugin", "",d)} \
+ ${@base_contains("DISTRO_FEATURES", "ppp", "opie-networksettings-pppplugin", "",d)} \
+ "
RDEPENDS_task-opie-base-decorations = "opie-deco-flat opie-deco-liquid opie-deco-polished"
diff --git a/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty b/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty
diff --git a/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch b/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch
new file mode 100644
index 0000000000..795306bb35
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch
@@ -0,0 +1,19 @@
+Index: wpa_supplicant-0.5.5/tls_gnutls.c
+===================================================================
+--- wpa_supplicant-0.5.5.orig/tls_gnutls.c 2006-06-25 03:05:07.000000000 +0200
++++ wpa_supplicant-0.5.5/tls_gnutls.c 2006-10-29 15:12:21.000000000 +0100
+@@ -1029,8 +1029,13 @@
+ const u8 *in_data, size_t in_len,
+ size_t *out_len)
+ {
++ u8 *appl_data;
++ size_t appl_data_len;
++
++ appl_data = NULL;
++
+ return tls_connection_handshake(ssl_ctx, conn, in_data, in_len,
+- out_len);
++ out_len, appl_data, appl_data_len);
+ }
+
+
diff --git a/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb b/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb
new file mode 100644
index 0000000000..d915cd14f2
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb
@@ -0,0 +1,62 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+SECTION = "network"
+LICENSE = "GPL"
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+DEPENDS = "gnutls ${@base_contains("COMBINED_FEATURES", "pci", "madwifi-ng", "",d)}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'pci', '${MACHINE}', '${TARGET_ARCH}', d)}"
+
+DEFAULT_PREFERENCE = "-2"
+
+SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
+ file://defconfig-gnutls \
+ file://init.sh \
+ file://gnutlsfix.patch;patch=1 \
+ file://defaults-sane \
+ file://wpa_supplicant.conf \
+ file://wpa_supplicant.conf-sane"
+
+S = "${WORKDIR}/wpa_supplicant-${PV}"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+INITSCRIPT_NAME = "wpa"
+INITSCRIPT_PARAMS = "defaults 10"
+inherit update-rc.d
+
+export HAS_PCI = "${@base_contains('COMBINED_FEATURES', 'pci', 1, 0,d)}"
+
+do_configure () {
+ install -m 0755 ${WORKDIR}/defconfig-gnutls .config
+
+ if [ "x$HAS_PCI" == "x1" ] then; do
+ echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+ echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
+ fi
+}
+
+do_compile () {
+ make
+}
+
+do_install () {
+ install -d ${D}${sbindir}
+ install -m 755 wpa_supplicant ${D}${sbindir}
+ install -m 755 wpa_passphrase ${D}${sbindir}
+ install -m 755 wpa_cli ${D}${sbindir}
+
+ install -d ${D}${localstatedir}/run/wpa_supplicant
+
+ install -d ${D}${docdir}/wpa_supplicant
+ install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
+
+ install -d ${D}${sysconfdir}/init.d
+ install -m 700 ${WORKDIR}/init.sh ${D}${sysconfdir}/init.d/wpa
+
+ install -d ${D}${sysconfdir}/default
+ install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
+}