3
# Drop unchanged conffiles in deprecated location without triggering a dpkg question
4
# c.f. LP: #621923 and http://wiki.debian.org/DpkgConffileHandling
5
# BEGIN FIXME: use dpkg-maintscript-helper when my main OS supports it
11
[ -e "$CONFFILE" ] || return 0
13
local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
14
local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
15
sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
16
if [ "$md5sum" = "$old_md5sum" ]; then
23
if dpkg --compare-versions "$2" lt "1.2-1"; then
24
prep_mv_conffile pastebinit "/etc/pastebin.d/fpaste.org.conf"
25
prep_mv_conffile pastebinit "/etc/pastebin.d/paste2.org.conf"
26
prep_mv_conffile pastebinit "/etc/pastebin.d/pastebin.ca.conf"
27
prep_mv_conffile pastebinit "/etc/pastebin.d/pastebin.com.conf"
28
prep_mv_conffile pastebinit "/etc/pastebin.d/paste.debian.net.conf"
29
prep_mv_conffile pastebinit "/etc/pastebin.d/paste.ubuntu.com.conf"
30
prep_mv_conffile pastebinit "/etc/pastebin.d/pastie.org.conf"
31
prep_mv_conffile pastebinit "/etc/pastebin.d/slexy.org.conf"
32
prep_mv_conffile pastebinit "/etc/pastebin.d/stikked.com.conf"
33
prep_mv_conffile pastebinit "/etc/pastebin.d/yourpaste.net.conf"