summaryrefslogtreecommitdiff
path: root/package/network/services/authsae/Makefile
blob: df160544eeb2e876f5f642b8aac1a38efafa5f3c (plain)
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
# Copyright (C) 2007-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=authsae
PKG_VERSION:=2014-06-09
PKG_RELEASE=$(PKG_SOURCE_VERSION)

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cozybit/authsae.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=8531ab158910a525d4bcbb3ad02c08342f6987f2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1

CMAKE_OPTIONS += -DSYSCONF_INSTALL_DIR=/etc

PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_LICENSE:=BSD-4-Clause

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/authsae
  SECTION:=net
  CATEGORY:=Network
  TITLE:=80211s mesh security
  DEPENDS:=+libopenssl +libconfig +libnl-tiny +@OPENSSL_WITH_EC
endef

TARGET_CFLAGS += -D_GNU_SOURCE

define Package/authsae/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
	$(INSTALL_DIR) $(1)/lib/wifi
	$(INSTALL_DATA) ./files/lib/wifi/authsae.sh $(1)/lib/wifi/
endef

$(eval $(call BuildPackage,authsae))