
# remove any retired conffiles
#
if dpkg-maintscript-helper supports rm_conffile
then
    for conf in \
	    /etc/bash_completion.d/pcp \
	    /etc/cron.d/pcp-pmie \
	    /etc/cron.d/pcp-pmlogger \
	    /etc/cron.d/pcp-pmlogger-daily-report \
	    /etc/pcp.sh \
	    /etc/pcp/htop/columns/container \
	    /etc/pcp/htop/columns/delayacct \
	    /etc/pcp/htop/columns/fdcount \
	    /etc/pcp/htop/columns/guest \
	    /etc/pcp/htop/columns/memory \
	    /etc/pcp/htop/columns/sched \
	    /etc/pcp/htop/columns/swap \
	    /etc/pcp/htop/columns/tcp \
	    /etc/pcp/htop/columns/udp \
	    /etc/pcp/htop/columns/wchan \
	    /etc/pcp/htop/meters/entropy \
	    /etc/pcp/htop/meters/freespace \
	    /etc/pcp/htop/meters/ipc \
	    /etc/pcp/htop/meters/locks \
	    /etc/pcp/htop/meters/memcache \
	    /etc/pcp/htop/meters/mysql \
	    /etc/pcp/htop/meters/postfix \
	    /etc/pcp/htop/meters/redis \
	    /etc/pcp/htop/meters/tcp \
	    /etc/pcp/openmetrics/config.d/collectd.url \
	    /etc/pcp/openmetrics/config.d/etcd.url \
	    /etc/pcp/openmetrics/config.d/grafana.url \
	    /etc/pcp/pmlogconf/kernel/interrupts-irix \
	    /etc/pcp/pmlogconf/kernel/memory-irix \
	    /etc/pcp/pmlogconf/kernel/queues-irix \
	    /etc/pcp/pmlogconf/kernel/syscalls-irix \
	    /etc/pcp/pmlogconf/kernel/syscalls-percpu-irix \
	    /etc/pcp/pmlogconf/memory/tlb-irix \
	    /etc/pcp/pmlogconf/networking/socket-irix \
	    /etc/pcp/pmlogconf/networking/tcp-activity-irix \
	    /etc/pcp/pmlogconf/networking/udp-packets-irix \
	    /etc/pcp/pmlogconf/sgi/cpu-evctr \
	    /etc/pcp/pmlogconf/sgi/craylink \
	    /etc/pcp/pmlogconf/sgi/efs \
	    /etc/pcp/pmlogconf/sgi/hub \
	    /etc/pcp/pmlogconf/sgi/kaio \
	    /etc/pcp/pmlogconf/sgi/node-memory \
	    /etc/pcp/pmlogconf/sgi/numa \
	    /etc/pcp/pmlogconf/sgi/numa-summary \
	    /etc/pcp/pmlogconf/sgi/xbow \
	    /etc/pcp/pmlogconf/sgi/xlv-activity \
	    /etc/pcp/pmlogconf/sgi/xlv-stripe-io \
	    /etc/pcp/pmlogconf/sgi/xvm-all \
	    /etc/pcp/pmlogconf/sgi/xvm-ops \
	    /etc/pcp/pmlogconf/sgi/xvm-stats \
	    /etc/pcp/pmlogconf/v1.0/C2 \
	    /etc/pcp/pmlogconf/v1.0/C3 \
	    /etc/pcp/pmlogconf/v1.0/D3 \
	    /etc/pcp/pmlogconf/v1.0/K0 \
	    /etc/pcp/pmlogconf/v1.0/S0 \
	    /etc/pcp/pmlogconf/v1.0/S1 \
	    /etc/pcp/pmproxy/pmproxy.defaults \
	    /etc/pcp/pmrep/iostat_v12_3.conf \
	    /etc/pcp/pmrep/pmrep.conf \
	    /etc/pcp/pmrep/sar-old-kernel.conf \
	# end
    do
	# these ones are from botched packaging over a long time, so
	# there is no "prior-version" release that is going to work ...
	#
	dpkg-maintscript-helper rm_conffile $conf -- "$@"
    done

    # newer ones where the change can be tagged to a release go here
    # where <rel> is the first release when <path> was no longer
    # packaged, e.g. "3.4.4-1~" if we stopped packaging <path>
    # in PCP 3.4.4
    #
    # dpkg-maintscript-helper rm_conffile <path> <rel> -- "$@"
fi

