Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

19
package/inadyn/Config.in Normal file
View File

@@ -0,0 +1,19 @@
config BR2_PACKAGE_INADYN
bool "inadyn"
depends on BR2_USE_MMU # Uses fork()
depends on !BR2_STATIC_LIBS # dlopen()
select BR2_PACKAGE_LIBCONFUSE
help
In-a-Dyn is Dynamic DNS (DDNS) client with HTTPS support used
to automate the task of keeping your Internet name in sync
with your public (DHCP/PPPoE) IP address. It can also be used
when you have backup connections to the Internet.
For HTTPS support you need to select one of the libraries:
OpenSSL, GnuTLS, or mbed TLS (PolarSSL).
https://github.com/troglobit/inadyn
comment "inadyn needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
depends on BR2_USE_MMU

70
package/inadyn/S70inadyn Executable file
View File

@@ -0,0 +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.
#
# NOTE: to start, add a line ENABLED="yes" to /etc/default/inadyn
DAEMON="inadyn"
PIDFILE="/var/run/$DAEMON.pid"
INADYN_ARGS=""
# 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|stop|restart|reload)
"$1";;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac

View File

@@ -0,0 +1,26 @@
# Example /etc/inadyn.conf
#
# 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
# Remove of change to match your Dyn account
provider dyndns.org {
username = test
password = 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
}

View File

@@ -0,0 +1,5 @@
# Upstream .sha256 from GitHub
sha256 411a999420d825eb79998b6db84936d0dff7baa07510cb4a9c65aa4eae0d42c0 inadyn-2.13.0.tar.gz
# Locally computed
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING

40
package/inadyn/inadyn.mk Normal file
View File

@@ -0,0 +1,40 @@
################################################################################
#
# inadyn
#
################################################################################
INADYN_VERSION = 2.13.0
INADYN_SITE = https://github.com/troglobit/inadyn/releases/download/v$(INADYN_VERSION)
INADYN_LICENSE = GPL-2.0+
INADYN_LICENSE_FILES = COPYING
INADYN_DEPENDENCIES = host-pkgconf libconfuse
ifeq ($(BR2_PACKAGE_OPENSSL),y)
INADYN_CONF_OPTS += --enable-openssl
INADYN_DEPENDENCIES += openssl
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
INADYN_DEPENDENCIES += gnutls
else ifeq ($BR2_PACKAGE_MBEDTLS, y)
INADYN_DEPENDENCIES += mbedtls
else
INADYN_CONF_OPTS += --disable-ssl
endif
define INADYN_INSTALL_SAMPLE_CONFIG
$(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
$(TARGET_DIR)/etc/inadyn.conf
endef
INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG
define INADYN_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/inadyn/S70inadyn \
$(TARGET_DIR)/etc/init.d/S70inadyn
endef
define INADYN_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/inadyn.service \
$(TARGET_DIR)/usr/lib/systemd/system/inadyn.service
endef
$(eval $(autotools-package))