This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

8
package/babeld/Config.in Normal file
View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_BABELD
bool "babeld"
depends on BR2_USE_MMU # fork()
help
Babel is a loop-avoiding distance-vector routing protocol for
IPv6 and IPv4 with fast convergence properties.
http://www.pps.univ-paris-diderot.fr/~jch/software/babel/

40
package/babeld/S50babeld Normal file
View File

@@ -0,0 +1,40 @@
#!/bin/sh
#
# Starts babeld.
#
# Allow a few customizations from a config file
test -r /etc/default/babeld && . /etc/default/babeld
start() {
printf "Starting babeld: "
start-stop-daemon -S -q -p /run/babeld.pid \
--exec /usr/sbin/babeld -- $DAEMON_ARGS
[ $? = 0 ] && echo "OK" || echo "FAIL"
}
stop() {
printf "Stopping babeld: "
start-stop-daemon -K -q -p /run/babeld.pid
[ $? = 0 ] && echo "OK" || echo "FAIL"
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 98070dc418c190f047b8d69eb47987df30ded8f0fca353c49427d3137ad08b87 babeld-1.8.4.tar.gz
sha256 b415c41292cedef6c97b243609e50552887c29343566c639f23282d31efd2afd LICENCE

35
package/babeld/babeld.mk Normal file
View File

@@ -0,0 +1,35 @@
################################################################################
#
# babeld
#
################################################################################
BABELD_VERSION = 1.8.4
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))

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Babel daemon
[Service]
EnvironmentFile=-/etc/default/babeld
ExecStart=/usr/sbin/babeld $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target