[Babel-users] babel-pinger on openwrt
Michael Grant
mgrant at grant.org
Sun Nov 1 20:46:28 UTC 2009
Ok, I finally answered my own question, here's how to include
babel-pinger in openwrt 8.09:
1) mkdir feeds/packages/net/babel-pinger
2) create ffeeds/packages/net/babel-pinger/Makefile (this is a copy of
the babeld Makefile modified for babel-pinger):
#
# Copyright (C) 2007-2009 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:=babel-pinger
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
PKG_MD5SUM:=40d4931986913f5f8d9b5b70abf6fda5
include $(INCLUDE_DIR)/package.mk
define Package/babel-pinger
SECTION:=net
CATEGORY:=Network
TITLE:=set up a default route if a host is reachable
URL:=http://www.pps.jussieu.fr/~jch/software/babel/
DEPENDS:=+kmod-ipv6
endef
define Package/babel-pinger/description
Babel-pinger determines whether a given host or set
of hosts are reachable through a given interface and,
if so, sets up a default route through the loopback
interface. This route can then be exported into a
suitable routing protocol such as Babel.
endef
MAKE_FLAGS += \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
define Package/babel-pinger/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/babel-pinger $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,babel-pinger))
3) ln -s ../../../feeds/packages/net/babel-pinger/
package/feeds/packages/babel-pinger
4) make menuconfig and select Net/babel-pinger (and of course Net/babel)
5) make
More information about the Babel-users
mailing list