open-plc-utils: new package
[buildroot-gz.git] / package / olsr / olsr.mk
blob7e28b1e411cd224ef80b49611e3694275f2d1a18
1 ################################################################################
3 # olsr
5 ################################################################################
7 OLSR_VERSION_MAJOR = 0.6
8 OLSR_VERSION = $(OLSR_VERSION_MAJOR).8
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 $(eval $(generic-package))