2014-06-01 16:32:30 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
PKG_NAME:=freewtp
|
2016-08-15 15:38:49 +02:00
|
|
|
PKG_VERSION:=1.3.2
|
2014-06-01 16:32:30 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2016-04-29 09:04:52 +02:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-08-22 16:59:55 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/travelping/freewtp.git
|
2016-04-29 09:04:52 +02:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2016-08-22 16:59:55 +02:00
|
|
|
PKG_SOURCE_VERSION:=8cc6559f08b0b21dd501a46dd3079b8901a0ff34
|
2016-04-29 09:04:52 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Travelping GmbH <info@travelping.com>
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-v2
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2014-06-01 16:32:30 +02:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
2014-06-01 16:32:30 +02:00
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2014-06-04 22:58:34 +02:00
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define Package/freewtp
|
2014-06-01 16:32:30 +02:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2016-08-22 16:59:55 +02:00
|
|
|
TITLE:=Freewtp WTP
|
|
|
|
MAINTAINER:=Travelping GmbH <info@travelping.com>
|
|
|
|
DEPENDS:=+libnl +libev +libconfig +libcyassl +kmod-freewtp \
|
|
|
|
+@CYASSL_HAS_DTLS +@CYASSL_HAS_AES_CCM +@CYASSL_HAS_AES_GCM \
|
|
|
|
+@CYASSL_HAS_CHACHA +@CYASSL_HAS_ECC +@CYASSL_HAS_DH \
|
|
|
|
+@CYASSL_HAS_PSK +@CYASSL_HAS_ECC25519 +@CYASSL_HAS_POLY_1305
|
2014-06-01 16:32:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define Package/freewtp/description
|
|
|
|
This package contains the Freewtp WTP daemon.
|
2014-06-01 16:32:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define Package/freewtp/conffiles
|
2016-04-29 09:04:52 +02:00
|
|
|
/etc/capwap/wtp.conf
|
|
|
|
/etc/capwap/ca.crt
|
|
|
|
/etc/capwap/wtp.crt
|
|
|
|
/etc/capwap/wtp.key
|
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define KernelPackage/freewtp
|
2014-06-01 16:32:30 +02:00
|
|
|
SUBMENU:=Network Support
|
2016-08-22 16:59:55 +02:00
|
|
|
TITLE:=Freewtp Data Channel Module
|
|
|
|
MAINTAINER:=Travelping GmbH <info@travelping.com>
|
|
|
|
DEPENDS:=+kmod-mac80211 +kmod-iptunnel +kmod-udptunnel4 +IPV6:kmod-udptunnel6
|
2014-06-10 22:34:38 +02:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/src/wtp/kmod/smartcapwap.ko
|
2014-06-01 16:32:30 +02:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,smartcapwap)
|
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define KernelPackage/freewtp/description
|
|
|
|
This package contains the Freewtp Data Transport kernel module.
|
2014-06-01 16:32:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-04-29 09:04:52 +02:00
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3
|
2014-06-01 16:32:30 +02:00
|
|
|
|
|
|
|
define Build/Compile/wtp
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
NOSTDINC_FLAGS = \
|
|
|
|
-I$(PKG_BUILD_DIR)/src/kmod \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211-backport \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211/uapi \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211 \
|
|
|
|
-include backport/autoconf.h \
|
|
|
|
-include backport/backport.h
|
|
|
|
|
2014-06-01 16:32:30 +02:00
|
|
|
define Build/Compile/kmod
|
2016-08-22 16:59:55 +02:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
2014-06-01 16:32:30 +02:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
2016-08-22 16:59:55 +02:00
|
|
|
CROSS_COMPILE="$(KERNEL_CROSS)" \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)/src/kmod" \
|
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
2014-06-01 16:32:30 +02:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(Build/Compile/wtp)
|
|
|
|
$(Build/Compile/kmod)
|
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
define Package/freewtp/install
|
2014-06-01 16:32:30 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/capwap
|
|
|
|
$(INSTALL_CONF) ./files/wtp.conf $(1)/etc/capwap/wtp.conf
|
|
|
|
$(INSTALL_CONF) ./files/ca.crt $(1)/etc/capwap/ca.crt
|
|
|
|
$(INSTALL_CONF) ./files/wtp.crt $(1)/etc/capwap/wtp.crt
|
|
|
|
$(INSTALL_CONF) ./files/wtp.key $(1)/etc/capwap/wtp.key
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2016-08-22 16:59:55 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wtp $(1)/usr/bin
|
2014-06-01 16:32:30 +02:00
|
|
|
endef
|
|
|
|
|
2016-08-22 16:59:55 +02:00
|
|
|
$(eval $(call BuildPackage,freewtp))
|
|
|
|
$(eval $(call KernelPackage,freewtp))
|