diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-07 04:56:13 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-07 04:56:13 (GMT) |
commit | aeb48ca0a00c85d704294b81688f21075913f0a5 (patch) | |
tree | 8b120375c7bbdbacd024860813d3be24d2ad7931 /abs/extra-testing/ddclient/ddclient.install | |
parent | e0926c92cac73ce52146f7f7964fc95d7f9e08bc (diff) | |
download | linhes_pkgbuild-aeb48ca0a00c85d704294b81688f21075913f0a5.zip linhes_pkgbuild-aeb48ca0a00c85d704294b81688f21075913f0a5.tar.gz linhes_pkgbuild-aeb48ca0a00c85d704294b81688f21075913f0a5.tar.bz2 |
adding ddclient for dynamic dns support
Diffstat (limited to 'abs/extra-testing/ddclient/ddclient.install')
-rw-r--r-- | abs/extra-testing/ddclient/ddclient.install | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/abs/extra-testing/ddclient/ddclient.install b/abs/extra-testing/ddclient/ddclient.install new file mode 100644 index 0000000..d6edc0e --- /dev/null +++ b/abs/extra-testing/ddclient/ddclient.install @@ -0,0 +1,41 @@ +# 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 + +} + +op=$1 +shift +$op $* |