mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
inadyn: upgrade to 2.0
This commit is contained in:
parent
c02cca98c8
commit
6553e7316e
@ -1,2 +1,5 @@
|
|||||||
7.0.100
|
101
|
||||||
|
- Upgrade to 2.0
|
||||||
|
|
||||||
|
100
|
||||||
- Initial addon
|
- Initial addon
|
||||||
|
@ -17,32 +17,25 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="inadyn"
|
PKG_NAME="inadyn"
|
||||||
PKG_VERSION="1.99.15"
|
PKG_VERSION="2.0"
|
||||||
PKG_REV="100"
|
PKG_REV="101"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPLv2"
|
PKG_LICENSE="GPLv2"
|
||||||
PKG_SITE="http://troglobit.com/inadyn.html"
|
PKG_SITE="http://troglobit.com/inadyn.html"
|
||||||
PKG_URL="ftp://troglobit.com/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="https://github.com/troglobit/inadyn/archive/v$PKG_VERSION.tar.gz"
|
||||||
PKG_DEPENDS_TARGET="toolchain libressl"
|
PKG_DEPENDS_TARGET="toolchain libconfuse libite libressl"
|
||||||
PKG_PRIORITY="optional"
|
|
||||||
PKG_SECTION="service/system"
|
PKG_SECTION="service/system"
|
||||||
PKG_SHORTDESC="Inadyn, a small and simple DDNS client"
|
PKG_SHORTDESC="Inadyn: a small and simple Dynamic Domain Name System client"
|
||||||
PKG_LONGDESC="Inadyn is a small and simple DDNS client with HTTPS support. It is commonly available in many GNU/Linux distributions, used in off-the-shelf routers and Internet gateways to automate the task of keeping your DNS record up to date with any IP address changes from your ISP. It can also be used in installations with redundant (backup) connections to the Internet."
|
PKG_LONGDESC="Inadyn ($PKG_VERSION) is a small and simple Dynamic Domain Name System (DDNS) client with HTTPS support. It is commonly available in many GNU/Linux distributions, used in off-the-shelf routers and Internet gateways to automate the task of keeping your DNS record up to date with any IP address changes from your ISP. It can also be used in installations with redundant (backup) connections to the Internet."
|
||||||
PKG_MAINTAINER="Anton Voyl (awiouy at gmail.com)"
|
PKG_AUTORECONF="yes"
|
||||||
|
|
||||||
PKG_IS_ADDON="yes"
|
PKG_IS_ADDON="yes"
|
||||||
|
PKG_ADDON_NAME="Inadyn"
|
||||||
PKG_ADDON_TYPE="xbmc.service"
|
PKG_ADDON_TYPE="xbmc.service"
|
||||||
PKG_ADDON_PROVIDES=""
|
PKG_MAINTAINER="Anton Voyl (awiouy)"
|
||||||
PKG_ADDON_REPOVERSION="7.0"
|
PKG_ADDON_REPOVERSION="7.0"
|
||||||
|
|
||||||
PKG_AUTORECONF="yes"
|
PKG_CONFIGURE_OPTS_TARGET="--enable-openssl"
|
||||||
PKG_CONFIGURE_OPTS_TARGET="--enable-openssl" # --sysconfdir is ineffective
|
|
||||||
|
|
||||||
pre_configure_target() {
|
|
||||||
# inadyn fails to build in subdirs
|
|
||||||
cd $ROOT/$PKG_BUILD
|
|
||||||
rm -rf .$TARGET_NAME
|
|
||||||
}
|
|
||||||
|
|
||||||
makeinstall_target() {
|
makeinstall_target() {
|
||||||
:
|
:
|
||||||
@ -50,5 +43,5 @@ makeinstall_target() {
|
|||||||
|
|
||||||
addon() {
|
addon() {
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
cp $PKG_BUILD/src/inadyn $ADDON_BUILD/$PKG_ADDON_ID/bin
|
cp $PKG_BUILD/.$TARGET_NAME/src/inadyn $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
}
|
}
|
||||||
|
@ -20,24 +20,23 @@
|
|||||||
. /etc/profile
|
. /etc/profile
|
||||||
oe_setup_addon service.system.inadyn
|
oe_setup_addon service.system.inadyn
|
||||||
|
|
||||||
|
if [ "$inadyn_S" == "inadyn.conf" ]; then
|
||||||
config="$ADDON_HOME/inadyn.conf"
|
config="$ADDON_HOME/inadyn.conf"
|
||||||
|
|
||||||
options="-b"
|
|
||||||
if [ "$inadyn_S" == "inadyn.conf" ]
|
|
||||||
then
|
|
||||||
if [ -f "$config" ] && [ -s "$config" ]
|
|
||||||
then
|
|
||||||
options="$options -F $config"
|
|
||||||
else
|
else
|
||||||
exit 0
|
config="$ADDON_HOME/inadyn.temp"
|
||||||
fi
|
if [ -z "$inadyn_a" -o -z "$inadyn_p" -o -z "$inadyn_u" ]; then
|
||||||
|
rm -fr "$config"
|
||||||
else
|
else
|
||||||
options="$options -S $inadyn_S -u $inadyn_u -p $inadyn_p -a $inadyn_a"
|
echo "\
|
||||||
if [ "$inadyn_s" == "true" ]
|
provider $inadyn_S {
|
||||||
then
|
ssl = $inadyn_s
|
||||||
options="$options -s"
|
username = $inadyn_u
|
||||||
|
password = $inadyn_p
|
||||||
|
hostname = $inadyn_a
|
||||||
|
}" > "$config"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inadyn $options
|
if [ -f "$config" ]; then
|
||||||
|
inadyn -f "$config" -l info
|
||||||
|
fi
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<settings>
|
<settings>
|
||||||
<category label="30000">
|
<category label="30000">
|
||||||
<setting id="inadyn_S" label="30001" type="labelenum" values="inadyn.conf|default@dyndns.org|default@freedns.afraid.org|default@zoneedit.com|default@no-ip.com|default@easydns.com|default@tzo.com|dyndns@3322.org|default@dnsomatic.com|dyndns@he.net|default@tunnelbroker.net|default@dynsip.org|default@sitelutions.com|default@dnsexit.com|default@changeip.com|default@zerigo.com|default@dhis.org|ipv4@nsupdate.info|default@duckdns.org|default@loopia.com|default@duiadns.net" />
|
<setting id="inadyn_S" label="30001" type="select" default="inadyn.conf" values="inadyn.conf|default@changeip.com|default@ddnss.de|default@dhis.org|default@dnsexit.com|default@dnsomatic.com|default@domains.google.com|default@dtdns.com|default@duckdns.org|default@duiadns.net|default@dyndns.org|default@dynsip.org|default@dynv6.com|default@easydns.com|default@freedns.afraid.org|default@gira.de|default@ipv4.dynv6.com|default@loopia.com|default@no-ip.com|default@ovh.com|default@sitelutions.com|default@spdyn.de|default@strato.com|default@tunnelbroker.net|default@tzo.com|default@zerigo.com|default@zoneedit.com|dyndns@3322.org|dyndns@he.net|ipv4@nsupdate.info" />
|
||||||
<setting id="inadyn_u" label="30002" type="text" visible="!eq(-1,0)" />
|
<setting id="inadyn_u" label="30002" type="text" visible="!eq(-1,inadyn.conf)" />
|
||||||
<setting id="inadyn_p" label="30003" type="text" visible="!eq(-2,0)" option="hidden" />
|
<setting id="inadyn_p" label="30003" type="text" visible="!eq(-2,inadyn.conf)" option="hidden" />
|
||||||
<setting id="inadyn_a" label="30004" type="text" visible="!eq(-3,0)" />
|
<setting id="inadyn_a" label="30004" type="text" visible="!eq(-3,inadyn.conf)" />
|
||||||
<setting id="inadyn_s" label="30005" type="bool" visible="!eq(-4,0)" default="true"/>
|
<setting id="inadyn_s" label="30005" type="bool" visible="!eq(-4,inadyn.conf)" default="true"/>
|
||||||
</category>
|
</category>
|
||||||
</settings>
|
</settings>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user