network/ddclient: Updated for version 3.8.1.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Niels Horn 2011-09-03 09:18:14 -04:00 committed by Niels Horn
parent cff22125fb
commit ec410d942c
6 changed files with 66 additions and 48 deletions

View file

@ -1,9 +1,11 @@
DDclient is a small but full featured Perl client used to update DDclient is a small but full featured Perl client used to update dynamic
dynamic DNS entries for accounts on Dynamic DNS Network Services DNS entries for accounts on Dynamic DNS Network Services free DNS service.
free DNS service. It has the capability to update more than only It has the capability to update more than only dyndns and it can fetch your
dyndns and it can fetch your WAN-ipaddress on a few different ways. WAN-ipaddress in a few different ways.
Supported features include: operating as a daemon, manual and Supported features include: operating as a daemon, manual and automatic
automatic updates, static and dynamic updates, optimized updates for updates, static and dynamic updates, optimized updates for multiple
multiple addresses, MX, wildcards, abuse avoidance, retrying failed addresses, MX, wildcards, abuse avoidance, retrying failed updates, and
updates, and sending update status to syslog and through e-mail. sending update status to syslog and through e-mail.
This requires perl-IO-Socket-SSL to run.

View file

@ -1,22 +1,36 @@
#!/bin/sh #!/bin/sh
# Slackware build script for ddclient # Slackware build script for ddclient
# Written by Iskar Enev <iskar.enev[@]gmail.com>
# Copyright 2008-2010 Iskar Enev <iskar.enev[@]gmail.com>
# Copyright 2011 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Revision date 2011/08/14
PRGNAM=ddclient PRGNAM=ddclient
VERSION=3.8.0 VERSION=${VERSION:-3.8.1}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on: ARCH=noarch # it's only a perl script
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
@ -46,11 +60,15 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Install startup script
mkdir -p $PKG/etc/rc.d mkdir -p $PKG/etc/rc.d
cat $CWD/rc.ddclient.new > $PKG/etc/rc.d/rc.ddclient.new cat $CWD/rc.ddclient > $PKG/etc/rc.d/rc.ddclient.new
# Copy configuration and make it readable only by root (it will probably
# contain passwords). See also doinst.sh
mkdir -p $PKG/etc/ddclient mkdir -p $PKG/etc/ddclient
cat sample-etc_ddclient.conf > $PKG/etc/ddclient/ddclient.conf.new cat sample-etc_ddclient.conf > $PKG/etc/ddclient/ddclient.conf.new
chmod 0600 $PKG/etc/ddclient/ddclient.conf.new
# Add the cache dir # Add the cache dir
mkdir -p $PKG/var/cache/ddclient mkdir -p $PKG/var/cache/ddclient

View file

@ -1,8 +1,8 @@
PRGNAM="ddclient" PRGNAM="ddclient"
VERSION="3.8.0" VERSION="3.8.1"
HOMEPAGE="http://ddclient.sourceforge.net/" HOMEPAGE="http://ddclient.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/ddclient/ddclient-3.8.0.tar.bz2" DOWNLOAD="http://downloads.sourceforge.net/ddclient/ddclient-3.8.1.tar.bz2"
MD5SUM="6cac7a5eb1da781bfd4d98cef0b21f8e" MD5SUM="7fa417bc65f8f0e6ce78418a4f631988"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Niels Horn" MAINTAINER="Niels Horn"

View file

@ -12,24 +12,22 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider... # Otherwise, we leave the .new copy for the admin to consider...
} }
# Keep same perms on rc.ddclient.new: preserve_perms() {
if [ -e etc/rc.d/rc.ddclient ]; then NEW="$1"
cp -a etc/rc.d/rc.ddclient etc/rc.d/rc.ddclient.new.incoming OLD="$(dirname $NEW)/$(basename $NEW .new)"
cat etc/rc.d/rc.ddclient.new > etc/rc.d/rc.ddclient.new.incoming if [ -e $OLD ]; then
mv etc/rc.d/rc.ddclient.new.incoming etc/rc.d/rc.ddclient.new cp -a $OLD ${NEW}.incoming
fi cat $NEW > ${NEW}.incoming
config etc/rc.d/rc.ddclient.new mv ${NEW}.incoming $NEW
fi
config $NEW
}
preserve_perms etc/rc.d/rc.ddclient.new
# Keep same perms on ddclient.conf.new: # Keep same perms on ddclient.conf.new:
# Normally, we don't bother with this for config files, but this one # Normally, we don't bother with this for config files, but this one
# should usually be readable only by root, so that's how we'll install # should usually be readable only by root, so that's how we'll install
# it. However, if the admin changes it, we don't want to undo that. # it. However, if the admin changes it, we don't want to undo that.
if [ -e etc/ddclient/ddclient.conf ]; then preserve_perms etc/ddclient/ddclient.conf.new
cp -a etc/ddclient/ddclient.conf etc/ddclient/ddclient.conf.new.incoming
cat etc/ddclient/ddclient.conf.new > etc/ddclient/ddclient.conf.new.incoming
mv etc/ddclient/ddclient.conf.new.incoming etc/ddclient/ddclient.conf.new
else
chmod 0600 etc/ddclient/ddclient.conf.new
fi
config etc/ddclient/ddclient.conf.new

View file

@ -5,13 +5,13 @@
# exactly 11 lines for the formatting to be correct. It's also customary to # exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'. # leave one space after the ':'.
|-----handy-ruler----------------------------------------------------| |-----handy-ruler------------------------------------------------------|
ddclient: DDclient (Perl based DynDNS update client) ddclient: DDclient (Perl based DynDNS update client)
ddclient: ddclient:
ddclient: DDclient is a small but full featured Perl client used to update ddclient: DDclient is a small but full featured Perl client used to update
ddclient: dynamic DNS entries for accounts on Dynamic DNS Network Services ddclient: dynamic DNS entries for accounts on Dynamic DNS Network Services
ddclient: free DNS service. It has the capability to update more than only ddclient: free DNS service. It has the capability to update more than only
ddclient: dyndns and it can fetch your WAN-ipaddress on a few different ways. ddclient: dyndns and it can fetch your WAN-ipaddress in a few different ways.
ddclient: ddclient:
ddclient: Supported features include: operating as a daemon, manual and ddclient: Supported features include: operating as a daemon, manual and
ddclient: automatic updates, static and dynamic updates, optimized updates for ddclient: automatic updates, static and dynamic updates, optimized updates for