include $(INCLUDE_DIR)/package.mk
-define Package/olsrd
+define Package/olsrd/template
SECTION:=net
CATEGORY:=Network
TITLE:=OLSR (Optimized Link State Routing) daemon
MENU:=1
endef
+define Package/olsrd
+ $(call Package/olsrd/template)
+ MENU:=1
+endef
+
define Package/olsrd/conffiles
/etc/olsrd.conf
endef
define Package/olsrd-mod-dot-draw
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Dot topology information plugin
- MENU:=0
endef
define Package/olsrd-mod-bmf
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd +libpthread +kmod-tun
TITLE:=Basic multicast forwarding plugin
- MENU:=0
endef
define Package/olsrd-mod-dyn-gw
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd +libpthread
TITLE:=Dynamic internet gateway plugin
- MENU:=0
endef
define Package/olsrd-mod-httpinfo
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Small informative web server plugin
- MENU:=0
endef
define Package/olsrd-mod-nameservice
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Lightweight hostname resolver plugin
- MENU:=0
endef
define Package/olsrd-mod-secure
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Message signing plugin to secure routing domain
- MENU:=0
endef
define Package/olsrd-mod-txtinfo
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Small informative web server plugin
- MENU:=0
endef
define Package/olsrd-mod-secure/conffiles
endef
define Package/olsrd-mod-tas
- $(call Package/olsrd)
+ $(call Package/olsrd/template)
DEPENDS:=olsrd
TITLE:=Tiny Application Server (TAS) plugin
- MENU:=0
endef
define Build/Configure
--- /dev/null
+Index: olsrd-0.5.4/Makefile
+===================================================================
+--- olsrd-0.5.4.orig/Makefile 2007-11-03 11:33:37.075400513 +0100
++++ olsrd-0.5.4/Makefile 2007-11-03 11:33:47.171975883 +0100
+@@ -71,8 +71,6 @@
+ $(CFGOBJS):
+ $(MAKECMD) -C $(CFGDIR)
+
+-# generate it always
+-.PHONY: src/builddata.c
+ src/builddata.c:
+ @$(RM) "$@"
+ @echo "#include \"defs.h\"" >> "$@"