2006-07-24 07:20:08 +00:00
|
|
|
#
|
2009-10-12 14:32:24 +00:00
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
2006-07-24 07:20:08 +00: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
|
2009-11-11 22:46:23 +00:00
|
|
|
PKG_VERSION:=0.5.6-r7
|
2009-12-13 20:52:41 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-24 07:20:08 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-04-11 10:58:23 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.olsr.org/releases/0.5
|
2009-11-11 22:46:23 +00:00
|
|
|
PKG_MD5SUM:=dde8cb45a10f0cad2010ab2e8ad55146
|
2006-07-24 07:20:08 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-10-06 18:01:23 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-11-03 10:34:44 +00:00
|
|
|
define Package/olsrd/template
|
2006-07-24 07:20:08 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=OLSR (Optimized Link State Routing) daemon
|
|
|
|
URL:=http://www.olsr.org/
|
|
|
|
endef
|
|
|
|
|
2007-11-03 10:34:44 +00:00
|
|
|
define Package/olsrd
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
MENU:=1
|
2008-08-14 13:16:53 +00:00
|
|
|
DEPENDS:=+libpthread
|
2007-11-03 10:34:44 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd/conffiles
|
2008-11-18 23:19:44 +00:00
|
|
|
/etc/config/olsrd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-arprefresh
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Kernel ARP cache refresh plugin
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dot-draw
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 07:20:08 +00:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Dot topology information plugin
|
|
|
|
endef
|
|
|
|
|
2007-04-28 13:08:05 +00:00
|
|
|
define Package/olsrd-mod-bmf
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2008-08-14 13:16:53 +00:00
|
|
|
DEPENDS:=olsrd +kmod-tun
|
2007-04-28 13:08:05 +00:00
|
|
|
TITLE:=Basic multicast forwarding plugin
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-dyn-gw
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2008-08-14 13:16:53 +00:00
|
|
|
DEPENDS:=olsrd
|
2006-07-24 07:20:08 +00:00
|
|
|
TITLE:=Dynamic internet gateway plugin
|
|
|
|
endef
|
|
|
|
|
2008-10-19 23:37:13 +00:00
|
|
|
define Package/olsrd-mod-dyn-gw-plain
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
2008-11-18 23:19:44 +00:00
|
|
|
TITLE:=Dynamic internet gateway plain plugin
|
2008-10-19 23:37:13 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-httpinfo
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 07:20:08 +00:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative web server plugin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-nameservice
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 07:20:08 +00:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Lightweight hostname resolver plugin
|
|
|
|
endef
|
|
|
|
|
2009-05-07 13:41:23 +00:00
|
|
|
define Package/olsrd-mod-quagga
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Quagga plugin
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-secure
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2006-07-24 07:20:08 +00:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Message signing plugin to secure routing domain
|
|
|
|
endef
|
|
|
|
|
2007-08-03 03:32:19 +00:00
|
|
|
define Package/olsrd-mod-txtinfo
|
2007-11-03 10:34:44 +00:00
|
|
|
$(call Package/olsrd/template)
|
2007-08-03 03:32:19 +00:00
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative web server plugin
|
|
|
|
endef
|
|
|
|
|
2009-06-25 21:55:48 +00:00
|
|
|
define Package/olsrd-mod-watchdog
|
|
|
|
$(call Package/olsrd/template)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Watchdog plugin
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-secure/conffiles
|
|
|
|
/etc/olsrd.d/olsrd_secure_key
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
NODEBUG=1 \
|
2007-10-24 17:25:48 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2006-07-24 07:20:08 +00:00
|
|
|
OS="linux" \
|
|
|
|
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
2007-03-24 17:58:55 +00:00
|
|
|
LIBDIR="$(PKG_INSTALL_DIR)/usr/lib" \
|
2007-04-11 10:58:23 +00:00
|
|
|
SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin/" \
|
|
|
|
ETCDIR="$(PKG_INSTALL_DIR)/etc" \
|
|
|
|
MANDIR="$(PKG_INSTALL_DIR)/usr/share/man" \
|
2007-12-14 06:01:52 +00:00
|
|
|
STRIP="true" \
|
|
|
|
INSTALL_LIB="true" \
|
2009-06-25 21:55:48 +00:00
|
|
|
SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo nameservice quagga secure txtinfo watchdog" \
|
2006-07-24 07:20:08 +00:00
|
|
|
all libs install install_libs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd/install
|
2007-10-24 17:25:48 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2008-09-08 12:42:13 +00:00
|
|
|
$(INSTALL_DATA) ./files/olsrd.config $(1)/etc/config/olsrd
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/olsrd.init $(1)/etc/init.d/olsrd
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-18 23:19:44 +00: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 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-dot-draw/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dot_draw/olsrd_dot_draw.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-28 13:08:05 +00:00
|
|
|
define Package/olsrd-mod-bmf/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmf/olsrd_bmf.so.* $(1)/usr/lib/
|
2007-04-28 13:08:05 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-dyn-gw/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw/olsrd_dyn_gw.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
2008-10-19 23:37:13 +00: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 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-httpinfo/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/httpinfo/olsrd_httpinfo.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-nameservice/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
2009-05-07 13:41:23 +00: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 07:20:08 +00:00
|
|
|
define Package/olsrd-mod-secure/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/olsrd.d
|
2006-07-24 07:20:08 +00:00
|
|
|
$(CP) ./files/olsrd_secure_key $(1)/etc/olsrd.d/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/secure/olsrd_secure.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-03 03:32:19 +00:00
|
|
|
define Package/olsrd-mod-txtinfo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-12-14 06:01:52 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/txtinfo/olsrd_txtinfo.so.* $(1)/usr/lib/
|
2007-08-03 03:32:19 +00:00
|
|
|
endef
|
|
|
|
|
2009-06-25 21:55:48 +00: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 07:20:08 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd))
|
2008-11-18 23:19:44 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-arprefresh))
|
2006-07-24 07:20:08 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dot-draw))
|
2007-04-28 13:08:05 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-bmf))
|
2006-07-24 07:20:08 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dyn-gw))
|
2008-10-19 23:37:13 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dyn-gw-plain))
|
2006-07-24 07:20:08 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-httpinfo))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-nameservice))
|
2009-05-07 13:41:23 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-quagga))
|
2006-07-24 07:20:08 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-secure))
|
2007-08-03 03:32:19 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-txtinfo))
|
2009-06-25 21:55:48 +00:00
|
|
|
$(eval $(call BuildPackage,olsrd-mod-watchdog))
|