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
|
|
|
|
2015-07-14 12:15:55 +02:00
|
|
|
OLSR_VERSION_MAJOR = 0.9
|
|
|
|
OLSR_VERSION = $(OLSR_VERSION_MAJOR).0.2
|
2013-01-20 10:45:47 +01:00
|
|
|
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)
|
2015-12-14 14:11:11 +01:00
|
|
|
OLSR_LICENSE = BSD-3c, LGPLv2.1+
|
2013-01-29 12:20:04 +01:00
|
|
|
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
|
2015-01-21 14:35:21 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq \
|
|
|
|
$(TARGET_DIR)/etc/olsrd/olsrd.conf
|
2009-10-27 08:52:52 +01:00
|
|
|
endef
|
|
|
|
|
2014-11-30 15:18:08 +01:00
|
|
|
define OLSR_INSTALL_INIT_SYSV
|
2015-01-21 14:35:21 +01:00
|
|
|
$(INSTALL) -D -m 0755 package/olsr/S50olsr \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50olsr
|
2014-11-30 15:18:08 +01:00
|
|
|
endef
|
|
|
|
|
2015-05-23 12:06:09 +02:00
|
|
|
define OLSR_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/olsr/olsr.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/olsr.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/olsr.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/olsr.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|