All pastes #400854 Raw Edit

Untitled

public text v1 · immutable
#400854 ·published 2007-03-18 23:15 UTC
rendered paste body
============================================================
--- packages/hostap/hostap-daemon-0.5.inc       8c4521eba34e33a688a786ca7916de2c0984c623
+++ packages/hostap/hostap-daemon-0.5.inc       8c4521eba34e33a688a786ca7916de2c0984c623
@@ -0,0 +1,37 @@
+DESCRIPTION = "User space daemon for extended IEEE 802.11 management"
+HOMEPAGE = "http://hostap.epitest.fi"
+SECTION = "kernel/userland"
+PRIORITY = "optional"
+LICENSE = "GPL"
+RDEPENDS = "${@base_contains("COMBINED_FEATURES", "pci", "madwifi-ng-modules", "",d)}"
+DEPENDS = "openssl ${@base_contains("COMBINED_FEATURES", "pci", "madwifi-ng", "",d)}"
+
+SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \
+       file://makefile-cross-0.5.diff;patch=1;pnum=0 \
+       file://defconfig \
+       file://init"
+
+S = "${WORKDIR}/hostapd-${PV}"
+
+export HAS_PCI = "${@base_contains('COMBINED_FEATURES', 'pci', 1, 0,d)}"
+
+do_configure() {
+       install -m 0644 ${WORKDIR}/defconfig ${S}/.config
+
+       if [ "x$HAS_PCI" == "x1" ] ; then
+               echo "CONFIG_DRIVER_MADWIFI=y" >> ${S}/.config
+               echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> ${S}/.config
+       fi
+}
+
+do_compile() {
+       make
+}
+
+do_install() {
+       install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
+       make TARGET_PREFIX=${D}${sbindir} install
+       install -m 0644 hostapd.conf ${D}${sysconfdir}
+       install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd
+}
+