summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbrannon2012-02-17 13:17:46 +0000
committercbrannon2012-02-17 13:17:46 +0000
commit77015db52df304fdba54b3836db62f9aa9d1078a (patch)
treeb74224989afe68e5f5608a35d0a582c262354633
downloadaur-77015db52df304fdba54b3836db62f9aa9d1078a.tar.gz
upgpkg: ddclient 3.8.1-2
Signed package. git-svn-id: file:///srv/repos/svn-community/svn@64630 9fca08f4-af9d-4005-b8df-a31f2cc04f65
-rw-r--r--.SRCINFO21
-rw-r--r--ChangeLog37
-rw-r--r--PKGBUILD35
-rw-r--r--ddclient.conf.d2
-rw-r--r--ddclient.install37
-rw-r--r--ddclient.rc41
6 files changed, 173 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fb06a13cc61
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = ddclient
+ pkgdesc = Update dynamic DNS entries for accounts on many dynamic DNS services.
+ pkgver = 3.8.1
+ pkgrel = 2
+ url = http://ddclient.sourceforge.net/
+ install = ddclient.install
+ arch = any
+ license = GPL2
+ depends = perl
+ depends = perl-io-socket-ssl
+ backup = etc/ddclient/ddclient.conf
+ backup = etc/conf.d/ddclient
+ source = http://downloads.sourceforge.net/sourceforge/ddclient/ddclient-3.8.1.tar.bz2
+ source = ddclient.rc
+ source = ddclient.conf.d
+ md5sums = 7fa417bc65f8f0e6ce78418a4f631988
+ md5sums = 10af4667b7269132b8f0cdfc26864d89
+ md5sums = b8f39c82827776da948b76ef83544d33
+
+pkgname = ddclient
+
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 00000000000..ce428a8aee5
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,37 @@
+2012-02-17 Chris Brannon <chris@the-brannons.com>
+ * ddclient 3.8.1-2
+ Signed package.
+
+2011-07-19 Chris Brannon <chris@the-brannons.com>
+ * ddclient 3.8.1-1
+ New upstream version.
+
+2011-07-05 Chris Brannon <chris@the-brannons.com>
+ * ddclient 3.8.0-3
+ Fixed handling of the PID in the rc script.
+ When run as a daemon with the default config file, ddclient writes
+ its pid to /var/run/ddclient.pid. So no need to call pidof
+ when stopping the daemon. Fixes FS#24677.
+
+2008-08-07 Abhishek Dasgupta <abhidg@gmail.com>
+
+ * ddclient 3.7.3-2
+ * added /etc/conf.d/ddclient for modifying
+ daemon poll frequency. This overrides the
+ setting specified in /etc/ddclient/ddclient.conf
+ when ddclient is called as an rc script.
+
+2007-08-08 Alessio 'mOLOk' Bolognino <themolok@gmail.com>
+
+ * ddclient-3.7.3-1
+ * version bump
+ * GPL -> GPL2
+ * shortened pkgdesc
+
+2007-07-02 tardo <tardo@nagi-fanboi.net>
+
+ * Built for x86_64
+
+2007-06-29 Georg Grabler (STiAT) <ggrabler@gmail.com>
+
+ * Version Bump to 3.7.2
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c39c05742b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
+# Contributor: David Rosenstrauch <darose@darose.net>
+
+pkgname=ddclient
+pkgver=3.8.1
+pkgrel=2
+pkgdesc="Update dynamic DNS entries for accounts on many dynamic DNS services."
+arch=('any')
+url="http://ddclient.sourceforge.net/"
+license=('GPL2')
+depends=('perl' 'perl-io-socket-ssl')
+backup=('etc/ddclient/ddclient.conf' 'etc/conf.d/ddclient')
+install=ddclient.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 ddclient.rc ddclient.conf.d)
+
+package() {
+ cd ${srcdir}/ddclient-${pkgver}
+
+ # core files
+ install -D -m755 ddclient ${pkgdir}/usr/sbin/ddclient
+ install -D -m755 ${srcdir}/ddclient.rc ${pkgdir}/etc/rc.d/ddclient
+ install -D -m600 sample-etc_ddclient.conf ${pkgdir}/etc/ddclient/ddclient.conf
+ install -D -m644 ${srcdir}/ddclient.conf.d ${pkgdir}/etc/conf.d/ddclient
+ install -d ${pkgdir}/var/cache/ddclient
+
+ # additional instructions, sample configs
+ install -D -m644 README ${pkgdir}/etc/ddclient/samples/README
+ install -D -m644 sample-etc_cron.d_ddclient ${pkgdir}/etc/ddclient/samples/sample-etc_cron.d_ddclient
+ install -D -m644 sample-etc_dhcpc_dhcpcd-eth0.exe ${pkgdir}/etc/ddclient/samples/sample-etc_dhcpc_dhcpcd-eth0.exe
+ install -D -m644 sample-etc_ppp_ip-up.local ${pkgdir}/etc/ddclient/samples/sample-etc_ppp_ip-up.local
+}
+md5sums=('7fa417bc65f8f0e6ce78418a4f631988'
+ '10af4667b7269132b8f0cdfc26864d89'
+ 'b8f39c82827776da948b76ef83544d33')
diff --git a/ddclient.conf.d b/ddclient.conf.d
new file mode 100644
index 00000000000..8b754a3c270
--- /dev/null
+++ b/ddclient.conf.d
@@ -0,0 +1,2 @@
+# Parameters passed to ddclient
+EXTRA_ARGS="-daemon 300"
diff --git a/ddclient.install b/ddclient.install
new file mode 100644
index 00000000000..55b0e1b6a8f
--- /dev/null
+++ b/ddclient.install
@@ -0,0 +1,37 @@
+# arg 1: the new package version
+post_install() {
+cat << EOM
+
+If you want to use ddclient with dhcpcd, cron or pppd,
+see /etc/ddclient/samples for further instructions.
+
+If you have ddclient in the DAEMONS array of /etc/rc.conf:
+- Change /etc/conf.d/ddclient according to your needs.
+- This setting OVERRIDES any setting in
+ /etc/ddclient/ddclient.conf
+
+EOM
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+
+if [ -f /etc/ddclient/ddclient.cache ]; then
+ echo -n "Moving ddclient.cache from /etc/ddclient/ to /var/cache/ddclient/."
+ mv /etc/ddclient/ddclient.cache /var/cache/ddclient/
+ echo " (done)"
+fi
+
+if [ "$(vercmp $2 3.7.3-2)" -lt 0 ]; then
+cat << EOM
+
+If you have ddclient in the DAEMONS array of /etc/rc.conf:
+- Change /etc/conf.d/ddclient according to your needs.
+- This setting OVERRIDES any setting in
+ /etc/ddclient/ddclient.conf
+
+EOM
+fi
+
+}
diff --git a/ddclient.rc b/ddclient.rc
new file mode 100644
index 00000000000..c9331d08395
--- /dev/null
+++ b/ddclient.rc
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+[ -f /etc/conf.d/ddclient ] && . /etc/conf.d/ddclient
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PIDFILE=/var/run/ddclient.pid
+ PID=`cat $PIDFILE 2>/dev/null`
+
+# Is ddclient running?
+
+case "$1" in
+ start)
+ stat_busy "Starting ddclient"
+ [ -z "$PID" ] && /usr/sbin/ddclient ${EXTRA_ARGS}
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon ddclient
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping ddclient"
+ [ -n "$PID" ] && kill -15 $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