diff options
author | Niels Horn <niels.horn@gmail.com> | 2011-09-03 09:18:14 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-04 21:56:28 -0300 |
commit | ec410d942c11c4cb2ef9b8a7c280f5b6736308ee (patch) | |
tree | e3f26414f6ef149e6c9d682f1da56d10fce1d81d /network/ddclient/ddclient.SlackBuild | |
parent | cff22125fb701c976fa17fd24a0da15b10327e3d (diff) |
network/ddclient: Updated for version 3.8.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/ddclient/ddclient.SlackBuild')
-rw-r--r-- | network/ddclient/ddclient.SlackBuild | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/network/ddclient/ddclient.SlackBuild b/network/ddclient/ddclient.SlackBuild index 0c9ec3fbfee71..1341939ec4a21 100644 --- a/network/ddclient/ddclient.SlackBuild +++ b/network/ddclient/ddclient.SlackBuild @@ -1,22 +1,36 @@ #!/bin/sh # 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 -VERSION=3.8.0 -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.8.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: -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 +ARCH=noarch # it's only a perl script CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -46,11 +60,15 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# Install startup script 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 cat sample-etc_ddclient.conf > $PKG/etc/ddclient/ddclient.conf.new +chmod 0600 $PKG/etc/ddclient/ddclient.conf.new # Add the cache dir mkdir -p $PKG/var/cache/ddclient |