Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (C) 2012-2014 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=babel-pinger
  6. PKG_VERSION:=0.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/files/
  10. PKG_HASH:=c411430bb102f08d3d68d2fb5010b5da0149908b671ac0fb12abd8c8ee6380c5
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/babel-pinger
  13. SECTION:=net
  14. CATEGORY:=Network
  15. SUBMENU:=Routing and Redirection
  16. TITLE:=Babel-pinger
  17. URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/babel/
  18. MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
  19. DEPENDS:=+librt
  20. endef
  21. define Package/babel-pinger/description
  22. Babel-pinger is a hack to export a default route into Babel for people
  23. using DHCP to configure their routers rather than speaking to their
  24. upstream provider with a proper routing protocol.
  25. endef
  26. MAKE_FLAGS+= \
  27. CFLAGS="$(TARGET_CFLAGS)" \
  28. define Package/babel-pinger/install
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/babel-pinger $(1)/usr/sbin/
  31. endef
  32. $(eval $(call BuildPackage,babel-pinger))