]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/hostapd
buildprocess: Add extra metadata to pak lfs files
[people/pmueller/ipfire-2.x.git] / lfs / hostapd
CommitLineData
fad7b108
AF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
dba01cdc 4# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
fad7b108
AF
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
f15707c7
RR
27SUMMARY = Daemon for running a WPA capable Access Point
28
5b2fc5d6 29VER = 581dfcc
fad7b108
AF
30
31THISAPP = hostapd-$(VER)
32DL_FILE = $(THISAPP).tar.gz
33DL_FROM = $(URL_IPFIRE)
5b2fc5d6 34DIR_APP = $(DIR_SRC)/hostap-$(VER)
fad7b108
AF
35TARGET = $(DIR_INFO)/$(THISAPP)
36PROG = hostapd
82134432 37PAK_VER = 58
fad7b108 38
2dc2a278 39DEPS =
fad7b108 40
f15707c7
RR
41SERVICES = hostapd
42
fad7b108
AF
43###############################################################################
44# Top-level Rules
45###############################################################################
46
47objects = $(DL_FILE)
48
49$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50
5b2fc5d6 51$(DL_FILE)_MD5 = eed922f2daabe16d74adf2b23455d8bd
fad7b108
AF
52
53install : $(TARGET)
54
55check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56
57download :$(patsubst %,$(DIR_DL)/%,$(objects))
58
59md5 : $(subst %,%_MD5,$(objects))
60
15b6f6f9 61dist:
fad7b108
AF
62 @$(PAK)
63
64###############################################################################
65# Downloading, checking, md5sum
66###############################################################################
67
68$(patsubst %,$(DIR_CHK)/%,$(objects)) :
69 @$(CHECK)
70
71$(patsubst %,$(DIR_DL)/%,$(objects)) :
72 @$(LOAD)
73
74$(subst %,%_MD5,$(objects)) :
75 @$(MD5)
76
77###############################################################################
78# Installation Details
79###############################################################################
80
81$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
82 @$(PREBUILD)
83 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
d7d57745 84
2fc8d419
MF
85 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hostapd/hostapd-2.9-increase_EAPOL-timeouts.patch
86 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hostapd/hostapd-2.9-noscan.patch
d823d5f0 87
d7be31cb
AF
88 cd $(DIR_APP)/hostapd && cp $(DIR_SRC)/config/hostapd/config ./.config
89 cd $(DIR_APP)/hostapd && sed -e "s@/usr/local@/usr@g" -i Makefile
5b2fc5d6 90 cd $(DIR_APP)/hostapd && make $(MAKETUNING)
999d55de 91 cd $(DIR_APP)/hostapd && make install
07603508 92 install -v -m 644 $(DIR_SRC)/config/backup/includes/hostapd /var/ipfire/backup/addons/includes/hostapd
c6060f2d 93 # install initscript
f15707c7 94 $(call INSTALL_INITSCRIPTS,$(SERVICES))
cd2b10d6
AF
95 mkdir -p /var/ipfire/wlanap
96 touch /var/ipfire/wlanap/settings
9fce0ca5 97 cp -vrf $(DIR_SRC)/config/hostapd/hostapd.conf /var/ipfire/wlanap/hostapd.conf
92f2665d
CS
98 touch /var/ipfire/wlanap/hostapd.accept
99 touch /var/ipfire/wlanap/hostapd.deny
100 cp -vrf /var/ipfire/wlanap/hostapd.* /etc/
91197a3f
AF
101 chown nobody:nobody /var/ipfire/wlanap/*
102 chmod 644 /var/ipfire/wlanap/*
fad7b108
AF
103 @rm -rf $(DIR_APP)
104 @$(POSTBUILD)