From f36340b39cc8e94d38ba5dbfb810fc54bde41686 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Thu, 27 May 2010 21:58:59 +0000 Subject: [PATCH] [packages] olsrd: Add mdns and p2pd plugins, cleanup Makefile git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@21587 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- Makefile | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index ca8a3b8..10ff733 100644 --- a/Makefile +++ b/Makefile @@ -72,12 +72,24 @@ define Package/olsrd-mod-httpinfo TITLE:=Small informative web server plugin endef +define Package/olsrd-mod-mdns + $(call Package/olsrd/template) + DEPENDS:=olsrd + TITLE:=Multicast DNS plugin +endef + define Package/olsrd-mod-nameservice $(call Package/olsrd/template) DEPENDS:=olsrd TITLE:=Lightweight hostname resolver plugin endef +define Package/olsrd-mod-p2pd + $(call Package/olsrd/template) + DEPENDS:=olsrd + TITLE:=Peer to Peer Discovery plugin +endef + define Package/olsrd-mod-quagga $(call Package/olsrd/template) DEPENDS:=olsrd @@ -106,25 +118,14 @@ define Package/olsrd-mod-secure/conffiles /etc/olsrd.d/olsrd_secure_key endef -define Build/Configure -endef - -define Build/Compile - $(MAKE) -C "$(PKG_BUILD_DIR)" \ - $(TARGET_CONFIGURE_OPTS) \ - NODEBUG=1 \ - CFLAGS="$(TARGET_CFLAGS)" \ - OS="linux" \ - INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ - LIBDIR="$(PKG_INSTALL_DIR)/usr/lib" \ - SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin/" \ - ETCDIR="$(PKG_INSTALL_DIR)/etc" \ - MANDIR="$(PKG_INSTALL_DIR)/usr/share/man" \ - STRIP="true" \ - INSTALL_LIB="true" \ - SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo nameservice quagga secure txtinfo watchdog" \ - all libs install install_libs -endef +MAKE_FLAGS+= \ + NO_DEBUG_MESSAGES=1 \ + OS="linux" \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + STRIP="true" \ + INSTALL_LIB="true" \ + SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo mdns nameservice p2pd quagga secure txtinfo watchdog" \ + all libs install install_libs define Package/olsrd/install $(INSTALL_DIR) $(1)/etc/config @@ -165,11 +166,21 @@ define Package/olsrd-mod-httpinfo/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/httpinfo/olsrd_httpinfo.so.* $(1)/usr/lib/ endef +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 + define Package/olsrd-mod-nameservice/install $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* $(1)/usr/lib/ endef +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 + define Package/olsrd-mod-quagga/install $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/quagga/olsrd_quagga.so.* $(1)/usr/lib/ @@ -199,7 +210,9 @@ $(eval $(call BuildPackage,olsrd-mod-bmf)) $(eval $(call BuildPackage,olsrd-mod-dyn-gw)) $(eval $(call BuildPackage,olsrd-mod-dyn-gw-plain)) $(eval $(call BuildPackage,olsrd-mod-httpinfo)) +$(eval $(call BuildPackage,olsrd-mod-mdns)) $(eval $(call BuildPackage,olsrd-mod-nameservice)) +$(eval $(call BuildPackage,olsrd-mod-p2pd)) $(eval $(call BuildPackage,olsrd-mod-quagga)) $(eval $(call BuildPackage,olsrd-mod-secure)) $(eval $(call BuildPackage,olsrd-mod-txtinfo)) -- 2.30.2