From 40f1d41f7383b5435f6ce69846f605c7d4ee3e02 Mon Sep 17 00:00:00 2001 From: awiouy Date: Sat, 15 Oct 2016 21:17:01 +0200 Subject: [PATCH 1/3] libconfuse: initial package --- .../inadyn/libconfuse/package.mk | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/addons/addon-depends/inadyn/libconfuse/package.mk diff --git a/packages/addons/addon-depends/inadyn/libconfuse/package.mk b/packages/addons/addon-depends/inadyn/libconfuse/package.mk new file mode 100644 index 0000000000..cdc78ae883 --- /dev/null +++ b/packages/addons/addon-depends/inadyn/libconfuse/package.mk @@ -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 . +################################################################################ + +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" From c02cca98c893da80fd38ece3f5654b277528e4f3 Mon Sep 17 00:00:00 2001 From: awiouy Date: Sat, 15 Oct 2016 21:16:43 +0200 Subject: [PATCH 2/3] libite: initial package --- .../addon-depends/inadyn/libite/package.mk | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/addons/addon-depends/inadyn/libite/package.mk diff --git a/packages/addons/addon-depends/inadyn/libite/package.mk b/packages/addons/addon-depends/inadyn/libite/package.mk new file mode 100644 index 0000000000..6a6e20c804 --- /dev/null +++ b/packages/addons/addon-depends/inadyn/libite/package.mk @@ -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 . +################################################################################ + +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" From 6553e7316e16dd791479e43b3f73f3a01056aa19 Mon Sep 17 00:00:00 2001 From: awiouy Date: Sat, 15 Oct 2016 14:09:30 +0200 Subject: [PATCH 3/3] inadyn: upgrade to 2.0 --- packages/addons/service/inadyn/changelog.txt | 5 ++- packages/addons/service/inadyn/package.mk | 29 ++++++--------- .../service/inadyn/source/bin/inadyn-service | 35 +++++++++---------- .../inadyn/source/resources/settings.xml | 10 +++--- 4 files changed, 37 insertions(+), 42 deletions(-) diff --git a/packages/addons/service/inadyn/changelog.txt b/packages/addons/service/inadyn/changelog.txt index e21356abcc..82999aa736 100644 --- a/packages/addons/service/inadyn/changelog.txt +++ b/packages/addons/service/inadyn/changelog.txt @@ -1,2 +1,5 @@ -7.0.100 +101 +- Upgrade to 2.0 + +100 - Initial addon diff --git a/packages/addons/service/inadyn/package.mk b/packages/addons/service/inadyn/package.mk index 6b4ebbad0b..30bea03341 100644 --- a/packages/addons/service/inadyn/package.mk +++ b/packages/addons/service/inadyn/package.mk @@ -17,32 +17,25 @@ ################################################################################ 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_PRIORITY="optional" +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 DDNS 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_MAINTAINER="Anton Voyl (awiouy at gmail.com)" +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." +PKG_AUTORECONF="yes" PKG_IS_ADDON="yes" +PKG_ADDON_NAME="Inadyn" PKG_ADDON_TYPE="xbmc.service" -PKG_ADDON_PROVIDES="" +PKG_MAINTAINER="Anton Voyl (awiouy)" PKG_ADDON_REPOVERSION="7.0" -PKG_AUTORECONF="yes" -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() { : @@ -50,5 +43,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 } diff --git a/packages/addons/service/inadyn/source/bin/inadyn-service b/packages/addons/service/inadyn/source/bin/inadyn-service index 669ab29f93..75c677a236 100644 --- a/packages/addons/service/inadyn/source/bin/inadyn-service +++ b/packages/addons/service/inadyn/source/bin/inadyn-service @@ -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 diff --git a/packages/addons/service/inadyn/source/resources/settings.xml b/packages/addons/service/inadyn/source/resources/settings.xml index 8ae445241d..721a0e2f8d 100644 --- a/packages/addons/service/inadyn/source/resources/settings.xml +++ b/packages/addons/service/inadyn/source/resources/settings.xml @@ -1,10 +1,10 @@ - - - - - + + + + +