# Unfortunately, we can not assume, that bin:runit-helper package
# is installed at postrm stage.
#
# The only other option is embed whole runit-helper script here,
# into postrm script of -run package, but it would be like static
# linking, requiring rebuild of all reverse dependencies on every
# change of dh-runit.
if [ "${1}" = 'purge' ] && [ -z "${DPKG_ROOT:-}" ]; then
   if  [ -x /usr/lib/runit-helper/runit-helper ] ; then
      NAME='#NAME#' PKG='#PKGNAME#' /usr/lib/runit-helper/runit-helper sv_purge "$@"
   fi
fi
