You are not logged in.

#1 2007-10-11 03:29:15

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Package for ddclient (to update dyndns)

PKGBUILD

# Contributor: David Andersen <archlinux@davidandersen.ws>
# Maintainer: David Andersen <archlinux@davidandersen.ws>
pkgname=ddclient
pkgver=3.7.3
pkgrel=1
pkgdesc="Perl client used to update dynamic DNS entries"
arch=('i686' 'x86_64')
url="http://ddclient.wiki.sourceforge.net/"
license=('GPL')
depends=('perl' 'perl-io-socket-ssl')
source=(http://downloads.sourceforge.net/ddclient/ddclient-$pkgver.tar.gz
        ddclient ddclient.conf)
backup=('etc/ddclient/ddclient.conf')
md5sums=('5459ae165e74437587b6e84225a7fbf0'
         '5aea97f9aa64c2d3d86a7a81723271ee'
         '84b4785e7be379a6bd6aaa54dcf2ab2f')

build() {
        mkdir -p ${startdir}/pkg/var/cache/ddclient
        mkdir -p ${startdir}/pkg/opt/ddclient
        install -Dm444 $startdir/src/ddclient-$pkgver/* $startdir/pkg/opt/ddclient/
        install -Dm544 $startdir/src/ddclient-$pkgver/ddclient $startdir/pkg/opt/ddclient/ddclient
        install -Dm600 $startdir/src/ddclient.conf $startdir/pkg/etc/ddclient/ddclient.conf
        install -Dm755 $startdir/src/ddclient $startdir/pkg/etc/rc.d/ddclient
}

ddclient

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID -x /opt/ddclient/ddclient`
case "$1" in
  start)
    stat_busy "Starting ddclient"
    if [ -z "$PID" ]; then
       /opt/ddclient/ddclient
    fi
    if [ ! -z "$PID" -o $? -gt 0 ]; then
      stat_fail
    else
      add_daemon ddclient
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping ddclient"
    [ ! -z "$PID" ]  && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon ddclient
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac

ddclient.conf

# Basic HTTPS configuration file for ddclient
#
# /etc/ddclient.conf

daemon=5m
ssl=yes
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
login=username
password=secret
protocol=dyndns2
server=members.dyndns.org
your.domain.com

Offline

#2 2007-10-11 13:14:45

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#3 2007-10-11 15:47:29

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Re: Package for ddclient (to update dyndns)

I didn't know it existed because it didn't show up as a package.

http://www.archlinux.org/packages/search/?q=ddclient

This version has a sample config file.  Also the -daemon 300 is not needed in ddclient.rc because the value in the config file is used.

Last edited by dtandersen (2007-10-11 15:49:10)

Offline

#4 2007-10-11 16:15:55

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Package for ddclient (to update dyndns)

ddclient is in community:

$ pacman -Ss ddclient
community/ddclient 3.7.3-1
    Update dynamic DNS entries for accounts on many dynamic DNS services.

Offline

#5 2007-10-11 22:34:14

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Re: Package for ddclient (to update dyndns)

I see.  I'm new so this is the first I've heard of the AUR.  I'll check there next time and save myself some time!

Offline

Board footer

Powered by FluxBB