hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
################################################################################
#
# 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))