<!-- Generator: GNU source-highlight 2.4
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>#
#
# delete "packages/hostap/hostap-daemon-0.6.3"

# delete "packages/hostap/hostap-daemon-0.6.3/makefile-cross.diff"

# delete "packages/hostap/hostap-daemon_0.5.1.bb"

# delete "packages/hostap/hostap-daemon_0.6.3.bb"

# add_dir "packages/hostap/hostap-daemon-0.5.10"

# add_file "packages/hostap/hostap-daemon-0.5.10/makefile-cross.diff"
#  content [e291454f9d39e1948a9b6487276aa4d641662bde]

# add_file "packages/hostap/hostap-daemon_0.5.10.bb"
#  content [1ef529afd5463790fc19d5fa6b3768c4b672ced8]
#
============================================================
<font color="#FF6600">--- packages/hostap/hostap-daemon-0.5.10/makefile-cross.diff        e291454f9d39e1948a9b6487276aa4d641662bde</font>
<font color="#009900">+++ packages/hostap/hostap-daemon-0.5.10/makefile-cross.diff        e291454f9d39e1948a9b6487276aa4d641662bde</font>
<font color="#0000FF">@@ -0,0 +1,31 @@</font>
<font color="#009900">+diff -urN hostapd-0.5.10.orig/Makefile hostapd-0.5.10/Makefile</font>
<font color="#009900">+--- hostapd-0.5.10.orig/Makefile        2008-02-20 01:08:54.000000000 +0100</font>
<font color="#009900">++++ hostapd-0.5.10/Makefile        2008-04-28 17:01:36.000000000 +0200</font>
<font color="#009900">+@@ -1,10 +1,14 @@</font>
<font color="#009900">++ifndef CC</font>
<font color="#009900">+ CC=gcc</font>
<font color="#009900">++endif</font>
<font color="#009900">+ DIR_WPA_SUPPLICANT=.</font>
<font color="#009900">+ </font>
<font color="#009900">+ ifndef CFLAGS</font>
<font color="#009900">+ CFLAGS = -MMD -O2 -Wall -g</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">++TARGET_PREFIX ?= /usr/local/bin/</font>
<font color="#009900">++</font>
<font color="#009900">+ # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to</font>
<font color="#009900">+ # a file (undefine it, if you want to save in binary size)</font>
<font color="#009900">+ CFLAGS += -DHOSTAPD_DUMP_STATE</font>
<font color="#009900">+@@ -333,10 +337,10 @@</font>
<font color="#009900">+         fi</font>
<font color="#009900">+ </font>
<font color="#009900">+ install: all</font>
<font color="#009900">+-        for i in $(ALL); do cp $$i /usr/local/bin/$$i; done</font>
<font color="#009900">++        for i in $(ALL); do cp $$i $(TARGET_PREFIX)/$$i; done</font>
<font color="#009900">+ </font>
<font color="#009900">+ hostapd: $(OBJS)</font>
<font color="#009900">+-        $(CC) -o hostapd $(OBJS) $(LIBS)</font>
<font color="#009900">++        $(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ driver_conf.c: Makefile .config</font>
<font color="#009900">+         rm -f driver_conf.c</font>
============================================================
<font color="#FF6600">--- packages/hostap/hostap-daemon_0.5.10.bb        1ef529afd5463790fc19d5fa6b3768c4b672ced8</font>
<font color="#009900">+++ packages/hostap/hostap-daemon_0.5.10.bb        1ef529afd5463790fc19d5fa6b3768c4b672ced8</font>
<font color="#0000FF">@@ -0,0 +1,42 @@</font>
<font color="#009900">+DESCRIPTION = "User space daemon for extended IEEE 802.11 management"</font>
<font color="#009900">+HOMEPAGE = "http://hostap.epitest.fi"</font>
<font color="#009900">+SECTION = "kernel/userland"</font>
<font color="#009900">+PRIORITY = "optional"</font>
<font color="#009900">+LICENSE = "GPL"</font>
<font color="#009900">+DEPENDS = "openssl ${@base_contains("COMBINED_FEATURES", "pci", "madwifi-ng", "",d)}"</font>
<font color="#009900">+</font>
<font color="#009900">+#we introduce MY_ARCH to get 'armv5te' as arch instead of the misleading 'arm' on armv5te builds</font>
<font color="#009900">+MY_ARCH := "${PACKAGE_ARCH}"</font>
<font color="#009900">+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'pci', '${MACHINE_ARCH}', '${MY_ARCH}', d)}"</font>
<font color="#009900">+</font>
<font color="#009900">+SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \</font>
<font color="#009900">+        file://makefile-cross.diff;patch=1 \</font>
<font color="#009900">+        file://defconfig \</font>
<font color="#009900">+        file://init"</font>
<font color="#009900">+</font>
<font color="#009900">+S = "${WORKDIR}/hostapd-${PV}"</font>
<font color="#009900">+</font>
<font color="#009900">+export HAS_PCI = "${@base_contains('COMBINED_FEATURES', 'pci', 1, 0,d)}"</font>
<font color="#009900">+</font>
<font color="#009900">+inherit update-rc.d</font>
<font color="#009900">+INITSCRIPT_NAME=hostapd</font>
<font color="#009900">+</font>
<font color="#009900">+do_configure() {</font>
<font color="#009900">+        install -m 0644 ${WORKDIR}/defconfig ${S}/.config</font>
<font color="#009900">+        if [ "x$HAS_PCI" == "x1" ] ; then</font>
<font color="#009900">+                echo "CONFIG_DRIVER_MADWIFI=y" &gt;&gt; .config</font>
<font color="#009900">+                echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" &gt;&gt; .config</font>
<font color="#009900">+        fi</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+do_compile() {</font>
<font color="#009900">+        make</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+do_install() {</font>
<font color="#009900">+        install -d ${D}${sbindir} ${D}${sysconfdir}/init.d</font>
<font color="#009900">+        make TARGET_PREFIX=${D}${sbindir} install</font>
<font color="#009900">+        install -m 0644 hostapd.conf ${D}${sysconfdir}</font>
<font color="#009900">+        install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
</tt></pre>