Developing lightweight computation at the DSG edge

Commit 47bc3c36 authored by Axel Neumann's avatar Axel Neumann
Browse files

packages/bmx6: update Makefile, fix defective bmx6 commit b4b2eda8

parent c6cf7b5b
#
# Copyright (C) 2010 bmx6.net
# Copyright (C) 2011 OpenWrt.org, bmx6.net
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
......@@ -13,21 +13,13 @@ PKG_NAME:=bmx6
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.bmx6.net/bmx6.git
PKG_REV:=c56e493c428dfa773cad83d1ce1dcbca53a23fdc
PKG_REV:=c3ef7d76292a765c5e578bd4113030dc34ee3b9a
#PKG_SOURCE_PROTO:=git
#PKG_SOURCE_URL:=file:///usr/src/bmx6/bmx6-private.git
#PKG_REV:=0738371aa9985a3063d2ed099ac5a5c25df6c55b
#PKG_VERSION:=r$(PKG_REV)
#better using an increasing date (e.g.:20110101) + day-version (01), otherwise lower git hashes may prevent upgrading
PKG_VERSION:=r2011031502
PKG_VERSION:=r2011031602
#PKG_RELEASE:=1
#PKG_INSTALL:=1 # this tries to install straight to /usr/sbin/bmx6
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
......@@ -35,9 +27,6 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
include $(INCLUDE_DIR)/package.mk
#define Package/bmx6/Default
# URL:=https://www.bmx6.net/
#endef
TARGET_CFLAGS += $(FPIC)
......@@ -53,47 +42,30 @@ MAKE_ARGS += \
build_all
define Package/bmx6/template
define Package/bmx6/Default
SECTION:=net
CATEGORY:=Network
TITLE:=BMX6 layer 3 routing daemon www.bmx6.net
SUBMENU:=Routing and Redirection
TITLE:=BMX6 layer 3 routing daemon
URL:=http://bmx6.net/
MAINTAINER:=Axel Neumann <neumann@cgws.de>
endef
define Package/bmx6/description
BMX6 layer 3 routing daemon
BMX6 layer 3 routing daemon supporting IPv4, IPv6, and IPv4 over IPv6 - http://www.bmx6.net
endef
define Package/bmx6
$(call Package/bmx6/template)
$(call Package/bmx6/Default)
MENU:=1
# DEPENDS:=+kmod-tun
endef
define Package/bmx6-uci-config
$(call Package/bmx6/template)
$(call Package/bmx6/Default)
DEPENDS:=bmx6 +libuci
TITLE:=configuration plugin based on uci
TITLE:=configuration plugin based on uci (recommended!)
endef
#define Package/bmx6-http-info
# $(call Package/bmx6/template)
# DEPENDS:=bmx6
# TITLE:=simple http info plugin
#endef
#define Package/bmx6-gsf-map
# $(call Package/bmx6/template)
# DEPENDS:=bmx6
# TITLE:=GSF decentral map plugin
#endef
#define Package/bmx6-howto-plugin
# $(call Package/bmx6/template)
# DEPENDS:=bmx6
# TITLE:=simple plugin example
#endef
......@@ -105,36 +77,26 @@ define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
endef
define Package/bmx6/install
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bmx6 $(1)/usr/sbin/bmx6
$(INSTALL_BIN) ./files/etc/init.d/bmx6 $(1)/etc/init.d
endef
define Package/bmx6-uci-config/conffiles
/etc/config/bmx6
endef
define Package/bmx6-uci-config/install
$(INSTALL_DIR) $(1)/usr/lib $(1)/etc/config $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_uci_config/bmx6_config.so $(1)/usr/lib/bmx6_config.so
# $(INSTALL_DATA) ./files/etc/config/bmx6 $(1)/etc/config
$(INSTALL_BIN) ./files/etc/init.d/bmx6 $(1)/etc/init.d/bmx6
$(INSTALL_DATA) ./files/etc/config/bmx6 $(1)/etc/config/bmx6
endef
#define Package/bmx6-http-info/install
# $(INSTALL_DIR) $(1)/usr/lib
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_http_info/bmx6_http_info.so.1 $(1)/usr/lib/bmx6_http_info.so
#endef
#define Package/bmx6-gsf-map/install
# $(INSTALL_DIR) $(1)/usr/lib
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_gsf_map/bmx6_gsf_map.so.1 $(1)/usr/lib/bmx6_gsf_map.so
#endef
#define Package/bmx6-howto-plugin/install
# $(INSTALL_DIR) $(1)/usr/lib
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_howto_plugin/bmx6_howto_plugin.so.1 $(1)/usr/lib/bmx6_howto_plugin.so
#endef
$(eval $(call BuildPackage,bmx6))
$(eval $(call BuildPackage,bmx6-uci-config))
#$(eval $(call BuildPackage,bmx6-http-info))
#$(eval $(call BuildPackage,bmx6-gsf-map))
#$(eval $(call BuildPackage,bmx6-howto-plugin))
# for more options execute: bmx6 --help
config 'bmx6' 'general'
# option 'runtime_dir' '/var/run/bmx6'
# option 'niit_source' '10.202.0.116'
......
......@@ -7,12 +7,8 @@ PID=/var/run/bmx6/pid
start() {
# mv /root/core.old /root/core.old.old
# mv /root/core /root/core.old
# cd /root/
# ulimit -c 20000
$BIN -f $CONF -d0 > /dev/null &
#start-stop-daemon -b -x $BIN -S -- -f $CONF
#$BIN -f $CONF -d0 > /dev/null &
start-stop-daemon -b -x $BIN -S -- -f $CONF
}
stop() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment