###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2008 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
include Config
-VER = 0.5.11
+VER = 2.0
THISAPP = hostapd-$(VER)
DL_FILE = $(THISAPP).tar.gz
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = hostapd
-PAK_VER = 8
+PAK_VER = 26
DEPS = ""
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = d99d3566d5f15dfd24df37fcb2ee80ee
+$(DL_FILE)_MD5 = ba22e639bc57aa4035d2ea8ffa9bbbee
install : $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && cp $(DIR_SRC)/config/hostapd/config ./.config
- cd $(DIR_APP) && sed -e "s@/usr/local@/usr@g" -i Makefile
- cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) && make install
+ #cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hostapd-usb_hw_did_not_ack.patch
+ -cp /usr/src/linux/include/linux/genetlink.h /usr/include/linux/
+ -cp /usr/src/linux/include/linux/netfilter/nfnetlink.h /usr/include/linux/netfilter/
+ -cp /usr/src/linux/include/linux/netfilter/nfnetlink_compat.h /usr/include/linux/netfilter/
+ cd $(DIR_APP)/hostapd && cp $(DIR_SRC)/config/hostapd/config ./.config
+ cd $(DIR_APP)/hostapd && sed -e "s@/usr/local@/usr@g" -i Makefile
+ cd $(DIR_APP)/hostapd && make $(MAKETUNING) $(EXTRA_MAKE)
+ cd $(DIR_APP)/hostapd && make install
install -v -m 644 $(DIR_SRC)/config/backup/includes/hostapd /var/ipfire/backup/addons/includes/hostapd
mkdir -p /var/ipfire/wlanap
touch /var/ipfire/wlanap/settings