From 3bdd8c25f66b78a5fb6a2ea2185e06b6d4efe578 Mon Sep 17 00:00:00 2001 From: Mikhail Kolesnik Date: Wed, 14 Nov 2007 15:11:48 +0200 Subject: [PATCH] ddclient: initial commit --- ddclient/.footprint | 10 ++++++++++ ddclient/.md5sum | 2 ++ ddclient/Pkgfile | 21 +++++++++++++++++++++ ddclient/ddclient | 26 ++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 ddclient/.footprint create mode 100644 ddclient/.md5sum create mode 100644 ddclient/Pkgfile create mode 100644 ddclient/ddclient diff --git a/ddclient/.footprint b/ddclient/.footprint new file mode 100644 index 000000000..0b9649dbd --- /dev/null +++ b/ddclient/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root etc/ +-rw------- root/root etc/ddclient.conf +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/ddclient +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/ddclient +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/cache/ +drwxr-xr-x root/root var/cache/ddclient/ diff --git a/ddclient/.md5sum b/ddclient/.md5sum new file mode 100644 index 000000000..48fbb1769 --- /dev/null +++ b/ddclient/.md5sum @@ -0,0 +1,2 @@ +7603ca8c8facb44fd85f8174add4139a ddclient +f6a55bc68cf73ffe7e80d2fa5cd44f85 ddclient-3.7.3.tar.bz2 diff --git a/ddclient/Pkgfile b/ddclient/Pkgfile new file mode 100644 index 000000000..640937a99 --- /dev/null +++ b/ddclient/Pkgfile @@ -0,0 +1,21 @@ +# Description: Utility for maintaining your dynamic DNS entries +# URL: http://ddclient.sf.net +# Maintainer: Mikhail Kolesnik, mike at openbunker dot org +# Packager: Jay Dolan, jdolan at jdolan dot dyndns dot org +# Depends on: p5-io-socket-ssl + +name=ddclient +version=3.7.3 +release=1 +source=(http://dl.sf.net/$name/$name-$version.tar.bz2 ddclient) + +build(){ + cd $name-$version + install -d $PKG/usr/sbin + install ddclient $PKG/usr/sbin/ + sed -i "s|/etc/ddclient/|/etc/|" $PKG/usr/sbin/ddclient + install -d $PKG/etc/rc.d + install -d $PKG/var/cache/ddclient + install ../ddclient $PKG/etc/rc.d/ddclient + install -m 600 sample-etc_ddclient.conf $PKG/etc/ddclient.conf +} diff --git a/ddclient/ddclient b/ddclient/ddclient new file mode 100644 index 000000000..709051e6b --- /dev/null +++ b/ddclient/ddclient @@ -0,0 +1,26 @@ +#!/bin/sh +# +# /etc/rc.d/ddclient Start or stop dynamic DNS service +# + +export COLUMNS=9999 + +case "$1" in + start) + /usr/sbin/ddclient -syslog -daemon 0 + ;; + stop) + killall -q ddclient + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: ddclient start|stop|restart" + exit 1 +esac + +exit 0 + +#End of file