mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
96
package/inadyn/S70inadyn
Normal file → Executable file
96
package/inadyn/S70inadyn
Normal file → Executable file
@@ -1,44 +1,70 @@
|
||||
#!/bin/sh
|
||||
# Customizations are sourced from /etc/default/inadyn. For example,
|
||||
# override INADYN_ARGS to adjust log level, add a startup delay, etc.
|
||||
#
|
||||
# Start & stop the inadyn client
|
||||
#
|
||||
# NOTE: to start, add a line ENABLED="yes" to /etc/default/inadyn
|
||||
|
||||
CONFIG=/etc/inadyn.conf
|
||||
DAEMON="inadyn"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
# check if CONFIG exists, print message & exit if it doesn't
|
||||
[ ! -f $CONFIG ] && ( echo "The config file "$CONFIG" is missing...exiting now." && exit 2 )
|
||||
INADYN_ARGS=""
|
||||
|
||||
# Allow a few customizations from a config file. Especially inadyn
|
||||
# must be explicitly enabled by adding ENABLED="yes" in this file.
|
||||
test -r /etc/default/inadyn && . /etc/default/inadyn
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
if [ "$ENABLED" != "yes" ]; then
|
||||
echo "SKIPPED"
|
||||
exit 0
|
||||
fi
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- $INADYN_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
rm -f "$PIDFILE"
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
reload() {
|
||||
printf 'Reloading %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -s HUP -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting inadyn: "
|
||||
if test "${ENABLED}" != "yes" ; then
|
||||
echo "SKIPPED"
|
||||
exit 0
|
||||
fi
|
||||
start-stop-daemon -b -q -S -p /var/run/inadyn.pid -x /usr/sbin/inadyn
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping inadyn: "
|
||||
if test "${ENABLED}" != "yes" ; then
|
||||
echo "SKIPPED"
|
||||
exit 0
|
||||
fi
|
||||
start-stop-daemon -q -K -p /var/run/inadyn.pid -x /usr/sbin/inadyn
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
rm -f /var/run/inadyn.pid
|
||||
;;
|
||||
restart)
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
start|stop|restart|reload)
|
||||
"$1";;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
|
||||
@@ -1,11 +1,26 @@
|
||||
# Basic configuration file for inadyn
|
||||
# Example /etc/inadyn.conf
|
||||
#
|
||||
# /etc/inadyn.conf
|
||||
iface = eth0
|
||||
# Remember to change this file to match your provider and credentials
|
||||
# Username and password can be included from another file. For more
|
||||
# info, see https://man.troglobit.com/man5/inadyn.conf.5.html
|
||||
|
||||
# Use IP address of interface instead of external checkip server.
|
||||
# Useful when you want to register internal IP addresses
|
||||
#iface = eth0
|
||||
|
||||
# IP address change check interval
|
||||
period = 300
|
||||
|
||||
provider default@dyndns.org {
|
||||
# Remove of change to match your Dyn account
|
||||
provider dyndns.org {
|
||||
username = test
|
||||
password = test
|
||||
hostname = test
|
||||
hostname = { "my.example.com", "other.example.org" }
|
||||
}
|
||||
|
||||
# Remove or change to match your FreeDNS account
|
||||
provider freedns {
|
||||
username = lower-case-username
|
||||
password = case-sensitive-pwd
|
||||
hostname = some.example.com
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# From https://github.com/troglobit/inadyn/releases/download/v2.7/inadyn-2.7.tar.xz.md5
|
||||
md5 3ab125df504a9755264a9ebeedbfa4de inadyn-2.7.tar.xz
|
||||
# Upstream .sha256 from GitHub
|
||||
sha256 7370eb7ad5d33a9cf2e7e4a6a86c09587fbf9592cd357c6f472c33f575bac26d inadyn-2.9.1.tar.gz
|
||||
|
||||
# Locally computed
|
||||
sha256 eb03bc9d9c09dfbbc651b43a2eb5a967d0454a8293576df23784710dac50c6a4 inadyn-2.7.tar.xz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
INADYN_VERSION = 2.7
|
||||
INADYN_VERSION = 2.9.1
|
||||
INADYN_SITE = https://github.com/troglobit/inadyn/releases/download/v$(INADYN_VERSION)
|
||||
INADYN_SOURCE = inadyn-$(INADYN_VERSION).tar.xz
|
||||
INADYN_LICENSE = GPL-2.0+
|
||||
INADYN_LICENSE_FILES = COPYING
|
||||
INADYN_DEPENDENCIES = host-pkgconf libconfuse
|
||||
@@ -32,7 +31,7 @@ define INADYN_INSTALL_INIT_SYSV
|
||||
endef
|
||||
|
||||
define INADYN_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/inadyn/inadyn.service \
|
||||
$(INSTALL) -D -m 644 $(@D)/inadyn.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/inadyn.service
|
||||
endef
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=DDNS client
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/inadyn
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user