ddclient _unstable_ port information

Package: ddclient
Version: 3.6.6
Revision: 1
Description: Automatically updates dynamic DNS services
License: GPL
Maintainer: Dave Vasilevsky
Depends: daemonic
Source: mirror:sourceforge:%n/%n-%v.tar.bz2
Source-MD5: 5fd0f82446fbed857c841a4deb83cdb9
PatchScript: sed -e 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
CompileScript: echo "No compile needed."
InstallScript: <<
mkdir -p -m 755 %i/sbin
install -m 755 ddclient %i/sbin
mkdir -p -m 755 %i/etc/ddclient
install -m 600 sample-etc_ddclient.conf %i/etc/ddclient/ddclient.conf
touch ddclient.cache
install -m 644 ddclient.cache %i/etc/ddclient
<<
DocFiles: README* COPY*
DescPackaging: <<
Moving conffiles, used system from http://lists.debian.org/debian-devel/2000/10/msg00494.html
<<

PreInstScript: <<
if dpkg --compare-versions "$2" lt "3.6.6"; then
if [ -f %p/etc/ddclient.conf -a ! -e %p/etc/ddclient/ddclient.conf ]; then
echo "Note: Moving ddclient configuration file %p/etc/ddclient.conf to %p/etc/ddclient/ddclient.conf"
mkdir -p %p/etc/ddclient
mv %p/etc/ddclient.conf %p/etc/ddclient/ddclient.conf
touch %p/etc/ddclient.conf.moved-by-preinst
fi
if [ -f %p/etc/ddclient.cache -a ! -e %p/etc/ddclient/ddclient.cache ]; then
echo "Note: Moving ddclient configuration file %p/etc/ddclient.cache to %p/etc/ddclient/ddclient.cache"
mkdir -p %p/etc/ddclient
mv %p/etc/ddclient.cache %p/etc/ddclient/ddclient.cache
touch %p/etc/ddclient.cache.moved-by-preinst
fi
fi
<<

PostInstScript: <<
rm -f %p/etc/ddclient.conf.moved-by-preinst
rm -f %p/etc/ddclient.cache.moved-by-preinst
if [ "$1" = "configure" ]; then
echo "To use ddclient, edit %p/etc/ddclient/ddclient.conf as root."
echo "Then run \`daemonic enable ddclient' to activate."
fi
<<

PostRmScript: <<
cleanup () {
if [ -e %p/etc/ddclient.conf.moved-by-preinst -a -f %p/etc/ddclient/ddclient.conf -a ! -e %p/etc/ddclient.conf ]; then
mv %p/etc/ddclient/ddclient.conf %p/etc/ddclient.conf
rm %p/etc/ddclient.conf.moved-by-preinst
fi;
if [ -e %p/etc/ddclient.cache.moved-by-preinst -a -f %p/etc/ddclient/ddclient.cache -a ! -e %p/etc/ddclient.cache ]; then
mv %p/etc/ddclient/ddclient.cache %p/etc/ddclient.cache
rm %p/etc/ddclient.cache.moved-by-preinst
fi;
}

case "$1" in
abort-install|abort-upgrade)
cleanup
exit 0
;;
esac
<<
PreRmScript: daemonic remove ddclient

ConfFiles: %p/etc/ddclient/ddclient.conf %p/etc/ddclient/ddclient.cache
DaemonicFile: <<

ddclient
ddclient dynamic DNS updater

%p/sbin/ddclient
%p/etc/ddclient/ddclient.conf


<<
DaemonicName: ddclient
Homepage: http://ddclient.sourceforge.net/