2006-07-24 07:20:08 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=olsrd
|
|
|
|
PKG_VERSION:=0.4.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://www.olsr.org/releases/0.4
|
|
|
|
PKG_MD5SUM:=9807d4451e65cb4ec385155eef7bf3cf
|
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/olsrd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=OLSR (Optimized Link State Routing) daemon
|
|
|
|
URL:=http://www.olsr.org/
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=1
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd/conffiles
|
|
|
|
/etc/olsrd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dot-draw
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Dot topology information plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dyn-gw
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Dynamic internet gateway plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-httpinfo
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Small informative web server plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-nameservice
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Lightweight hostname resolver plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-power
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Power status plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-secure
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Message signing plugin to secure routing domain
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-secure/conffiles
|
|
|
|
/etc/olsrd.d/olsrd_secure_key
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-tas
|
|
|
|
$(call Package/olsrd)
|
|
|
|
DEPENDS:=olsrd
|
|
|
|
TITLE:=Tiny Application Server (TAS) plugin
|
2006-08-02 18:54:56 +00:00
|
|
|
MENU:=0
|
2006-07-24 07:20:08 +00:00
|
|
|
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 \
|
|
|
|
OFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
OS="linux" \
|
|
|
|
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
2007-03-24 17:58:55 +00:00
|
|
|
LIBDIR="$(PKG_INSTALL_DIR)/usr/lib" \
|
2006-07-24 07:20:08 +00:00
|
|
|
STRIP="/bin/true" \
|
|
|
|
all libs install install_libs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-07-24 07:20:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/olsrd.conf $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-07-24 07:20:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/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
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dot-draw/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_dot_draw.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-dyn-gw/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_dyn_gw.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-httpinfo/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_nameservice.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-power/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_power.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_secure.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/olsrd-mod-tas/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/olsrd_tas.so.* $(1)/usr/lib/
|
2006-07-24 07:20:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,olsrd))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dot-draw))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-dyn-gw))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-httpinfo))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-nameservice))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-power))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-secure))
|
|
|
|
$(eval $(call BuildPackage,olsrd-mod-tas))
|