2006-07-24 15:20:08 +08:00
|
|
|
#
|
2016-03-18 15:51:39 +08:00
|
|
|
# Copyright (C) 2009-2016 OpenWrt.org
|
2006-07-24 15:20:08 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=olsrd
|
2015-09-21 16:40:34 +08:00
|
|
|
PKG_VERSION:=0.9.0.3
|
2016-01-14 18:28:24 +08:00
|
|
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
2006-07-24 15:20:08 +08:00
|
|
|
|
2016-01-14 18:28:24 +08:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-03-18 09:44:25 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/OLSR/olsrd.git
|
2016-01-14 18:28:24 +08:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=v0.9.0.3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
|
|
PKG_MIRROR_MD5SUM:=
|
2006-07-24 15:20:08 +08:00
|
|
|
|
2010-10-09 07:57:13 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-11-03 20:16:46 +08:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2010-10-09 07:57:13 +08:00
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-10-07 02:01:23 +08:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-11-03 18:34:44 +08:00
|
|
|
define Package/olsrd/template
|
2006-07-24 15:20:08 +08:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 15:56:38 +08:00
|
|
|
SUBMENU:=Routing and Redirection
|
2010-06-05 03:38:58 +08:00
|
|
|
MAINTAINER:=Saverio Proto <zioproto@gmail.com>
|
2006-07-24 15:20:08 +08:00
|
|
|
TITLE:=OLSR (Optimized Link State Routing) daemon
|
|
|
|
URL:=http://www.olsr.org/
|
|
|
|
endef
|
|
|
|
|
2007-11-03 18:34:44 +08:00
|
|
|
define Package/olsrd
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
MENU:=1
|
2008-08-14 21:16:53 +08:00
|
|
|
DEPENDS:=+libpthread
|
2007-11-03 18:34:44 +08:00
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd/conffiles
|
2014-06-12 18:57:12 +08:00
|
|
|
/etc/config/olsrd
|
2014-05-28 18:28:14 +08:00
|
|
|
/etc/config/olsrd6
|
2008-11-19 07:19:44 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-arprefresh
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Kernel ARP cache refresh plugin
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dot-draw
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 15:20:08 +08:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Dot topology information plugin
|
|
|
|
endef
|
|
|
|
|
2007-04-28 21:08:05 +08:00
|
|
|
define Package/olsrd-mod-bmf
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2008-08-14 21:16:53 +08:00
|
|
|
DEPENDS:=olsrd +kmod-tun
|
2007-04-28 21:08:05 +08:00
|
|
|
TITLE:=Basic multicast forwarding plugin
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-dyn-gw
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2008-08-14 21:16:53 +08:00
|
|
|
DEPENDS:=olsrd
|
2006-07-24 15:20:08 +08:00
|
|
|
TITLE:=Dynamic internet gateway plugin
|
|
|
|
endef
|
|
|
|
|
2008-10-20 07:37:13 +08:00
|
|
|
define Package/olsrd-mod-dyn-gw-plain
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
2008-11-19 07:19:44 +08:00
|
|
|
TITLE:=Dynamic internet gateway plain plugin
|
2008-10-20 07:37:13 +08:00
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-httpinfo
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 15:20:08 +08:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative web server plugin
|
|
|
|
endef
|
|
|
|
|
2012-06-08 01:42:50 +08:00
|
|
|
define Package/olsrd-mod-jsoninfo
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative plugin with JSON output
|
|
|
|
endef
|
|
|
|
|
2010-05-28 05:58:59 +08:00
|
|
|
define Package/olsrd-mod-mdns
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
2012-06-08 01:42:50 +08:00
|
|
|
TITLE:=MDNS/Zeroconf/Bonjour packet distribution
|
2010-05-28 05:58:59 +08:00
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-nameservice
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 15:20:08 +08:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Lightweight hostname resolver plugin
|
|
|
|
endef
|
|
|
|
|
2010-05-28 05:58:59 +08:00
|
|
|
define Package/olsrd-mod-p2pd
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Peer to Peer Discovery plugin
|
|
|
|
endef
|
|
|
|
|
2012-06-08 01:42:50 +08:00
|
|
|
|
|
|
|
define Package/olsrd-mod-pgraph
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=output network topology for pgraph
|
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-pud
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Position Update Distribution plugin
|
|
|
|
endef
|
|
|
|
|
2009-05-07 21:41:23 +08:00
|
|
|
define Package/olsrd-mod-quagga
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Quagga plugin
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-secure
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 15:20:08 +08:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Message signing plugin to secure routing domain
|
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-sgwdynspeed
|
2012-06-08 01:42:50 +08:00
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
2013-02-14 02:08:10 +08:00
|
|
|
TITLE:=Smart Gateway dynamic speed plugin
|
2012-06-08 01:42:50 +08:00
|
|
|
endef
|
|
|
|
|
2007-08-03 11:32:19 +08:00
|
|
|
define Package/olsrd-mod-txtinfo
|
2007-11-03 18:34:44 +08:00
|
|
|
$(call Package/olsrd/template)
|
2007-08-03 11:32:19 +08:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative web server plugin
|
|
|
|
endef
|
|
|
|
|
2009-06-26 05:55:48 +08:00
|
|
|
define Package/olsrd-mod-watchdog
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Watchdog plugin
|
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-pud/conffiles
|
|
|
|
/etc/olsrd.d/olsrd.pud.position.conf
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-secure/conffiles
|
|
|
|
/etc/olsrd.d/olsrd_secure_key
|
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-sgwdynspeed/conffiles
|
|
|
|
/etc/olsrd.d/olsrd.sgw.speed.conf
|
|
|
|
endef
|
|
|
|
|
2010-05-28 05:58:59 +08:00
|
|
|
MAKE_FLAGS+= \
|
|
|
|
NO_DEBUG_MESSAGES=1 \
|
|
|
|
OS="linux" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
STRIP="true" \
|
|
|
|
INSTALL_LIB="true" \
|
2013-02-14 02:08:10 +08:00
|
|
|
SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo jsoninfo mdns nameservice p2pd pgraph pud quagga secure sgwdynspeed txtinfo watchdog"
|
2010-10-09 07:57:13 +08:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,all)
|
|
|
|
$(call Build/Compile/Default,libs)
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd/install
|
2014-05-28 18:28:14 +08:00
|
|
|
$(INSTALL_DIR) $(1)/lib/functions
|
|
|
|
$(INSTALL_DATA) ./files/olsrd.init $(1)/lib/functions/olsrd.sh
|
2007-10-25 01:25:48 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2014-06-12 18:57:12 +08:00
|
|
|
$(INSTALL_DATA) ./files/olsrd.config $(1)/etc/config/olsrd
|
2014-05-28 18:28:14 +08:00
|
|
|
$(INSTALL_DATA) ./files/olsrd6.config $(1)/etc/config/olsrd6
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd $(1)/usr/sbin/
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2014-06-12 18:57:12 +08:00
|
|
|
$(INSTALL_BIN) ./files/olsrd4.init $(1)/etc/init.d/olsrd
|
2014-05-28 18:28:14 +08:00
|
|
|
$(INSTALL_BIN) ./files/olsrd6.init $(1)/etc/init.d/olsrd6
|
2013-09-25 20:35:25 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
|
|
|
$(INSTALL_BIN) ./files/olsrd.hotplug.sh $(1)/etc/hotplug.d/iface/50-olsrd
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2008-11-19 07:19:44 +08:00
|
|
|
define Package/olsrd-mod-arprefresh/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/arprefresh/olsrd_arprefresh.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-dot-draw/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dot_draw/olsrd_dot_draw.so.* $(1)/usr/lib/
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2007-04-28 21:08:05 +08:00
|
|
|
define Package/olsrd-mod-bmf/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmf/olsrd_bmf.so.* $(1)/usr/lib/
|
2007-04-28 21:08:05 +08:00
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-dyn-gw/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw/olsrd_dyn_gw.so.* $(1)/usr/lib/
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2008-10-20 07:37:13 +08:00
|
|
|
define Package/olsrd-mod-dyn-gw-plain/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw_plain/olsrd_dyn_gw_plain.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-httpinfo/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/httpinfo/olsrd_httpinfo.so.* $(1)/usr/lib/
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2012-06-08 01:42:50 +08:00
|
|
|
define Package/olsrd-mod-jsoninfo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/jsoninfo/olsrd_jsoninfo.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2010-05-28 05:58:59 +08:00
|
|
|
define Package/olsrd-mod-mdns/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/mdns/olsrd_mdns.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-nameservice/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* $(1)/usr/lib/
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2010-05-28 05:58:59 +08:00
|
|
|
define Package/olsrd-mod-p2pd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/p2pd/olsrd_p2pd.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2012-06-08 01:42:50 +08:00
|
|
|
define Package/olsrd-mod-pgraph/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/pgraph/olsrd_pgraph.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-pud/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/olsrd.d
|
|
|
|
$(CP) ./files/olsrd.pud.position.conf $(1)/etc/olsrd.d/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/pud/nmealib/lib/libnmea.so $(1)/usr/lib/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/pud/wireformat/lib/libOlsrdPudWireFormat.so $(1)/usr/lib/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/pud/olsrd_pud.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2009-05-07 21:41:23 +08:00
|
|
|
define Package/olsrd-mod-quagga/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/quagga/olsrd_quagga.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
define Package/olsrd-mod-secure/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/olsrd.d
|
2006-07-24 15:20:08 +08:00
|
|
|
$(CP) ./files/olsrd_secure_key $(1)/etc/olsrd.d/
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/secure/olsrd_secure.so.* $(1)/usr/lib/
|
2006-07-24 15:20:08 +08:00
|
|
|
endef
|
|
|
|
|
2013-02-14 02:08:10 +08:00
|
|
|
define Package/olsrd-mod-sgwdynspeed/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/olsrd.d
|
|
|
|
$(CP) ./files/olsrd.sgw.speed.conf $(1)/etc/olsrd.d/
|
2012-06-08 01:42:50 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2013-02-14 02:08:10 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/sgwdynspeed/olsrd_sgwdynspeed.so.* $(1)/usr/lib/
|
2012-06-08 01:42:50 +08:00
|
|
|
endef
|
|
|
|
|
2007-08-03 11:32:19 +08:00
|
|
|
define Package/olsrd-mod-txtinfo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 14:01:52 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/txtinfo/olsrd_txtinfo.so.* $(1)/usr/lib/
|
2007-08-03 11:32:19 +08:00
|
|
|
endef
|
|
|
|
|
2009-06-26 05:55:48 +08:00
|
|
|
define Package/olsrd-mod-watchdog/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/watchdog/olsrd_watchdog.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd))
|
2008-11-19 07:19:44 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-arprefresh))
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dot-draw))
|
2007-04-28 21:08:05 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-bmf))
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dyn-gw))
|
2008-10-20 07:37:13 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dyn-gw-plain))
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-httpinfo))
|
2012-06-08 01:42:50 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-jsoninfo))
|
2010-05-28 05:58:59 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-mdns))
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-nameservice))
|
2010-05-28 05:58:59 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-p2pd))
|
2012-06-08 01:42:50 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-pgraph))
|
2013-02-14 02:08:10 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-pud))
|
2009-05-07 21:41:23 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-quagga))
|
2006-07-24 15:20:08 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-secure))
|
2013-02-14 02:08:10 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-sgwdynspeed))
|
2007-08-03 11:32:19 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-txtinfo))
|
2009-06-26 05:55:48 +08:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-watchdog))
|