mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
There is a bug (fix at [1]) in hostapd 2.1-2.3 that let it crash when used with the wired driver. The package in jessie (and sid) is affected, so we build it from sources (same, older, version as wpa_supplicant). [1] http://w1.fi/cgit/hostap/commit/?id=e9b783d58c23a7bb50b2f25bce7157f1f3
40 lines
685 B
Makefile
40 lines
685 B
Makefile
#!/usr/bin/make
|
|
|
|
PV = 2.0
|
|
PKG = hostapd-$(PV)
|
|
TAR = $(PKG).tar.gz
|
|
SRC = http://w1.fi/releases/$(TAR)
|
|
|
|
NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
|
|
|
|
CONFIG_OPTS =
|
|
|
|
PATCHES = \
|
|
hostapd-config
|
|
|
|
SUBDIR = hostapd
|
|
|
|
all: install
|
|
|
|
$(TAR):
|
|
wget $(SRC)
|
|
|
|
.$(PKG)-unpacked: $(TAR)
|
|
tar xfz $(TAR)
|
|
@touch $@
|
|
|
|
.$(PKG)-patches-applied: .$(PKG)-unpacked
|
|
cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1
|
|
@touch $@
|
|
|
|
.$(PKG)-configured: .$(PKG)-patches-applied
|
|
cp $(PKG)/$(SUBDIR)/defconfig $(PKG)/$(SUBDIR)/.config
|
|
@touch $@
|
|
|
|
.$(PKG)-built: .$(PKG)-configured
|
|
cd $(PKG)/$(SUBDIR) && make -j $(NUM_CPUS)
|
|
@touch $@
|
|
|
|
install: .$(PKG)-built
|
|
cd $(PKG)/$(SUBDIR) && make install
|