Merge pull request #869 from awiouy/inadyn

inadyn: upgrade to 2.0
This commit is contained in:
Christian Hewitt 2016-10-23 05:42:18 +04:00 committed by GitHub
commit b32d8b4199
6 changed files with 88 additions and 36 deletions

View File

@ -0,0 +1,28 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="libconfuse"
PKG_VERSION="3.0"
PKG_LICENSE="https://github.com/martinh/libconfuse/blob/master/LICENSE"
PKG_SITE="https://github.com/martinh/libconfuse"
PKG_URL="https://github.com/martinh/libconfuse/archive/v$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Small configuration file parser library for C"
PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"

View File

@ -0,0 +1,28 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="libite"
PKG_VERSION="1.8.2"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/troglobit/libite"
PKG_URL="https://github.com/troglobit/libite/archive/v$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="That missing frog DNA you've been looking for"
PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"

View File

@ -1,2 +1,5 @@
8.0.100
101
- Upgrade to 2.0
100
- Initial addon

View File

@ -17,13 +17,13 @@
################################################################################
PKG_NAME="inadyn"
PKG_VERSION="1.99.15"
PKG_REV="100"
PKG_VERSION="2.0"
PKG_REV="101"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_SITE="http://troglobit.com/inadyn.html"
PKG_URL="ftp://troglobit.com/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain libressl"
PKG_URL="https://github.com/troglobit/inadyn/archive/v$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain libconfuse libite libressl"
PKG_SECTION="service/system"
PKG_SHORTDESC="Inadyn: a small and simple Dynamic Domain Name System client"
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."
@ -34,13 +34,7 @@ PKG_ADDON_NAME="Inadyn"
PKG_ADDON_TYPE="xbmc.service"
PKG_MAINTAINER="Anton Voyl (awiouy)"
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
}
PKG_CONFIGURE_OPTS_TARGET="--enable-openssl"
makeinstall_target() {
:
@ -48,5 +42,5 @@ makeinstall_target() {
addon() {
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
}

View File

@ -20,24 +20,23 @@
. /etc/profile
oe_setup_addon service.system.inadyn
config="$ADDON_HOME/inadyn.conf"
options="-b"
if [ "$inadyn_S" == "inadyn.conf" ]
then
if [ -f "$config" ] && [ -s "$config" ]
then
options="$options -F $config"
else
exit 0
fi
if [ "$inadyn_S" == "inadyn.conf" ]; then
config="$ADDON_HOME/inadyn.conf"
else
options="$options -S $inadyn_S -u $inadyn_u -p $inadyn_p -a $inadyn_a"
if [ "$inadyn_s" == "true" ]
then
options="$options -s"
fi
config="$ADDON_HOME/inadyn.temp"
if [ -z "$inadyn_a" -o -z "$inadyn_p" -o -z "$inadyn_u" ]; then
rm -fr "$config"
else
echo "\
provider $inadyn_S {
ssl = $inadyn_s
username = $inadyn_u
password = $inadyn_p
hostname = $inadyn_a
}" > "$config"
fi
fi
inadyn $options
if [ -f "$config" ]; then
inadyn -f "$config" -l info
fi

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<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_u" label="30002" type="text" visible="!eq(-1,0)" />
<setting id="inadyn_p" label="30003" type="text" visible="!eq(-2,0)" option="hidden" />
<setting id="inadyn_a" label="30004" type="text" visible="!eq(-3,0)" />
<setting id="inadyn_s" label="30005" type="bool" visible="!eq(-4,0)" default="true"/>
<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,inadyn.conf)" />
<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,inadyn.conf)" />
<setting id="inadyn_s" label="30005" type="bool" visible="!eq(-4,inadyn.conf)" default="true"/>
</category>
</settings>