2007-09-19 23:27:49 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# olsr
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
OLSR_VERSION_MAJOR=0.5
|
2009-01-10 01:27:34 +01:00
|
|
|
OLSR_VERSION_MINOR=6
|
2007-09-19 23:27:49 +02:00
|
|
|
OLSR_VERSION:=$(OLSR_VERSION_MAJOR).$(OLSR_VERSION_MINOR)
|
|
|
|
OLSR_SOURCE:=olsrd-$(OLSR_VERSION).tar.bz2
|
|
|
|
OLSR_SITE:=http://www.olsr.org/releases/$(OLSR_VERSION_MAJOR)
|
|
|
|
OLSR_BINARY:=olsrd
|
2007-10-19 00:40:02 +02:00
|
|
|
OLSR_TARGET_BINARY:=usr/sbin/olsrd
|
2007-09-19 23:27:49 +02:00
|
|
|
#OLSR_PLUGINS=httpinfo tas dot_draw nameservice dyn_gw dyn_gw_plain pgraph bmf quagga secure
|
|
|
|
OLSR_PLUGINS=dot_draw dyn_gw secure
|
|
|
|
OLSR_TARGET_PLUGIN=usr/lib/
|
|
|
|
|
2009-10-27 08:52:52 +01:00
|
|
|
define OLSR_BUILD_CMDS
|
2011-02-18 14:17:34 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D) olsrd $(OLSR_PLUGINS)
|
2009-10-27 08:52:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define OLSR_INSTALL_TARGET_CMDS
|
|
|
|
cp -dpf $(@D)/$(OLSR_BINARY) $(TARGET_DIR)/$(OLSR_TARGET_BINARY)
|
|
|
|
cp -R $(@D)/lib/*/olsrd_*.so* $(TARGET_DIR)/$(OLSR_TARGET_PLUGIN)
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/init.d
|
|
|
|
cp -dpf package/olsr/S50olsr $(TARGET_DIR)/etc/init.d/
|
|
|
|
test -r $(TARGET_DIR)/etc/olsrd.conf || \
|
|
|
|
cp -dpf $(@D)/files/olsrd.conf.default.lq $(TARGET_DIR)/etc/olsrd.conf
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(OLSR_TARGET_PLUGIN)/olsrd_*.so*
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/$(OLSR_TARGET_BINARY)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define OLSR_CLEAN_CMDS
|
2007-09-19 23:27:49 +02:00
|
|
|
rm -f $(TARGET_DIR)/$(OLSR_TARGET_BINARY) \
|
|
|
|
$(TARGET_DIR)/$(OLSR_TARGET_PLUGIN)/olsrd_*.so* \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50olsr \
|
|
|
|
$(TARGET_DIR)/etc/olsrd.conf
|
2009-10-27 08:52:52 +01:00
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2007-09-19 23:27:49 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|