xref: /freebsd/release/packages/certctl.ucl (revision f8e46fd61e055fcc767c2038d867f58c38e43ec3)
1*1d7ffb37SDoug Rabsonscripts: {
2*1d7ffb37SDoug Rabson	# XXX If pkg picks up a mechanism to detect in the post-install script
3*1d7ffb37SDoug Rabson	# files being added or removed, we should use it instead to gate the
4*1d7ffb37SDoug Rabson	# rehash.
5*1d7ffb37SDoug Rabson	post-install = <<EOD
6*1d7ffb37SDoug Rabson	[ -x /usr/sbin/certctl ] && env DESTDIR=${PKG_ROOTDIR} \
7*1d7ffb37SDoug Rabson	    /usr/sbin/certctl rehash
8*1d7ffb37SDoug RabsonEOD
9*1d7ffb37SDoug Rabson}
10