summaryrefslogtreecommitdiffstats
path: root/abs/extra/ddclient/ddclient.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/ddclient/ddclient.install')
-rw-r--r--abs/extra/ddclient/ddclient.install37
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/extra/ddclient/ddclient.install b/abs/extra/ddclient/ddclient.install
new file mode 100644
index 0000000..55b0e1b
--- /dev/null
+++ b/abs/extra/ddclient/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
+
+}