Commit 8ac6a2f9 authored by David Purdy's avatar David Purdy Committed by Peter Korsgaard
Browse files

inadyn: add package for inadyn DDNS client-updater



inadyn is a DynamicDNS client/updater which works with dyndns.com, noip.com
and many other DDNS providers.  It is minimal in footprint and requirements,
supports IP caching, multiple providers, multiple domain names, and
a variety of other situations.

[Peter: fixup whitespace / trailing spaces]
Signed-off-by: default avatarDave Purdy <david.c.purdy@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 7944f197
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -529,6 +529,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/ifplugd/Config.in"
endif
source "package/igh-ethercat/Config.in"
source "package/inadyn/Config.in"
source "package/iperf/Config.in"
source "package/iproute2/Config.in"
source "package/ipsec-tools/Config.in"
+8 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_INADYN
	bool "inadyn"
	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
+35 −0
Original line number Diff line number Diff line
#!/bin/sh
#
# Start & stop the inadyn client
#

CONFIG=/etc/inadyn.conf
VR_INADYN=/var/run/inadyn

# check if CONFIG exists, print message & exit if it doesn't
[ ! -f $CONFIG ] && ( echo "The config file "$CONFIG" is missing...exiting now." && exit 2 )

# check if VR_INADYN exists, create it if not
[ ! -d $VR_INADYN ] && mkdir -p $VR_INADYN

case "$1" in
        start)
                echo "Starting inadyn."
                start-stop-daemon -S -x /usr/sbin/inadyn
                ;;
        stop)
                echo  "Stopping inadyn."
                start-stop-daemon -q -K -x /usr/sbin/inadyn
                rm -f /var/run/inadyn/inadyn.pid
                ;;
        restart)
                "$0" stop
                "$0" start
                ;;
        *)
                echo $"Usage: $0 {start|stop|restart}"
                exit 1
esac

exit $?
+12 −0
Original line number Diff line number Diff line
# Basic configuration file for inadyn
#
# /etc/inadyn.conf
background
update_period_sec 600 # Check for a new IP every 600 seconds
username test		# replace 'test' with your username
password test		# replace 'test' with your password
dyndns_system dyndns@dyndns.org   # replace w/ your provider

#  uncomment the alias statement below to test it on your system
alias test.homeip.net
# replace 'test.homeip.net' with yourdomainname for actual (non-test) use
+23 −0
Original line number Diff line number Diff line
#############################################################
#
# inadyn
#
#############################################################

INADYN_VERSION = 1.98.1
INADYN_SOURCE = inadyn-$(INADYN_VERSION).tar.bz2
INADYN_SITE = https://github.com/downloads/troglobit/inadyn

define INADYN_BUILD_CMDS
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef

define INADYN_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 $(@D)/src/inadyn $(TARGET_DIR)/usr/sbin/inadyn
	$(INSTALL) -D -m 0644 package/inadyn/inadyn.conf \
		$(TARGET_DIR)/etc/inadyn.conf
	$(INSTALL) -D -m 0755 package/inadyn/S70inadyn \
		$(TARGET_DIR)/etc/init.d/S70inadyn
endef

$(eval $(call GENTARGETS))