post_install() {
	getent group nsd &>/dev/null || groupadd -r nsd >/dev/null
	getent passwd nsd &>/dev/null || useradd -r -g nsd -d /dev/null -s /bin/false -c nsd nsd >/dev/null
	chown nsd:nsd /var/db/nsd
	chmod 700 /var/db/nsd
}

post_remove() {
	getent passwd nsd &>/dev/null && userdel nsd >/dev/null
	getent group nsd &>/dev/null && groupdel nsd >/dev/null
	true
}
