summaryrefslogtreecommitdiffstats
path: root/abs/extra/ddclient/ddclient.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-12-07 01:38:55 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-12-07 01:38:55 (GMT)
commit863579ebaafe72c842dc617ce8fbb87a96188d0c (patch)
tree6a10a066dc870a04e1536004101e2b69ff699043 /abs/extra/ddclient/ddclient.install
parentf38908ca3ffe3bfca6f795e991635cb5af222662 (diff)
downloadlinhes_pkgbuild-863579ebaafe72c842dc617ce8fbb87a96188d0c.zip
linhes_pkgbuild-863579ebaafe72c842dc617ce8fbb87a96188d0c.tar.gz
linhes_pkgbuild-863579ebaafe72c842dc617ce8fbb87a96188d0c.tar.bz2
ddclient: upgrade
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
+
+}