From 1696064d221d27ac9208ec860c06487ea9a3f16e Mon Sep 17 00:00:00 2001 From: Gabriel Kerneis Date: Tue, 30 Dec 2014 16:38:21 +0100 Subject: [PATCH] babel-pinger: initial import (closes #65) Signed-off-by: Gabriel Kerneis --- babel-pinger/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 babel-pinger/Makefile diff --git a/babel-pinger/Makefile b/babel-pinger/Makefile new file mode 100644 index 0000000..528a07f --- /dev/null +++ b/babel-pinger/Makefile @@ -0,0 +1,41 @@ +# Copyright (C) 2012-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. + +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.univ-paris-diderot.fr/~jch/software/files/ +PKG_MD5SUM:=40d4931986913f5f8d9b5b70abf6fda5 + +include $(INCLUDE_DIR)/package.mk + +define Package/babel-pinger + SECTION:=net + CATEGORY:=Network + SUBMENU:=Routing and Redirection + TITLE:=Babel-pinger + URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/babel/ + MAINTAINER:=Gabriel Kerneis + DEPENDS:=+librt +endef + +define Package/babel-pinger/description + Babel-pinger is a hack to export a default route into Babel for people + using DHCP to configure their routers rather than speaking to their + upstream provider with a proper routing protocol. +endef + +MAKE_FLAGS+= \ + CFLAGS="$(TARGET_CFLAGS)" \ + +define Package/babeld/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/babel-pinger $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,babel-pinger)) -- 2.30.2