1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# -*-makefile-*-
#
# Copyright (C) 2013 by Matthias Fend <matthias.fend@wolfvision.com>
# 2015 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_HOSTAPD) += hostapd
#
# Paths and names
#
HOSTAPD_NAME := hostapd
HOSTAPD_VERSION := 2.7
HOSTAPD_MD5 := 8d3799f3a3c247cff47d41503698721b
HOSTAPD := $(HOSTAPD_NAME)-$(HOSTAPD_VERSION)
HOSTAPD_SUFFIX := tar.gz
HOSTAPD_URL := http://w1.fi/releases/$(HOSTAPD).$(HOSTAPD_SUFFIX)
HOSTAPD_SOURCE := $(SRCDIR)/$(HOSTAPD).$(HOSTAPD_SUFFIX)
HOSTAPD_DIR := $(BUILDDIR)/$(HOSTAPD)
HOSTAPD_SUBDIR := $(HOSTAPD_NAME)
# Use '=' to delay $(shell ...) calls until this is needed
HOSTAPD_CONFIG = $(call ptx/get-alternative, config/hostapd, defconfig)
HOSTAPD_DOTCONFIG := $(BUILDDIR)/$(HOSTAPD)/$(HOSTAPD_SUBDIR)/.config
HOSTAPD_LICENSE := BSD-3-Clause
HOSTAPD_LICENSE_FILES := \
file://COPYING;md5=a3791c270ad6bb026707d17bf750e5ef \
file://README;md5=495cbce6008253de4b4d8f4cdfae9f4f
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
HOSTAPD_MAKE_ENV := \
$(CROSS_ENV) \
BINDIR=/usr/sbin
$(STATEDIR)/hostapd.prepare:
@$(call targetinfo)
# # run 'make clean' as hostapd's build system does not recognize config changes
@-$(HOSTAPD_MAKE_ENV) $(MAKE) -C $(HOSTAPD_DIR)/$(HOSTAPD_SUBDIR) clean
@cp $(HOSTAPD_CONFIG) $(HOSTAPD_DOTCONFIG)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/hostapd.install:
@$(call targetinfo)
@$(call world/install, HOSTAPD)
@install -v -m644 -D $(HOSTAPD_DIR)/hostapd/hostapd.conf \
$(HOSTAPD_PKGDIR)/etc/hostapd/hostapd.conf
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/hostapd.targetinstall:
@$(call targetinfo)
@$(call install_init, hostapd)
@$(call install_fixup, hostapd,PRIORITY,optional)
@$(call install_fixup, hostapd,SECTION,base)
@$(call install_fixup, hostapd,AUTHOR,"Matthias Fend <matthias.fend@wolfvision.com>")
@$(call install_fixup, hostapd,DESCRIPTION,missing)
@$(call install_copy, hostapd, 0, 0, 0755, -, /usr/sbin/hostapd)
@$(call install_alternative, hostapd, 0, 0, 0644, /etc/hostapd/hostapd.conf)
@$(call install_finish, hostapd)
@$(call touch)
# vim: syntax=make
|