initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_INADYN
|
||||
bool "inadyn"
|
||||
depends on BR2_USE_MMU # Uses fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
select BR2_PACKAGE_LIBCONFUSE
|
||||
help
|
||||
INADYN is a free DynDNS client. It gives the possibility
|
||||
to have your own fixed hostname registered on the internet,
|
||||
although your IP might be changing.
|
||||
|
||||
https://github.com/troglobit/inadyn
|
||||
|
||||
comment "inadyn needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start & stop the inadyn client
|
||||
#
|
||||
|
||||
CONFIG=/etc/inadyn.conf
|
||||
|
||||
# check if CONFIG exists, print message & exit if it doesn't
|
||||
[ ! -f $CONFIG ] && ( echo "The config file "$CONFIG" is missing...exiting now." && exit 2 )
|
||||
|
||||
# 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
|
||||
|
||||
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}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,11 @@
|
||||
# Basic configuration file for inadyn
|
||||
#
|
||||
# /etc/inadyn.conf
|
||||
iface = eth0
|
||||
period = 300
|
||||
|
||||
provider default@dyndns.org {
|
||||
username = test
|
||||
password = test
|
||||
hostname = test
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://github.com/troglobit/inadyn/releases/download/v2.8.1/inadyn-2.8.1.tar.xz.sha256
|
||||
sha256 1185a9fb165bfc5f5b5f66f0dd8a695c9bd78d4b20cd162273eeea77f2d2e685 inadyn-2.8.1.tar.xz
|
||||
|
||||
# Locally computed
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
@@ -0,0 +1,39 @@
|
||||
################################################################################
|
||||
#
|
||||
# inadyn
|
||||
#
|
||||
################################################################################
|
||||
|
||||
INADYN_VERSION = 2.8.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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
INADYN_CONF_OPTS += --enable-openssl
|
||||
INADYN_DEPENDENCIES += openssl
|
||||
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
INADYN_DEPENDENCIES += gnutls
|
||||
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 package/inadyn/inadyn.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/inadyn.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,10 @@
|
||||
[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