]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/hostapd
Done a whole review of the lfs to make building more paralell
[people/pmueller/ipfire-2.x.git] / lfs / hostapd
index b4639b9aab9dd502c936078cd73f2e25f308aac4..a63e338aa01152b64185453dc7e01f6827715675 100644 (file)
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = hostapd
-PAK_VER    = 1
+PAK_VER    = 5
 
 DEPS       = ""
 
@@ -77,9 +77,15 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_SRC) && tar xzf $(DIR_DL)/madwifi-0.9.4.tar.gz
        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 && make install
+       cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) && make install
+       cp -vrf $(DIR_SRC)/config/hostapd/hostapd.conf /etc/hostapd.conf
+       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
+       cp -vrf $(DIR_SRC)/config/hostapd/hostapd.conf /var/ipfire/wlanap/hostapd.conf
+       chown nobody:nobody /var/ipfire/wlanap/*
+       chmod 644 /var/ipfire/wlanap/*
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)