You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
667 B

4 years ago
#!/bin/sh -eux
# Set the time correctly
ntpdate -v -b 0.freebsd.pool.ntp.org
# Install curl and ca_root_nss
pkg install -y curl ca_root_nss;
# Emulate the ETCSYMLINK behavior of ca_root_nss; this is for FreeBSD 10,
# where fetch(1) was massively refactored and doesn't come with
# SSL CAcerts anymore
ln -sf /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem;
# As sharedfolders are not in defaults ports tree, we will use NFS sharing
cat >>/etc/rc.conf << RC_CONF
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
RC_CONF
# Disable X11 because Vagrants VMs are (usually) headless
cat >>/etc/make.conf << MAKE_CONF
WITHOUT_X11="YES"
MAKE_CONF