mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 07:06:36 +00:00
olsr: bump to version 0.6.8
Also: * Add hash file * Rename patch to new naming convention * Revamp/cleanup initscript * Install sample config to the correct location Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7b4fca6697
commit
901024b805
@ -1,21 +1,23 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Starts OLSRD daemon
|
|
||||||
#
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo "Starting OLSRd daemon: "
|
echo -n "Starting oslrd daemon: "
|
||||||
/usr/sbin/olsrd -d 0
|
start-stop-daemon -S -q -x /usr/sbin/olsrd -- -d 0 -pidfile /run/olsrd.pid
|
||||||
;;
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Stopping OLSRd daemon: "
|
echo -n "Stopping olsrd daemon: "
|
||||||
killall olsrd
|
start-stop-daemon -K -q -p /run/olsrd.pid
|
||||||
;;
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop}"
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
2
package/olsr/olsr.hash
Normal file
2
package/olsr/olsr.hash
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# From http://www.olsr.org/releases/0.6/SHA256SUM-0.6.8
|
||||||
|
sha256 692de2eb144f0be2e1dfc5dc5275b6c61b80af080e8f733e0b26b6a860442d27 olsrd-0.6.8.tar.bz2
|
@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
OLSR_VERSION_MAJOR = 0.6
|
OLSR_VERSION_MAJOR = 0.6
|
||||||
OLSR_VERSION = $(OLSR_VERSION_MAJOR).6.2
|
OLSR_VERSION = $(OLSR_VERSION_MAJOR).8
|
||||||
OLSR_SOURCE = olsrd-$(OLSR_VERSION).tar.bz2
|
OLSR_SOURCE = olsrd-$(OLSR_VERSION).tar.bz2
|
||||||
OLSR_SITE = http://www.olsr.org/releases/$(OLSR_VERSION_MAJOR)
|
OLSR_SITE = http://www.olsr.org/releases/$(OLSR_VERSION_MAJOR)
|
||||||
OLSR_PLUGINS = arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo jsoninfo \
|
OLSR_PLUGINS = arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo jsoninfo \
|
||||||
@ -31,12 +31,13 @@ define OLSR_INSTALL_TARGET_CMDS
|
|||||||
LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
|
LDCONFIG=/bin/true DESTDIR=$(TARGET_DIR) \
|
||||||
prefix="/usr" install ; \
|
prefix="/usr" install ; \
|
||||||
done
|
done
|
||||||
test -r $(TARGET_DIR)/etc/olsrd.conf || \
|
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq \
|
||||||
$(INSTALL) -D -m 0644 $(@D)/files/olsrd.conf.default.lq $(TARGET_DIR)/etc/olsrd.conf
|
$(TARGET_DIR)/etc/olsrd/olsrd.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define OLSR_INSTALL_INIT_SYSV
|
define OLSR_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -D -m 0755 package/olsr/S50olsr $(TARGET_DIR)/etc/init.d/S50olsr
|
$(INSTALL) -D -m 0755 package/olsr/S50olsr \
|
||||||
|
$(TARGET_DIR)/etc/init.d/S50olsr
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user