summaryrefslogtreecommitdiffstats
path: root/rules/hostapd.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-11-18 12:05:03 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-11-25 06:45:06 +0100
commiteb4c40c074b5684d870e5a1025886937cb96d149 (patch)
tree6a90f7b6d9e48000b03c3e80cb97e1f8726a301d /rules/hostapd.make
parent0cbe8e4c570be106c0af4664f711f31e12d828cf (diff)
downloadptxdist-eb4c40c074b5684d870e5a1025886937cb96d149.tar.gz
ptxdist-eb4c40c074b5684d870e5a1025886937cb96d149.tar.xz
hostapd: new package
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/hostapd.make')
-rw-r--r--rules/hostapd.make72
1 files changed, 72 insertions, 0 deletions
diff --git a/rules/hostapd.make b/rules/hostapd.make
new file mode 100644
index 000000000..a3c8c352b
--- /dev/null
+++ b/rules/hostapd.make
@@ -0,0 +1,72 @@
+# -*-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.5
+HOSTAPD_MD5 := 69f9cec3f76d74f402864a43e4f8624f
+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)
+HOSTAPD_DEFCONF := $(shell ptxd_get_alternative config/hostapd defconfig && echo $$ptxd_reply)
+HOSTAPD_CONFIG := $(BUILDDIR)/$(HOSTAPD)/$(HOSTAPD_SUBDIR)/.config
+HOSTAPD_LICENSE := BSD-3-Clause
+HOSTAPD_LICENSE_FILES := \
+ file://COPYING;md5=36b27801447e0662ee0138d17fe93880 \
+ file://README;md5=7f393579f8b109fe91f3b9765d26c7d3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOSTAPD_MAKE_ENV := \
+ $(CROSS_ENV) \
+ BINDIR=/usr/sbin
+HOSTAPD_INSTALL_ENV := \
+ $(HOSTAPD_MAKE_ENV)
+
+$(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_DEFCONF) $(HOSTAPD_CONFIG)
+ @$(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_finish, hostapd)
+
+ @$(call touch)
+
+# vim: syntax=make