summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--ChangeLog5
-rw-r--r--PKGBUILD5
-rw-r--r--ddclient.service11
4 files changed, 23 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dc81e675b12..a4bfebde7d1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ddclient
pkgdesc = Update dynamic DNS entries for accounts on many dynamic DNS services.
pkgver = 3.8.1
- pkgrel = 3
+ pkgrel = 4
url = http://ddclient.sourceforge.net/
install = ddclient.install
arch = any
@@ -13,10 +13,12 @@ pkgbase = ddclient
source = http://downloads.sourceforge.net/sourceforge/ddclient/ddclient-3.8.1.tar.bz2
source = ddclient.rc
source = ddclient.conf.d
+ source = ddclient.service
source = iproute2.patch
md5sums = 7fa417bc65f8f0e6ce78418a4f631988
md5sums = 10af4667b7269132b8f0cdfc26864d89
md5sums = b8f39c82827776da948b76ef83544d33
+ md5sums = fde631ff027c03179e9cdd483def324d
md5sums = e0c8a07e9b7a69e73cecd8626f16e8f0
pkgname = ddclient
diff --git a/ChangeLog b/ChangeLog
index 921d429e444..8b355f5b8e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-08 Chris Brannon <chris@the-brannons.com>
+ * ddclient 3.8.1-4
+ Added the systemd unit from the soon-to-be-defunct systemd-arch-units
+ package.
+
2012-03-12 Chris Brannon <chris@the-brannons.com>
* ddclient 3.8.1-3
Applied a patch to use iproute2, rather than net-tools.
diff --git a/PKGBUILD b/PKGBUILD
index 00d2bc39362..f7cf30f6ec8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=ddclient
pkgver=3.8.1
-pkgrel=3
+pkgrel=4
pkgdesc="Update dynamic DNS entries for accounts on many dynamic DNS services."
arch=('any')
url="http://ddclient.sourceforge.net/"
@@ -15,6 +15,7 @@ install=ddclient.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
ddclient.rc
ddclient.conf.d
+ ddclient.service
iproute2.patch)
build() {
@@ -38,8 +39,10 @@ package() {
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
+ install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
md5sums=('7fa417bc65f8f0e6ce78418a4f631988'
'10af4667b7269132b8f0cdfc26864d89'
'b8f39c82827776da948b76ef83544d33'
+ 'fde631ff027c03179e9cdd483def324d'
'e0c8a07e9b7a69e73cecd8626f16e8f0')
diff --git a/ddclient.service b/ddclient.service
new file mode 100644
index 00000000000..85ab6f9c438
--- /dev/null
+++ b/ddclient.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dynamic DNS Update Client
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/ddclient.pid
+ExecStart=/usr/sbin/ddclient -daemon 300 -syslog -pid /run/ddclient.pid
+
+[Install]
+WantedBy=multi-user.target