Clean up of Makefile, mark quagga plugin as broken, clean up init script file
This commit is contained in:
parent
c40447d16f
commit
8f0c7911ab
2 changed files with 32 additions and 42 deletions
|
@ -24,23 +24,18 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=bmx6-qmp
|
PKG_NAME:=bmx6
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
|
||||||
Public Sources:
|
PKG_SOURCE_URL:=git://bmx6.net/bmx6.git
|
||||||
#PKG_SOURCE_URL:=git://git.bmx6.net/bmx6.git
|
#PKG_SOURCE_URL:=git://github.com/axn/bmx6.git
|
||||||
PKG_SOURCE_URL:=git://github.com/axn/bmx6.git
|
|
||||||
|
|
||||||
PKG_REV:=7219010098ea67f8ea08a06a68e7a765b114ca16
|
PKG_REV:=7219010098ea67f8ea08a06a68e7a765b114ca16
|
||||||
|
|
||||||
Private Sources:
|
|
||||||
#PKG_SOURCE_URL:=file:///usr/src/bmx6/bmx6-private.git
|
|
||||||
|
|
||||||
PKG_VERSION:=r2013022001
|
PKG_VERSION:=r2013022001
|
||||||
|
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=4
|
||||||
#PKG_INSTALL:=1 # this tries to install straight to /usr/sbin/bmx6
|
|
||||||
|
|
||||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
@ -52,8 +47,6 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
#-DNO_TRAFFIC_DUMP -DNO_DYN_PLUGIN -DNO_DEBUG_DUMP -DNO_DEBUG_ALL -DNO_DEBUG_TRACK -DNO_DEBUG_SYS
|
|
||||||
|
|
||||||
MAKE_ARGS += \
|
MAKE_ARGS += \
|
||||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) -I. -I$(STAGING_DIR)/usr/include -DNO_DEBUG_ALL -DNO_DEBUG_DUMP" \
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -I. -I$(STAGING_DIR)/usr/include -DNO_DEBUG_ALL -DNO_DEBUG_DUMP" \
|
||||||
EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib " \
|
EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib " \
|
||||||
|
@ -63,8 +56,7 @@ MAKE_ARGS += \
|
||||||
STRIP="/bin/false" \
|
STRIP="/bin/false" \
|
||||||
build_all
|
build_all
|
||||||
|
|
||||||
|
define Package/bmx6/Default
|
||||||
define Package/bmx6-qmp/Default
|
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=qMp
|
CATEGORY:=qMp
|
||||||
TITLE:=BMX6 layer 3 routing daemon (QMP version)
|
TITLE:=BMX6 layer 3 routing daemon (QMP version)
|
||||||
|
@ -72,37 +64,37 @@ define Package/bmx6-qmp/Default
|
||||||
MAINTAINER:=Axel Neumann <neumann@cgws.de>
|
MAINTAINER:=Axel Neumann <neumann@cgws.de>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp/description
|
define Package/bmx6/description
|
||||||
BMX6 layer 3 routing daemon (QMP version) supporting IPv4, IPv6, and IPv4 over IPv6 - http://www.bmx6.net
|
BMX6 layer 3 routing daemon supporting IPv4, IPv6, and IPv4 over IPv6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp
|
define Package/bmx6
|
||||||
$(call Package/bmx6-qmp/Default)
|
$(call Package/bmx6/Default)
|
||||||
MENU:=1
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-uci-config
|
define Package/bmx6-uci-config
|
||||||
$(call Package/bmx6-qmp/Default)
|
$(call Package/bmx6/Default)
|
||||||
DEPENDS:=bmx6-qmp +libuci
|
DEPENDS:=bmx6 +libuci
|
||||||
TITLE:=configuration plugin based on uci (recommended!)
|
TITLE:=configuration plugin based on uci (recommended!)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/bmx6-qmp-json
|
define Package/bmx6-json
|
||||||
$(call Package/bmx6-qmp/Default)
|
$(call Package/bmx6/Default)
|
||||||
DEPENDS:=bmx6-qmp +libjson
|
DEPENDS:=bmx6 +libjson
|
||||||
TITLE:=josn plugin based on jsonc
|
TITLE:=json plugin based on jsonc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-sms
|
define Package/bmx6-sms
|
||||||
$(call Package/bmx6-qmp/Default)
|
$(call Package/bmx6/Default)
|
||||||
DEPENDS:=bmx6-qmp
|
DEPENDS:=bmx6
|
||||||
TITLE:=sms plugin
|
TITLE:=sms plugin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-quagga
|
define Package/bmx6-quagga
|
||||||
$(call Package/bmx6-qmp/Default)
|
$(call Package/bmx6/Default)
|
||||||
DEPENDS:=bmx6-qmp +qmp-quagga
|
DEPENDS:=bmx6 +qmp-quagga @BROKEN
|
||||||
TITLE:=bmx6 quagga plugin to redistribute/export routes (needs manet/bmx6 patched quagga 0.99.21)
|
TITLE:=bmx6 quagga plugin to redistribute/export routes (needs manet/bmx6 patched quagga 0.99.21)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -115,43 +107,42 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/bmx6-qmp/install
|
define Package/bmx6/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bmx6 $(1)/usr/sbin/bmx6
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bmx6 $(1)/usr/sbin/bmx6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/bmx6-qmp-uci-config/conffiles
|
define Package/bmx6-uci-config/conffiles
|
||||||
/etc/config/bmx6
|
/etc/config/bmx6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/bmx6-qmp-uci-config/install
|
define Package/bmx6-uci-config/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib $(1)/etc/config $(1)/etc/init.d
|
$(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_BIN) $(PKG_BUILD_DIR)/lib/bmx6_uci_config/bmx6_config.so $(1)/usr/lib/bmx6_config.so
|
||||||
$(INSTALL_BIN) ./files/etc/init.d/bmx6 $(1)/etc/init.d/bmx6
|
$(INSTALL_BIN) ./files/etc/init.d/bmx6 $(1)/etc/init.d/bmx6
|
||||||
$(INSTALL_DATA) ./files/etc/config/bmx6 $(1)/etc/config/bmx6
|
$(INSTALL_DATA) ./files/etc/config/bmx6 $(1)/etc/config/bmx6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-json/install
|
define Package/bmx6-json/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_json/bmx6_json.so $(1)/usr/lib/bmx6_json.so
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_json/bmx6_json.so $(1)/usr/lib/bmx6_json.so
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-sms/install
|
define Package/bmx6-sms/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_sms/bmx6_sms.so $(1)/usr/lib/bmx6_sms.so
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_sms/bmx6_sms.so $(1)/usr/lib/bmx6_sms.so
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bmx6-qmp-quagga/install
|
define Package/bmx6-quagga/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_quagga/bmx6_quagga.so $(1)/usr/lib/bmx6_quagga.so
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_quagga/bmx6_quagga.so $(1)/usr/lib/bmx6_quagga.so
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,bmx6-qmp))
|
$(eval $(call BuildPackage,bmx6))
|
||||||
$(eval $(call BuildPackage,bmx6-qmp-uci-config))
|
$(eval $(call BuildPackage,bmx6-uci-config))
|
||||||
$(eval $(call BuildPackage,bmx6-qmp-json))
|
$(eval $(call BuildPackage,bmx6-json))
|
||||||
$(eval $(call BuildPackage,bmx6-qmp-sms))
|
$(eval $(call BuildPackage,bmx6-sms))
|
||||||
$(eval $(call BuildPackage,bmx6-qmp-quagga))
|
$(eval $(call BuildPackage,bmx6-quagga))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ start() {
|
||||||
cd /root/
|
cd /root/
|
||||||
ulimit -c 20000
|
ulimit -c 20000
|
||||||
$BIN -f $CONF -d0 > /dev/null &
|
$BIN -f $CONF -d0 > /dev/null &
|
||||||
# start-stop-daemon -b -x $BIN -S -- -f $CONF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
|
Loading…
Reference in a new issue