2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-09-19 23:27:49 +02:00
|
|
|
#
|
|
|
|
# olsr
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-09-19 23:27:49 +02:00
|
|
|
|
2013-01-29 12:20:04 +01:00
|
|
|
OLSR_VERSION_MAJOR = 0.6
|
2013-12-05 15:04:18 +01:00
|
|
|
OLSR_VERSION_MINOR = 6.1
|
2013-01-20 10:45:47 +01: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)
|
2013-01-29 12:20:04 +01:00
|
|
|
OLSR_PLUGINS = arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo jsoninfo \
|
|
|
|
mdns nameservice p2pd pgraph secure txtinfo watchdog
|
|
|
|
# Doesn't really need quagga but not very useful without it
|
|
|
|
OLSR_PLUGINS += $(if $(BR2_PACKAGE_QUAGGA),quagga)
|
|
|
|
OLSR_LICENSE = BSD-3c LGPLv2.1+
|
|
|
|
OLSR_LICENSE_FILES = license.txt lib/pud/nmealib/LICENSE
|
2013-03-25 09:43:44 +01:00
|
|
|
OLSR_DEPENDENCIES = host-flex host-bison
|
2007-09-19 23:27:49 +02:00
|
|
|
|
2009-10-27 08:52:52 +01:00
|
|
|
define OLSR_BUILD_CMDS
|
2013-01-27 06:35:12 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D) olsrd
|
|
|
|
for p in $(OLSR_PLUGINS) ; do \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D)/lib/$$p ; \
|
|
|
|
done
|
2009-10-27 08:52:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define OLSR_INSTALL_TARGET_CMDS
|
2013-01-29 12:20:04 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
|
|
prefix="/usr" install_bin
|
2013-01-27 06:35:12 +01:00
|
|
|
for p in $(OLSR_PLUGINS) ; do \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib/$$p \
|
2013-01-29 12:20:04 +01:00
|
|
|
LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
|
|
|
|
prefix="/usr" install ; \
|
2013-01-27 06:35:12 +01:00
|
|
|
done
|
|
|
|
$(INSTALL) -D -m 0755 package/olsr/S50olsr $(TARGET_DIR)/etc/init.d/S50olsr
|
2013-01-27 06:35:11 +01:00
|
|
|
test -r $(TARGET_DIR)/etc/olsrd.conf || \
|
2013-01-27 06:35:12 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq $(TARGET_DIR)/etc/olsrd.conf
|
2009-10-27 08:52:52 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|