5 # Remove a no-longer used conffile
10 [ -e "$CONFFILE" ] || return 0
12 local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
13 local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
14 sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
15 if [ "$md5sum" != "$old_md5sum" ]; then
16 echo "CN: Obsolete conffile $CONFFILE has been modified by you."
17 echo "CN: Saving as $CONFFILE.dpkg-bak ..."
18 mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
20 echo "CN: Removing obsolete conffile $CONFFILE ..."
27 if dpkg --compare-versions "$2" le "3:0.97.2"; then
28 rm_conffile clamav-cn "/etc/cron.hourly/clamav-sanesecurity"