svn commit: r306782 - head/dns/pdnsd

Nick Hibma n_hibma at FreeBSD.org
Thu Nov 1 07:43:58 UTC 2012


Author: n_hibma (src committer)
Date: Thu Nov  1 07:43:58 2012
New Revision: 306782
URL: http://svn.freebsd.org/changeset/ports/306782

Log:
  /dev is not populated when using pkg_add -C to install a package into a
  chroot (NanoBSD for example). So use truncate -s... instead of dd
  if=/dev/zero... to initialise the pdns DB.
  
  PR:		pors/172268
  Submitted by:	n_hibma
  Feature safe:	yes

Modified:
  head/dns/pdnsd/pkg-install

Modified: head/dns/pdnsd/pkg-install
==============================================================================
--- head/dns/pdnsd/pkg-install	Thu Nov  1 07:38:12 2012	(r306781)
+++ head/dns/pdnsd/pkg-install	Thu Nov  1 07:43:58 2012	(r306782)
@@ -4,6 +4,6 @@ PDNSDB=/var/db/pdnsd
 mkdir -p ${PDNSDB}
 chown nobody ${PDNSDB}
 chmod 755 ${PDNSDB}
-dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
+truncate -s 4 ${PDNSDB}
 chown nobody ${PDNSDB}/pdnsd.cache
 chmod 640 ${PDNSDB}/pdnsd.cache


More information about the svn-ports-all mailing list