[arch-commits] Commit in ddclient/repos/community-any (9 files)

Jonathan Steel jsteel at nymeria.archlinux.org
Wed Jun 5 19:51:22 UTC 2013


    Date: Wednesday, June 5, 2013 @ 21:51:22
  Author: jsteel
Revision: 92467

archrelease: copy trunk to community-any

Added:
  ddclient/repos/community-any/PKGBUILD
    (from rev 92466, ddclient/trunk/PKGBUILD)
  ddclient/repos/community-any/ddclient.install
    (from rev 92466, ddclient/trunk/ddclient.install)
  ddclient/repos/community-any/ddclient.service
    (from rev 92466, ddclient/trunk/ddclient.service)
  ddclient/repos/community-any/iproute2.patch
    (from rev 92466, ddclient/trunk/iproute2.patch)
  ddclient/repos/community-any/usrbin.patch
    (from rev 92466, ddclient/trunk/usrbin.patch)
Deleted:
  ddclient/repos/community-any/ddclient.install
  ddclient/repos/community-any/ddclient.service
  ddclient/repos/community-any/iproute2.patch
  ddclient/repos/community-any/usrbin.patch

------------------+
 PKGBUILD         |   46 ++++++++++++++++++++++++++++++++++++++++++
 ddclient.install |   38 +++++++++++++++++-----------------
 ddclient.service |   22 ++++++++++----------
 iproute2.patch   |   58 ++++++++++++++++++++++++++---------------------------
 usrbin.patch     |   26 +++++++++++------------
 5 files changed, 118 insertions(+), 72 deletions(-)

Copied: ddclient/repos/community-any/PKGBUILD (from rev 92466, ddclient/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-06-05 19:51:22 UTC (rev 92467)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Jonathan Steel <mail at jsteel.org>
+# Contributor: Abhishek Dasgupta <abhidg at gmail.com>
+# Contributor: David Rosenstrauch <darose at darose.net>
+
+pkgname=ddclient
+pkgver=3.8.1
+pkgrel=8
+pkgdesc="Update dynamic DNS entries for accounts on many dynamic DNS services"
+arch=('any')
+url="http://ddclient.sourceforge.net"
+license=('GPL2')
+depends=('perl-io-socket-ssl' 'perl-digest-sha1')
+backup=('etc/ddclient/ddclient.conf')
+install=ddclient.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
+        ddclient.service
+        iproute2.patch
+        usrbin.patch)
+md5sums=('7fa417bc65f8f0e6ce78418a4f631988'
+         '3a31ec40ac583779fd049b1930f4af9f'
+         'e0c8a07e9b7a69e73cecd8626f16e8f0'
+         '65e294485a18b8d3f752a124913579f1')
+
+build() {
+  cd "$srcdir"/ddclient-$pkgver
+
+  patch -p1 < "$srcdir"/iproute2.patch
+  patch -Np0 -i "$srcdir"/usrbin.patch
+}
+
+package() {
+  cd "$srcdir"/ddclient-$pkgver
+
+  # core files
+  install -Dm755 ddclient "$pkgdir"/usr/bin/ddclient
+  install -Dm600 sample-etc_ddclient.conf "$pkgdir"/etc/ddclient/ddclient.conf
+  install -d "$pkgdir"/var/cache/ddclient
+
+  # additional instructions, sample configs
+  install -Dm644 README "$pkgdir"/etc/ddclient/samples/README
+  install -Dm644 sample-etc_cron.d_ddclient "$pkgdir"/etc/ddclient/samples/sample-etc_cron.d_ddclient
+  install -Dm644 sample-etc_dhcpc_dhcpcd-eth0.exe "$pkgdir"/etc/ddclient/samples/sample-etc_dhcpc_dhcpcd-eth0.exe
+  install -Dm644 sample-etc_ppp_ip-up.local "$pkgdir"/etc/ddclient/samples/sample-etc_ppp_ip-up.local
+  install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+}

Deleted: ddclient.install
===================================================================
--- ddclient.install	2013-06-05 19:34:05 UTC (rev 92466)
+++ ddclient.install	2013-06-05 19:51:22 UTC (rev 92467)
@@ -1,19 +0,0 @@
-# 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.
-
-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
-}

Copied: ddclient/repos/community-any/ddclient.install (from rev 92466, ddclient/trunk/ddclient.install)
===================================================================
--- ddclient.install	                        (rev 0)
+++ ddclient.install	2013-06-05 19:51:22 UTC (rev 92467)
@@ -0,0 +1,19 @@
+# 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.
+
+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
+}

Deleted: ddclient.service
===================================================================
--- ddclient.service	2013-06-05 19:34:05 UTC (rev 92466)
+++ ddclient.service	2013-06-05 19:51:22 UTC (rev 92467)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Dynamic DNS Update Client
-After=network.target
-
-[Service]
-Type=forking
-PIDFile=/run/ddclient.pid
-ExecStart=/usr/bin/ddclient
-
-[Install]
-WantedBy=multi-user.target

Copied: ddclient/repos/community-any/ddclient.service (from rev 92466, ddclient/trunk/ddclient.service)
===================================================================
--- ddclient.service	                        (rev 0)
+++ ddclient.service	2013-06-05 19:51:22 UTC (rev 92467)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dynamic DNS Update Client
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/ddclient.pid
+ExecStart=/usr/bin/ddclient
+
+[Install]
+WantedBy=multi-user.target

Deleted: iproute2.patch
===================================================================
--- iproute2.patch	2013-06-05 19:34:05 UTC (rev 92466)
+++ iproute2.patch	2013-06-05 19:51:22 UTC (rev 92467)
@@ -1,29 +0,0 @@
---- a/ddclient.orig	2012-02-17 13:12:29.000000000 +0000
-+++ b/ddclient	2012-02-27 13:03:02.357329432 +0000
-@@ -588,7 +588,7 @@
-     [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
-     "",			     
-     [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
--    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ],
-+    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ],
-     "",
-     [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
-     [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
-@@ -1316,7 +1316,7 @@
- 
-     {
- 	local $opt{'use'} = 'if';
--	foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) {
-+	foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) {
- 	    $if =~ s/:?\s.*//is;
- 	    local $opt{'if'} = $if;
- 	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
-@@ -1937,7 +1937,7 @@
- 
-     } elsif ($use eq 'if') {
- 	$skip  = opt('if-skip', $h)  || '';
--	$reply = `ifconfig $arg 2> /dev/null`;
-+	$reply = `ip addr show $arg 2> /dev/null`;
- 	$reply = '' if $?;
- 
-     } elsif ($use eq 'cmd') {

Copied: ddclient/repos/community-any/iproute2.patch (from rev 92466, ddclient/trunk/iproute2.patch)
===================================================================
--- iproute2.patch	                        (rev 0)
+++ iproute2.patch	2013-06-05 19:51:22 UTC (rev 92467)
@@ -0,0 +1,29 @@
+--- a/ddclient.orig	2012-02-17 13:12:29.000000000 +0000
++++ b/ddclient	2012-02-27 13:03:02.357329432 +0000
+@@ -588,7 +588,7 @@
+     [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
+     "",			     
+     [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
+-    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ],
++    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ],
+     "",
+     [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
+     [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
+@@ -1316,7 +1316,7 @@
+ 
+     {
+ 	local $opt{'use'} = 'if';
+-	foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) {
++	foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) {
+ 	    $if =~ s/:?\s.*//is;
+ 	    local $opt{'if'} = $if;
+ 	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
+@@ -1937,7 +1937,7 @@
+ 
+     } elsif ($use eq 'if') {
+ 	$skip  = opt('if-skip', $h)  || '';
+-	$reply = `ifconfig $arg 2> /dev/null`;
++	$reply = `ip addr show $arg 2> /dev/null`;
+ 	$reply = '' if $?;
+ 
+     } elsif ($use eq 'cmd') {

Deleted: usrbin.patch
===================================================================
--- usrbin.patch	2013-06-05 19:34:05 UTC (rev 92466)
+++ usrbin.patch	2013-06-05 19:51:22 UTC (rev 92467)
@@ -1,13 +0,0 @@
---- sample-etc_cron.d_ddclient.orig	2013-05-12 13:04:10.958327840 +0100
-+++ sample-etc_cron.d_ddclient	2013-05-12 13:04:38.588178156 +0100
-@@ -10,8 +10,8 @@
- ######################################################################
- ## force an update twice a month (only if you are not using daemon-mode)
- ##
--## 30 23 1,15 * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet -force
-+## 30 23 1,15 * *	root    /usr/bin/ddclient -daemon=0 -syslog -quiet -force
- ######################################################################
- ## retry failed updates every hour (only if you are not using daemon-mode)
- ##
--## 0 * * * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
-+## 0 * * * *	root    /usr/bin/ddclient -daemon=0 -syslog -quiet retry

Copied: ddclient/repos/community-any/usrbin.patch (from rev 92466, ddclient/trunk/usrbin.patch)
===================================================================
--- usrbin.patch	                        (rev 0)
+++ usrbin.patch	2013-06-05 19:51:22 UTC (rev 92467)
@@ -0,0 +1,13 @@
+--- sample-etc_cron.d_ddclient.orig	2013-05-12 13:04:10.958327840 +0100
++++ sample-etc_cron.d_ddclient	2013-05-12 13:04:38.588178156 +0100
+@@ -10,8 +10,8 @@
+ ######################################################################
+ ## force an update twice a month (only if you are not using daemon-mode)
+ ##
+-## 30 23 1,15 * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet -force
++## 30 23 1,15 * *	root    /usr/bin/ddclient -daemon=0 -syslog -quiet -force
+ ######################################################################
+ ## retry failed updates every hour (only if you are not using daemon-mode)
+ ##
+-## 0 * * * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
++## 0 * * * *	root    /usr/bin/ddclient -daemon=0 -syslog -quiet retry




More information about the arch-commits mailing list