svn commit: r358092 - head/release/packages

Kyle Evans kevans at FreeBSD.org
Wed Feb 19 02:35:45 UTC 2020


Author: kevans
Date: Wed Feb 19 02:35:43 2020
New Revision: 358092
URL: https://svnweb.freebsd.org/changeset/base/358092

Log:
  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.

Modified:
  head/release/packages/caroot.ucl

Modified: head/release/packages/caroot.ucl
==============================================================================
--- head/release/packages/caroot.ucl	Wed Feb 19 02:34:56 2020	(r358091)
+++ head/release/packages/caroot.ucl	Wed Feb 19 02:35:43 2020	(r358092)
@@ -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
 }


More information about the svn-src-head mailing list