2015-06-08 16:02:13 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=oonf-dlep-proxy
|
2023-01-15 07:30:13 +08:00
|
|
|
PKG_RELEASE:=1
|
2015-06-08 16:02:13 +08:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2023-01-15 07:30:13 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/OLSR/OONF.git
|
|
|
|
PKG_SOURCE_DATE:=2022-08-25
|
|
|
|
PKG_SOURCE_VERSION:=fb15d54d6a7a087cb0c5ec37c49804f6ce432396
|
|
|
|
PKG_MIRROR_HASH:=ad88fa237d2b04119fe2e94ef7ab73d9e6361c1e922fd3f9265ea04d9a653a76
|
2015-06-08 16:02:13 +08:00
|
|
|
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
2021-06-11 08:26:54 +08:00
|
|
|
CMAKE_OPTIONS+=-D OONF_NO_WERROR:Bool=true \
|
|
|
|
-D OONF_LOGGING_LEVEL:String=debug \
|
|
|
|
-D OONF_NO_TESTING:Bool=true \
|
|
|
|
-D UCI:Bool=true \
|
|
|
|
-D OONF_APP_DEFAULT_CFG_HANDLER:String=uci \
|
|
|
|
-D OONF_STATIC_PLUGINS:String="class;clock;layer2;packet_socket;socket;stream_socket;telnet;timer;viewer;os_clock;os_fd;os_interface;os_system;nl80211_listener;layer2info;systeminfo;cfg_uciloader;cfg_compact;dlep_proxy" \
|
2023-01-15 07:30:13 +08:00
|
|
|
-D OONF_LIB_GIT:String=v$(PKG_SOURCE_VERSION) \
|
|
|
|
-D VERSION_SUB_TAG:String=$(PKG_SOURCE_DATE) \
|
2021-06-11 08:26:54 +08:00
|
|
|
-D INSTALL_LIB_DIR:Path=lib/oonf \
|
|
|
|
-D INSTALL_INCLUDE_DIR:Path=include/oonf \
|
|
|
|
-D INSTALL_CMAKE_DIR:Path=lib/oonf \
|
|
|
|
-D CMAKE_PREFIX_PATH=$(STAGING_DIR)/usr
|
2015-06-08 16:02:13 +08:00
|
|
|
|
|
|
|
define Package/oonf-git/template
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
MAINTAINER:=Henning Rogge <hrogge@gmail.com>
|
|
|
|
SUBMENU:=OLSR.org network framework
|
|
|
|
URL:=http://www.olsr.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/oonf-dlep-proxy
|
2016-04-19 18:29:36 +08:00
|
|
|
$(call Package/oonf-git/template)
|
2015-06-08 16:02:13 +08:00
|
|
|
TITLE:= Build DLEP Radio+Router Agent
|
2015-08-07 03:59:14 +08:00
|
|
|
DEPENDS:=+librt +libnl-tiny +libuci +oonf-init-scripts
|
2015-06-08 16:02:13 +08:00
|
|
|
VERSION:=$(PKG_VERSION)
|
|
|
|
endef
|
|
|
|
|
|
|
|
Build/Compile=$(call Build/Compile/Default,dlep_radio_static)
|
|
|
|
Build/Install=
|
|
|
|
|
|
|
|
define Build/Install
|
|
|
|
$(INSTALL_BIN) -D $(PKG_BUILD_DIR)/$(MAKE_PATH)/dlep_radio_static $(PKG_INSTALL_DIR)/usr/sbin/dlep_proxy;
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -I${STAGING_DIR}/usr/include/libnl-tiny
|
|
|
|
|
|
|
|
define Package/oonf-dlep-proxy/install
|
|
|
|
$(INSTALL_BIN) -D $(PKG_BUILD_DIR)/dlep_radio_static $(1)/usr/sbin/dlep_proxy
|
|
|
|
$(INSTALL_BIN) -D ./files/dlep_proxy.init $(1)/etc/init.d/dlep_proxy
|
|
|
|
$(INSTALL_BIN) -D ./files/dlep_proxy.hotplug $(1)/etc/hotplug.d/iface/50-dlep_proxy
|
|
|
|
$(INSTALL_DATA) -D ./files/dlep_proxy.uci $(1)/etc/config/dlep_proxy
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/oonf-dlep-proxy/conffiles
|
|
|
|
/etc/config/dlep_proxy
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,oonf-dlep-proxy))
|