1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/dns/pdnsd/pkg-install
Nick Hibma 355422a922 /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
2012-11-01 07:43:58 +00:00

10 lines
185 B
Bash

#!/bin/sh
PDNSDB=/var/db/pdnsd
mkdir -p ${PDNSDB}
chown nobody ${PDNSDB}
chmod 755 ${PDNSDB}
truncate -s 4 ${PDNSDB}
chown nobody ${PDNSDB}/pdnsd.cache
chmod 640 ${PDNSDB}/pdnsd.cache