# $NetBSD: DEINSTALL,v 1.2 2005/02/18 22:12:43 jlam Exp $

case ${STAGE} in
DEINSTALL)
	#
	# Note some additional files that may be created by the sysadmin
	# that can probably be removed.
	#
	if ${TEST} -x ./+FILES; then
		for file in						\
			${PKG_SYSCONFDIR}/userdb			\
			${PKG_SYSCONFDIR}/userdb.dat			\
			${PKG_SYSCONFDIR}/userdbshadow.dat
		do
			${ECHO} "# FILE: $file . /dev/null" >> ./+FILES
		done
	fi
	;;

POST-DEINSTALL)
	#
	# Unconditionally remove authdaemon state directory as it contains
	# files and sockets that authdaemond creates every time it is
	# started.
	#
	${RM} -rf @AUTHDAEMONVAR@
	;;
esac