summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/inadyn/PKGBUILD39
-rw-r--r--abs/extra/inadyn/inadyn.conf64
-rw-r--r--abs/extra/inadyn/inadyn.service11
-rw-r--r--abs/extra/inadyn/run4
4 files changed, 101 insertions, 17 deletions
diff --git a/abs/extra/inadyn/PKGBUILD b/abs/extra/inadyn/PKGBUILD
index 2cbd9c8..e674492 100644
--- a/abs/extra/inadyn/PKGBUILD
+++ b/abs/extra/inadyn/PKGBUILD
@@ -1,20 +1,33 @@
+# Maintainer: megadriver <megadriver at gmx dot com>
+# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
+# Contributor: Inxsible <inxsible at gmail dot com>
+# Contributor: Frikilinux <frikilinux at frikilinux.com.ar>
+
pkgname=inadyn
pkgver=1.96.2
-pkgrel=4
-pkgdesc="Simple dynamic DNS client"
-url="http://www.dyndns.com/support/kb/using_inadyn_with_dyndns_services.html"
-makedepends=('unzip')
+pkgrel=5
+pkgdesc="A simple dynamic DNS updater"
arch=('i686' 'x86_64')
+url="http://www.inatech.eu/inadyn/"
license=('GPL')
-source=(http://cdn.dyndns.com/$pkgname.zip run)
-
+depends=('bash')
+backup=(etc/inadyn.conf)
+source=("http://www.inatech.eu/inadyn/inadyn.v$pkgver.zip" inadyn.conf inadyn.service)
+md5sums=('702a127f13b96eee38d60c6f30b20efa'
+ 'f910c5778add779dfef4d680108513a2'
+ '85d2fbe3b45aba719fcb6f7085a3ae47')
build() {
- cd $startdir/src/$pkgname
- install -m755 -D bin/linux/$pkgname $startdir/pkg/usr/sbin/$pkgname
- install -m644 -D man/$pkgname.8 $startdir/pkg/usr/man/man8/$pkgname.8
- install -m644 -D man/$pkgname.conf.5 $startdir/pkg/usr/man/man5/$pkgname.conf.5
- install -m755 -D ../run $startdir/pkg/etc/sv/inadyn/run
+ cd "$srcdir/inadyn"
+ make
+}
+
+package() {
+ cd "$srcdir/inadyn"
+ install -Dm755 bin/linux/inadyn $pkgdir/usr/bin/inadyn
+ install -Dm644 man/inadyn.8 $pkgdir/usr/share/man/man8/inadyn.8
+ install -Dm644 man/inadyn.conf.5 $pkgdir/usr/share/man/man5/inadyn.conf.5
+ install -Dm644 readme.html $pkgdir/usr/share/doc/inadyn/readme.html
+ install -Dm644 ../inadyn.conf $pkgdir/etc/inadyn.conf
+ install -Dm644 ../inadyn.service $pkgdir/usr/lib/systemd/system/inadyn.service
}
-md5sums=('d394ed5ab7a9313992bdc62c412cb369'
- '3fee8156d8ae96125470dd0c692b0937')
diff --git a/abs/extra/inadyn/inadyn.conf b/abs/extra/inadyn/inadyn.conf
new file mode 100644
index 0000000..a63de2e
--- /dev/null
+++ b/abs/extra/inadyn/inadyn.conf
@@ -0,0 +1,64 @@
+# inadyn.conf
+# For more details see /usr/share/doc/inadyn/readme.html
+
+# example for FreeDNS service
+
+#--ip_server_name :80 checkip.dyndns.org
+#--dyndns_server_name :80
+#--dyndns_system default@freedns.afraid.org
+#--alias own.domain.com,PLohnR5QmhERfsashjyjyjkuQ3MTAzMQ== # copy and paste the hash value after the '?' until the end of line
+#--alias second-own.domain.com,LogEf5QmhERfsGGHJfjfyjkuQ3MTAzMQ==
+
+# example for no-ip.com sevice
+
+#--ip_server_name :80 checkip.dyndns.org
+#--dyndns_server_name :80
+#--dyndns_system default@no-ip.com
+#--username test
+#--password test
+#--alias HOST
+
+# example for dyndns.org
+
+#--ip_server_name :80 checkip.dyndns.org
+#--dyndns_server_name :80
+#--dyndns_system custom@dyndns.org
+#--username test
+#--password test
+#--alias HOST
+
+# Common Options
+
+# How often the IP is checked. The period is in [ms]. Default is about 1 min. Max is 10 days
+#--update_period 300000
+
+# Runs in background. Output to syslog or to log file [if specified].
+#--background
+
+# The client IP is detected by calling 'url' from this 'ip_server_name:port'. Defaults to checkip.dyndns.org:80
+#--ip_server_name[:port] url
+
+# [NAME[:port]] - the http proxy server name and port. Default is none.
+#--proxy_server
+
+# How often the IP is checked. The period is in [sec]. Default is about 1 min. Max is 10 days
+#--update_period_sec
+
+# How often the IP is updated even if it is not changed. [in sec]
+#--forced_update_period
+
+# Log file path
+#--log_file /var/log/inadyn.log
+
+# Set dbg level. 0 to 5
+#--verbose 0
+
+# Set the number of DNS updates. Default is 0, which means infinity.
+#--iterations
+
+# Explicit set output to syslog. (e.g. /var/log/messages). Works on **NIX systems only.
+#--syslog
+
+# After init changes user ID and group ID to the provided ones.
+# This allows dropping unneeded [root] privileges after startup. Works for **NIX only.
+#--change_persona uid[:gid] \ No newline at end of file
diff --git a/abs/extra/inadyn/inadyn.service b/abs/extra/inadyn/inadyn.service
new file mode 100644
index 0000000..54846bf
--- /dev/null
+++ b/abs/extra/inadyn/inadyn.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dynamic DNS updater
+After=network.target
+Documentation=man:inadyn(8)
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/inadyn
+
+[Install]
+WantedBy=multi-user.target
diff --git a/abs/extra/inadyn/run b/abs/extra/inadyn/run
deleted file mode 100644
index 7046c12..0000000
--- a/abs/extra/inadyn/run
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-exec 2>&1
-. /etc/systemconfig
-exec /usr/sbin/inadyn -u $DDnslogin -p $DDnspassword -a $DDnshostname --syslog