You are not logged in.
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/functionsPID=`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.confdaemon=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
Is there something wrong with the package in aur?
Offline
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
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
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