buildroot/package/babeld/babeld.mk
Peter Korsgaard b2cf7ca0e2 babeld: fix typo in variable name
As pointed out during the check-package discussion, there is a typo in a
variable name:

http://lists.busybox.net/pipermail/buildroot/2016-December/180765.html

Fixing that also shows that the license file was misspelled, so fix that as
well (LICENSE/LICENCE).

Reported-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2017-02-07 09:43:41 +01:00

36 lines
1,009 B
Makefile

################################################################################
#
# babeld
#
################################################################################
BABELD_VERSION = 1.7.1
BABELD_SITE = http://www.pps.univ-paris-diderot.fr/~jch/software/files
BABELD_LICENSE = MIT
BABELD_LICENSE_FILES = LICENCE
define BABELD_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define BABELD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/babeld $(TARGET_DIR)/usr/sbin/babeld
endef
define BABELD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 755 package/babeld/S50babeld \
$(TARGET_DIR)/etc/init.d/S50babeld
endef
define BABELD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/babeld/babeld.service \
$(TARGET_DIR)/usr/lib/systemd/system/babeld.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -fs ../../../../usr/lib/systemd/system/babeld.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/babeld.service
endef
$(eval $(generic-package))