python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / olsr / olsr.mk
blob5a456a953e3f81b2751fc48a506f9ebfab501b5f
1 ################################################################################
3 # olsr
5 ################################################################################
7 OLSR_VERSION_MAJOR = 0.9
8 OLSR_VERSION = $(OLSR_VERSION_MAJOR).0.3
9 OLSR_SOURCE = olsrd-$(OLSR_VERSION).tar.bz2
10 OLSR_SITE = http://www.olsr.org/releases/$(OLSR_VERSION_MAJOR)
11 OLSR_PLUGINS = arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo jsoninfo \
12 mdns nameservice p2pd pgraph secure txtinfo watchdog
13 # Doesn't really need quagga but not very useful without it
14 OLSR_PLUGINS += $(if $(BR2_PACKAGE_QUAGGA),quagga)
15 OLSR_LICENSE = BSD-3c, LGPLv2.1+
16 OLSR_LICENSE_FILES = license.txt lib/pud/nmealib/LICENSE
17 OLSR_DEPENDENCIES = host-flex host-bison
19 define OLSR_BUILD_CMDS
20 $(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D) olsrd
21 for p in $(OLSR_PLUGINS) ; do \
22 $(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D)/lib/$$p ; \
23 done
24 endef
26 define OLSR_INSTALL_TARGET_CMDS
27 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
28 prefix="/usr" install_bin
29 for p in $(OLSR_PLUGINS) ; do \
30 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib/$$p \
31 LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
32 prefix="/usr" install ; \
33 done
34 $(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq \
35 $(TARGET_DIR)/etc/olsrd/olsrd.conf
36 endef
38 define OLSR_INSTALL_INIT_SYSV
39 $(INSTALL) -D -m 0755 package/olsr/S50olsr \
40 $(TARGET_DIR)/etc/init.d/S50olsr
41 endef
43 define OLSR_INSTALL_INIT_SYSTEMD
44 $(INSTALL) -D -m 644 package/olsr/olsr.service \
45 $(TARGET_DIR)/usr/lib/systemd/system/olsr.service
46 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
47 ln -sf ../../../../usr/lib/systemd/system/olsr.service \
48 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/olsr.service
49 endef
51 $(eval $(generic-package))