caroot pkg: pass through the pkg -r rootdir as DESTDIR

If we're trying to bootstrap a different root with pkgbase, we should be
doing the right thing with caroot.
This commit is contained in:
Kyle Evans 2020-02-19 02:35:43 +00:00
parent 946966d161
commit ac92e1359b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358092

View file

@ -20,6 +20,7 @@ scripts: {
# files being added or removed, we should use it instead to gate the
# rehash.
post-install = <<EOD
[ -x /usr/sbin/certctl ] && /usr/sbin/certctl rehash
[ -x /usr/sbin/certctl ] && env DESTDIR=${PKG_ROOTDIR} \
/usr/sbin/certctl rehash
EOD
}