Hugo-Nginx

Overview

This is a flavour containing the hugo website builder and nginx, a webserver.

This is a minimal config with no SSL configured as this is expected to be handled by a proxy to the image.

It has been put together specifically for use by the https://potluck.honeyguide.net website, however it could be utilised for any site.

You can adjust this flavour and rebuild your own pot image if you have other requirements.

Disclaimer

It is advised to run this image behind a proxy. The directory permissions on the hugo folder are very permissive to allow a jenkins user in another pot image to do stuff. Run the hugo-nginx and jenkins pot images behind a proxy with access control.

Installation

  • Create a ZFS data set on the parent system beforehand zfs create -o mountpoint=/mnt/<sitename> zroot/jaildata_hugo
  • Create your local jail from the image or the flavour files.
  • Clone the local jail
  • Mount in the ZFS data set you created: pot mount-in -p <jailname> -d /mnt/<sitename> -m /mnt
  • Optionally copy in jenkins user SSH public key:
    pot copy-in -p <jailname> -s /path/to/jenkins/id_rsa.pub -d /root/jenkins.pub
  • Optionally copy in customfile.tgz:
    pot copy-in -p <jailname> -s /path/to/customfile.tgz -d /root/customfile.tgz
  • Optionally export the ports after creating the jail:
    pot export-ports -p <jailname> -e 80:80
  • Adjust to your environment:
    sudo pot set-env -p <jailname> -E SERVERNAME=<fqdn> \
    -E IP=<IP of potbuilder VM> -E SITENAME=<site name> \
    -E GITEMAIL=<git user email> -E GITUSER=<git username> \
    [-E CUSTOMDIR=<custom dir inside huge sitename> \
     -E CUSTOMFILE=<1|0 default> -E IMPORTKEYS=<1|0 default> \
     -E THEMEADJUST=<1|0> \
     -E REMOTELOG=<IP syslog-ng server> ]
    

SERVERNAME is the fully qualified domain name to configure nginx with.

SITENAME is the name of the hugo site and affects directory naming.

GITEMAIL is the email address to use for a git username.

GITUSER is the git username associated with the email address.

CUSTOMDIR is a custom directory to create inside the hugo installation in SITENAME.

CUSTOMFILE defaults to 0. Set to 1 and copy in your own customfile.tgz which will be extracted to /mnt/{SITENAME}/. This would be a custom config.toml, static microblog posts or about.md pages and images for static dir.

IMPORTKEYS defaults to 0. Set to 1 to add the copied in pubkey to authenticated_keys. Copy in the applicable id_rsa.pub as part of the pot setup and start process.

THEMEADJUST defaults to 0 and makes no changes to the kiss-em theme in use. If set to 1 will make changes specific to http://potluck.honeyguide.net.

REMOTELOG is an optional parameter for a remote syslog service, such as via the loki or beast-of-argh images on potluck site.

Usage

Start hugo manually (not necessary):

cd /mnt/<sitename> && hugo

To access hugo:

  • http://

The default site is blank.

customfile.tgz

If you wish to include a custom setup for hugo, you can create a file customfile.tgz with the following folder structure:

./config.toml
./static
./static/mylogo.png
./content/info.md
./content/micro/news.md
./content/micro/about.md

Make sure to copy-in to /root/customfile.tgz and set -E CUSTOMFILE=1 in the parameters.

Persistent storage

To use persistent storage make sure to mount-in a pre-configured data set to /mnt/.

Getting Started

How To Use The Ready-Made Image

FreeBSD 13.0:
pot import -p hugo-nginx-amd64-13_0 -t 0.0.18 -U https://potluck.honeyguide.net/hugo-nginx

FreeBSD 12.3:
pot import -p hugo-nginx-amd64-12_3 -t 0.0.18 -U https://potluck.honeyguide.net/hugo-nginx

If you don’t want to use the default pot bridged network configuration but instead need an individual network setup (e.g. assign a host IP address), after importing it you can simply clone the jail like that (em0 is the host network adapter in this example):
pot clone -P hugo-nginx-amd64-13_0 -p my-cloned-jail -N alias -i "em0|10.10.10.10"

Note: Some images might require specific network configuration, double check the Overview-chapter at the top.

Alternatively: Create a Jail With This Flavour Yourself

1. Create Flavour Files

Save all files and directories from https://github.com/hny-gd/potluck/tree/master/hugo-nginx to /usr/local/etc/pot/flavours/

2. Create Jail From Flavour

Run
pot create -b <FreeBSD Version> -p <jailname> -t single -N public-bridge -f fbsd-update

with your FreeBSD version (e.g. 12.1) and the name your jail should get.

Note: Some images might require specific network configuration, double check the Overview-chapter at the top.

Version History

0.0.18

  • Adding customdir to gitignore and other tweaks

0.0.17

  • Starting nginx before configuring goaccess. Setting git safedirectory

0.0.16

  • Adjusting goaccess for custom goaccess.conf file

0.0.15

  • Adding syslog-ng and remotelogs

0.0.14

  • More permissions adjustment

0.0.13

  • Permissions adjustments on mount in

0.0.12

  • Addition of CUSTOMFILE parameter to extract customfile.tgz into SITENAME directory

0.0.11

  • Rebuild for FreeBSD 12_3 and 13 & pot 13

0.0.10

  • Fixing SSH access from jenkins or other

0.0.9

  • Fixing directory permissions third time

0.0.8

  • Fixing directory permissions second time

0.0.7

  • Fixing directory perms on some hugo directories for remote user write access

0.0.6

  • More adjustment to order of steps and removal unnecessary items

0.0.5

  • Hugo site init wipes out a necessary directory creation, changing order of steps

0.0.4

  • Including sample blog and microblog post generation

0.0.3

  • Triggering another rebuild

0.0.2

  • Triggering a rebuild

0.0.1

  • First hugo-nginx pot image specific to the potluck.honeyguide.net site usage

0.0.0

  • Initiate file

These images were built on Fri Apr 29 23:27:15 UTC 2022

Manual Image Download Links

hugo-nginx-amd64-13_0_0.0.18.xz ( 424.972 MB )
hugo-nginx-amd64-13_0_0.0.18.xz.skein ( 0.250977 KB ) hugo-nginx-amd64-13_0_0.0.18.xz.meta ( 0.00195312 KB )

hugo-nginx-amd64-12_3_0.0.18.xz ( 470.845 MB )
hugo-nginx-amd64-12_3_0.0.18.xz.skein ( 0.250977 KB ) hugo-nginx-amd64-12_3_0.0.18.xz.meta ( 0.00195312 KB )

Jenkins Pot Creation Logs

hugo-nginx-amd64-13_0_0.0.18:


hugo-nginx/hugo-nginx:
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/nginx.conf -d /root/nginx.conf
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/goaccess.conf.in -d /root/goaccess.conf.in
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_default_list.html -d /root/custom_theme_default_list.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_blog_list.html -d /root/custom_theme_blog_list.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_article.html -d /root/custom_theme_partial_article.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_footer.html -d /root/custom_theme_partial_footer.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_taxonomy_tag.html -d /root/custom_theme_taxonomy_tag.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/syslog-ng.conf.in -d /root/syslog-ng.conf.in
hugo-nginx/hugo-nginx.sh:
#!/bin/sh

# Based on POTLUCK TEMPLATE v3.0
# Altered by Michael Gmelin
#
# EDIT THE FOLLOWING FOR NEW FLAVOUR:
# 1. RUNS_IN_NOMAD - true or false
# 2. If RUNS_IN_NOMAD is false, can delete the <flavour>+4 file, else
#    make sure pot create command doesn't include it
# 3. Create a matching <flavour> file with this <flavour>.sh file that
#    contains the copy-in commands for the config files from <flavour>.d/
#    Remember that the package directories don't exist yet, so likely copy
#    to /root
# 4. Adjust package installation between BEGIN & END PACKAGE SETUP
# 5. Adjust jail configuration script generation between BEGIN & END COOK
#    Configure the config files that have been copied in where necessary

# Set this to true if this jail flavour is to be created as a nomad (i.e. blocking) jail.
# You can then query it in the cook script generation below and the script is installed
# appropriately at the end of this script
RUNS_IN_NOMAD=false

# set the cook log path/filename
COOKLOG=/var/log/cook.log

# check if cooklog exists, create it if not
if [ ! -e $COOKLOG ]
then
    echo "Creating $COOKLOG" | tee -a $COOKLOG
else
    echo "WARNING $COOKLOG already exists"  | tee -a $COOKLOG
fi
date >> $COOKLOG

# -------------------- COMMON ---------------

STEPCOUNT=0
step() {
  STEPCOUNT=$(expr "$STEPCOUNT" + 1)
  STEP="$@"
  echo "Step $STEPCOUNT: $STEP" | tee -a $COOKLOG
}

exit_ok() {
  trap - EXIT
  exit 0
}

FAILED=" failed"
exit_error() {
  STEP="$@"
  FAILED=""
  exit 1
}

set -e
trap 'echo ERROR: $STEP$FAILED | (>&2 tee -a $COOKLOG)' EXIT

# -------------- BEGIN PACKAGE SETUP -------------

step "Bootstrap package repo"
mkdir -p /usr/local/etc/pkg/repos
# shellcheck disable=SC2016
test -e /usr/local/etc/pkg/repos/FreeBSD.conf || \
  echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly" }' \
    >/usr/local/etc/pkg/repos/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap

step "Touch /etc/rc.conf"
touch /etc/rc.conf

# this is important, otherwise running /etc/rc from cook will
# overwrite the IP address set in tinirc
step "Remove ifconfig_epair0b from config"
sysrc -cq ifconfig_epair0b && sysrc -x ifconfig_epair0b || true

step "Disable sendmail"
service sendmail onedisable

step "Enable SSH"
service sshd enable

step "Create /usr/local/etc/rc.d"
mkdir -p /usr/local/etc/rc.d

step "Install package sudo"
pkg install -y sudo

step "Install package curl"
pkg install -y curl

step "Install package jq"
pkg install -y jq

step "Install package jo"
pkg install -y jo

step "Install package git"
pkg install -y git

step "Install package nginx"
pkg install -y nginx

step "Install package gohugo"
pkg install -y gohugo

step "Install package goaccess"
pkg install -y goaccess

step "Install package rsync"
pkg install -y rsync

step "Install package syslog-ng"
pkg install -y syslog-ng

step "Clean package installation"
pkg autoremove -y
pkg clean -y

# -------------- END PACKAGE SETUP -------------

#
# Create configurations
#

#
# Now generate the run command script "cook"
# It configures the system on the first run by creating the config file(s)
# On subsequent runs, it only starts sleeps (if nomad-jail) or simply exits
#

# clear any old cook runtime file
step "Remove pre-existing cook script (if any)"
rm -f /usr/local/bin/cook

# this runs when image boots
# ----------------- BEGIN COOK ------------------

step "Create cook script"
echo "#!/bin/sh
RUNS_IN_NOMAD=$RUNS_IN_NOMAD
# declare this again for the pot image, might work carrying variable through like
# with above
COOKLOG=/var/log/cook.log
# No need to change this, just ensures configuration is done only once
if [ -e /usr/local/etc/pot-is-seasoned ]
then
    # If this pot flavour is blocking (i.e. it should not return),
    # we block indefinitely
    if [ \"\$RUNS_IN_NOMAD\" = \"true\" ]
    then
        /bin/sh /etc/rc
        tail -f /dev/null
    fi
    exit 0
fi

# ADJUST THIS: STOP SERVICES AS NEEDED BEFORE CONFIGURATION
# not needed, not started automatically, needs configuring

# No need to adjust this:
# If this pot flavour is not blocking, we need to read the environment first from /tmp/environment.sh
# where pot is storing it in this case
if [ -e /tmp/environment.sh ]
then
    . /tmp/environment.sh
fi

#
# ADJUST THIS BY CHECKING FOR ALL VARIABLES YOUR FLAVOUR NEEDS:
#

# Check config variables are set
#
if [ -z \${IP+x} ]; then
    echo 'IP is unset - see documentation to configure this flavour for an IP address. This parameter is mandatory.'
    exit 1
fi
if [ -z \${SERVERNAME+x} ]; then
    echo 'SERVERTYPE is unset - see documentation to configure this flavour fully qualified domain name. This parameter is mandatory.'
    exit 1
fi
if [ -z \${SITENAME+x} ]; then
    echo 'SITENAME is unset - see documentation to configure this flavour with a site name for hugo. This parameter is mandatory.'
    exit 1
fi
if [ -z \${GITEMAIL+x} ]; then
    echo 'GITEMAIL is unset - see documentation to configure this flavour with a git email address. This parameter is mandatory.'
    exit 1
fi
if [ -z \${GITUSER+x} ]; then
    echo 'GITUSER is unset - see documentation to configure this flavour with a git user name. This parameter is mandatory.'
    exit 1
fi
if [ -z \${CUSTOMDIR+x} ]; then
    echo 'CUSTOMDIR is unset - will create default tmp - see documentation to configure this flavour with a custom directory inside hugo.'
    CUSTOMDIR=tmp
fi
if [ -z \${CUSTOMFILE+x} ]; then
    echo 'CUSTOMFILE is unset - defaulting to 0 - see documentation to configure this flavour with a custom file to extract inside hugo.'
    CUSTOMFILE=0
fi
if [ -z \${IMPORTPUBKEY+x} ]; then
    echo 'IMPORTPUBKEY is unset - see documentation to configure this flavour for adding SSH keys to authorized_keys file.'
    IMPORTPUBKEY=0
fi
if [ -z \${THEMEADJUST+x} ]; then
    echo 'THEMEADJUST is unset - defaulting to 0 - see documentation to configure this flavour for custom changes to default theme.'
    THEMEADJUST=0
fi
# Remotelog is a remote syslog server, need to pass in IP
if [ -z \${REMOTELOG+x} ];
then
    echo 'REMOTELOG is unset - see documentation how to configure this flavour'
    REMOTELOG=0
fi

# ADJUST THIS BELOW: NOW ALL THE CONFIGURATION FILES NEED TO BE CREATED:
# Don't forget to double(!)-escape quotes and dollar signs in the config files

# create root ssh keys
mkdir -p /root/.ssh
/usr/bin/ssh-keygen -q -N '' -f /root/.ssh/id_rsa -t rsa
chown -R root:wheel /root/.ssh
chmod 700 /root/.ssh
chmod 600 /root/.ssh/id_rsa

# add imported key to authorized_keys
if [ \${IMPORTPUBKEY} -eq 1 ]; then
    if [ -f /root/jenkins.pub ]; then
        echo \"Adding imported /root/jenkins.pub to /root/.ssh/authorized_keys\"
        cat /root/jenkins.pub >> /root/.ssh/authorized_keys
        chown -R root:wheel /root/.ssh
    else
        echo \"Error: no /root/jenkins.pub file found\"
    fi
fi

# setup ssh server with remote root access with a key

echo \"Setting up ssh server\"
echo \"Port 22
PermitRootLogin prohibit-password
PubkeyAuthentication yes
AuthorizedKeysFile       .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
StrictModes no
UseDNS no
Banner none
LogLevel DEBUG
AllowAgentForwarding yes
PermitTTY yes\" >> /etc/ssh/sshd_config

echo \"Manually setting up host keys\"
cd /etc/ssh
/usr/bin/ssh-keygen -A
cd ~

# restart ssh
echo \"Restarting ssh\"
service sshd restart

# configure nginx
# change variables in temp file and copy to /usr/local/nginx/nginx.conf

if [ -f /root/nginx.conf ]; then
    sed < /root/nginx.conf \
    -e \"s|%%IP%%|\${IP}|g\" \
    -e \"s|%%SERVERNAME%%|\${SERVERNAME}|g\" \
    -e \"s|%%SITENAME%%|\${SITENAME}|g\" > /usr/local/etc/nginx/nginx.conf
else
    echo \"Error: no /root/nginx.conf file to modify. This error should not happen in prebuilt pot image.\"
fi

# enable nginx
service nginx enable

## remote syslogs
if [ \"\${REMOTELOG}\" != \"0\" ]; then
    config_version=\$(/usr/local/sbin/syslog-ng --version | grep '^Config version:' | awk -F: '{ print \$2 }' | xargs)

    # read in template conf file, update remote log IP address, and
    # write to correct destination
    < /root/syslog-ng.conf.in \
      sed \"s|%%config_version%%|\$config_version|g\" | \
      sed \"s|%%remotelogip%%|\$REMOTELOG|g\" > /usr/local/etc/syslog-ng.conf

    # stop and disable syslogd
    service syslogd onestop || true
    service syslogd disable

    # enable and start syslog-ng
    service syslog-ng enable
    sysrc syslog_ng_flags=\"-R /tmp/syslog-ng.persist\"
    service syslog-ng start
fi

# setup hugo
cd /mnt
/usr/local/bin/hugo new site \${SITENAME}

# this has to happen after the force create of site as was wiping this
# make some directories from input variables
mkdir -p /mnt/\${SITENAME}/\${CUSTOMDIR}/

# setup .gitignore, overwrite any existing
echo \"\${CUSTOMDIR}/**\" > /mnt/\${SITENAME}/.gitignore

# adding this to extract a custom archive over the hugo files in SITENAME directory
if [ \${CUSTOMFILE} -eq 1 ]; then
    if [ -f /root/customfile.tgz ]; then
        /usr/bin/tar -xzf /root/customfile.tgz --directory /mnt/\${SITENAME}
    fi
fi

# set permissions so jenkins user can write files from jenkins image
chmod 777 /mnt/\${SITENAME}
chmod g+s /mnt/\${SITENAME}
chmod 777 /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod g+s /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod 777 /mnt/\${SITENAME}/content
chmod g+s /mnt/\${SITENAME}/content
chmod 777 /mnt/\${SITENAME}/content/blog
chmod g+s /mnt/\${SITENAME}/content/blog
chmod 777 /mnt/\${SITENAME}/content/micro
chmod g+s /mnt/\${SITENAME}/content/micro
chmod 777 /mnt/\${SITENAME}/static
chmod g+s /mnt/\${SITENAME}/static

# link in /usr/local/www/SITENAME to /root/SITENAME
ln -s /mnt/\${SITENAME}/public /usr/local/www/\${SITENAME}
chown -R www:www /mnt/\${SITENAME}

# setup git
cd /mnt/\${SITENAME}
/usr/local/bin/git init
/usr/local/bin/git config user.email \${GITEMAIL}
/usr/local/bin/git config user.name \${GITUSER}
/usr/local/bin/git config --global --add safe.directory /mnt/\${SITENAME}
/usr/local/bin/git submodule add https://github.com/pavel-pi/kiss-em.git themes/kiss-em
/usr/local/bin/git add -v *

# copy across site icons and css
cp -r /mnt/\${SITENAME}/themes/kiss-em/static/* /mnt/\${SITENAME}/static/

# implement custom theme changes for kiss-em
if [ \${THEMEADJUST} -eq 1 ]; then

    if [ -f /root/custom_theme_default_list.html ]; then
        cp -f /root/custom_theme_default_list.html /mnt/\${SITENAME}/themes/kiss-em/layouts/_default/list.html
    else
        echo \"Cannot find /root/custom_theme_default_list.html\"
    fi

    if [ -f /root/custom_theme_blog_list.html ]; then
        cp -f /root/custom_theme_blog_list.html /mnt/\${SITENAME}/themes/kiss-em/layouts/blog/list.html
    else
        echo \"Cannot find /root/custom_theme_blog_list.html\"
    fi

    if [ -f /root/custom_theme_partial_article.html ]; then
        cp -f /root/custom_theme_partial_article.html /mnt/\${SITENAME}/themes/kiss-em/layouts/partials/article.html
    else
        echo \"Cannot find /root/custom_theme_partial_article.html\"
    fi

    if [ -f /root/custom_theme_partial_footer.html ]; then
        cp -f /root/custom_theme_partial_footer.html /mnt/\${SITENAME}/themes/kiss-em/layouts/partials/footer.html
    else
        echo \"Cannot find /root/custom_theme_partial_footer.html\"
    fi

    if [ -f /root/custom_theme_taxonomy_tag.html ]; then
        cp -f /root/custom_theme_taxonomy_tag.html /mnt/\${SITENAME}/themes/kiss-em/layouts/taxonomy/tag.html
    else
        echo \"Cannot find /root/custom_theme_taxonomy_tag.html\"
    fi

fi

# final perms check
chown -R www:www /mnt/\${SITENAME}

# add changed files
cd /mnt/\${SITENAME}
/usr/local/bin/git add -v *

# commit and push
#/usr/local/bin/git commit -m \"Changed templates via cook script\"

# start hugo
# test server
# hugo server -b http://\${IP}:1313 --bind \${IP} -D
chown -R www:www /mnt/\${SITENAME}
cd /mnt/\${SITENAME}
/usr/local/bin/hugo

# create sample pages
# we need this to create the blog and microblog directories
/usr/local/bin/hugo new blog/sample-blog-post.md
/usr/local/bin/hugo new micro/sample-microblog-post.md

# check ownership again
chown -R www:www /mnt/\${SITENAME}

# set permissions again so remote user can write files from other image
# there might be another way to do this with more security
chmod 777 /mnt/\${SITENAME}
chmod 777 /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod 777 /mnt/\${SITENAME}/content
chmod 777 /mnt/\${SITENAME}/content/blog
chmod 666 /mnt/\${SITENAME}/content/blog/*.md
chmod 777 /mnt/\${SITENAME}/content/micro
chmod 777 /mnt/\${SITENAME}/static

# return to /root
cd /root

# start services
service nginx start

# goaccess
# this seems to be needed as install places in /usr/local/etc/goaccess.conf
# but default for goaccess is /usr/local/etc/goaccess/goaccess.conf
# using custom goaccess.conf with nginx accesslog hardcoded in
if [ -f /root/goaccess.conf.in ]; then
    cp -f /root/goaccess.conf.in /usr/local/etc/goaccess/goaccess.conf
    mv /usr/local/etc/goaccess.conf /usr/local/etc/goaccess.conf.ignore
fi
sysrc goaccess_config=\"/usr/local/etc/goaccess/goaccess.conf\"
sysrc goaccess_log=\"/var/log/nginx/access.log\"
service goaccess enable
service goaccess start || true
#
# ADJUST THIS: START THE SERVICES AGAIN AFTER CONFIGURATION

#
# Do not touch this:
touch /usr/local/etc/pot-is-seasoned

# If this pot flavour is blocking (i.e. it should not return), there is no /tmp/environment.sh
# created by pot and we now after configuration block indefinitely
if [ \"\$RUNS_IN_NOMAD\" = \"true\" ]
then
    /bin/sh /etc/rc
    tail -f /dev/null
fi
" > /usr/local/bin/cook

# ----------------- END COOK ------------------


# ---------- NO NEED TO EDIT BELOW ------------

step "Make cook script executable"
if [ -e /usr/local/bin/cook ]
then
    echo "setting executable bit on /usr/local/bin/cook" | tee -a $COOKLOG
    chmod u+x /usr/local/bin/cook
else
    exit_error "there is no /usr/local/bin/cook to make executable"
fi

#
# There are two ways of running a pot jail: "Normal", non-blocking mode and
# "Nomad", i.e. blocking mode (the pot start command does not return until
# the jail is stopped).
# For the normal mode, we create a /usr/local/etc/rc.d script that starts
# the "cook" script generated above each time, for the "Nomad" mode, the cook
# script is started by pot (configuration through flavour file), therefore
# we do not need to do anything here.
#

# Create rc.d script for "normal" mode:
step "Create rc.d script to start cook"
echo "creating rc.d script to start cook" | tee -a $COOKLOG

echo "#!/bin/sh
#
# PROVIDE: cook
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name=\"cook\"
rcvar=\"cook_enable\"
load_rc_config \$name
: \${cook_enable:=\"NO\"}
: \${cook_env:=\"\"}
command=\"/usr/local/bin/cook\"
command_args=\"\"
run_rc_command \"\$1\"
" > /usr/local/etc/rc.d/cook

step "Make rc.d script to start cook executable"
if [ -e /usr/local/etc/rc.d/cook ]
then
  echo "Setting executable bit on cook rc file" | tee -a $COOKLOG
  chmod u+x /usr/local/etc/rc.d/cook
else
  exit_error "/usr/local/etc/rc.d/cook does not exist"
fi

if [ "$RUNS_IN_NOMAD" != "true" ]
then
  step "Enable cook service"
  # This is a non-nomad (non-blocking) jail, so we need to make sure the script
  # gets started when the jail is started:
  # Otherwise, /usr/local/bin/cook will be set as start script by the pot flavour
  echo "enabling cook" | tee -a $COOKLOG
  service cook enable
fi

# -------------------- DONE ---------------
exit_ok

hugo-nginx/hugo-nginx+1:
hugo-nginx/hugo-nginx+1.sh:

hugo-nginx/hugo-nginx+2:
hugo-nginx/hugo-nginx+2.sh:

hugo-nginx/hugo-nginx+3:
hugo-nginx/hugo-nginx+3.sh:

hugo-nginx/hugo-nginx+4:
hugo-nginx/hugo-nginx+4.sh:
Password:===>  Creating a new pot
===>  pot name     : hugo-nginx-amd64-13_0
===>  type         : single
===>  base         : 13.0
===>  pot_base     : 
===>  level        : 0
===>  network-type : public-bridge
===>  network-stack: ipv4
===>  ip           : 10.192.0.5
===>  bridge       : 
===>  dns          : inherit
===>  flavours     : fbsd-update hugo-nginx hugo-nginx+1 hugo-nginx+2 hugo-nginx+3 hugo-nginx+4
===>  Fetching FreeBSD 13.0
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting hugo-nginx-amd64-13_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot hugo-nginx-amd64-13_0
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:01:22:83:10:0b
	inet 10.192.0.5 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Fri Apr 29 23:11:00 UTC 2022
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on hugo-nginx-amd64-13_0
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 13.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 194 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190.. done.
Applying patches... done.
Fetching 15 files... ....10.. done.
The following files will be removed as part of updating to
13.0-RELEASE-p11:
/etc/ssl/certs/080911ac.0
/etc/ssl/certs/0b7c536a.0
/etc/ssl/certs/0c4c9b6c.0
/etc/ssl/certs/116bf586.0
/etc/ssl/certs/1320b215.0
/etc/ssl/certs/26312675.0
/etc/ssl/certs/349f2832.0
/etc/ssl/certs/442adcac.0
/etc/ssl/certs/5a4d6896.0
/etc/ssl/certs/9c2e7d30.0
/etc/ssl/certs/a8dee976.0
/etc/ssl/certs/b1b8a7f3.0
/etc/ssl/certs/c01cdfa2.0
/etc/ssl/certs/c47d9980.0
/etc/ssl/certs/cb59f961.0
/etc/ssl/certs/d853d49e.0
/etc/ssl/certs/dc45b0bd.0
/etc/ssl/certs/ee1365c0.0
/etc/ssl/certs/f90208f7.0
/usr/share/certs/trusted/Camerfirma_Chambers_of_Commerce_Root.pem
/usr/share/certs/trusted/Camerfirma_Global_Chambersign_Root.pem
/usr/share/certs/trusted/Certum_Root_CA.pem
/usr/share/certs/trusted/Chambers_of_Commerce_Root_-_2008.pem
/usr/share/certs/trusted/D-TRUST_Root_CA_3_2013.pem
/usr/share/certs/trusted/EC-ACC.pem
/usr/share/certs/trusted/GeoTrust_Primary_Certification_Authority_-_G2.pem
/usr/share/certs/trusted/Global_Chambersign_Root_-_2008.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GA_CA.pem
/usr/share/certs/trusted/QuoVadis_Root_CA.pem
/usr/share/certs/trusted/Sonera_Class_2_Root_CA.pem
/usr/share/certs/trusted/Staat_der_Nederlanden_Root_CA_-_G3.pem
/usr/share/certs/trusted/SwissSign_Platinum_CA_-_G2.pem
/usr/share/certs/trusted/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/trusted/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/trusted/Trustis_FPS_Root_CA.pem
/usr/share/certs/trusted/VeriSign_Universal_Root_Certification_Authority.pem
/usr/share/certs/trusted/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/trusted/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
The following files will be added as part of updating to
13.0-RELEASE-p11:
/etc/ssl/blacklisted/080911ac.0
/etc/ssl/blacklisted/0b7c536a.0
/etc/ssl/blacklisted/0c4c9b6c.0
/etc/ssl/blacklisted/116bf586.0
/etc/ssl/blacklisted/1320b215.0
/etc/ssl/blacklisted/26312675.0
/etc/ssl/blacklisted/349f2832.0
/etc/ssl/blacklisted/442adcac.0
/etc/ssl/blacklisted/5a4d6896.0
/etc/ssl/blacklisted/9c2e7d30.0
/etc/ssl/blacklisted/a8dee976.0
/etc/ssl/blacklisted/b1b8a7f3.0
/etc/ssl/blacklisted/c01cdfa2.0
/etc/ssl/blacklisted/c47d9980.0
/etc/ssl/blacklisted/cb59f961.0
/etc/ssl/blacklisted/d853d49e.0
/etc/ssl/blacklisted/dc45b0bd.0
/etc/ssl/blacklisted/ee1365c0.0
/etc/ssl/blacklisted/f90208f7.0
/etc/ssl/certs/002c0b4f.0
/etc/ssl/certs/9482e63a.0
/etc/ssl/certs/b433981b.0
/etc/ssl/certs/b81b93f0.0
/etc/ssl/certs/e35234b1.0
/etc/ssl/certs/fa5da96b.0
/etc/ssl/certs/feffd413.0
/usr/include/c++/v1/barrier
/usr/include/c++/v1/concepts
/usr/include/c++/v1/execution
/usr/include/c++/v1/latch
/usr/include/c++/v1/numbers
/usr/include/c++/v1/semaphore
/usr/include/c++/v1/tr1/barrier
/usr/include/c++/v1/tr1/concepts
/usr/include/c++/v1/tr1/execution
/usr/include/c++/v1/tr1/latch
/usr/include/c++/v1/tr1/numbers
/usr/include/c++/v1/tr1/semaphore
/usr/share/certs/blacklisted/Camerfirma_Chambers_of_Commerce_Root.pem
/usr/share/certs/blacklisted/Camerfirma_Global_Chambersign_Root.pem
/usr/share/certs/blacklisted/Certum_Root_CA.pem
/usr/share/certs/blacklisted/Chambers_of_Commerce_Root_-_2008.pem
/usr/share/certs/blacklisted/D-TRUST_Root_CA_3_2013.pem
/usr/share/certs/blacklisted/EC-ACC.pem
/usr/share/certs/blacklisted/GeoTrust_Primary_Certification_Authority_-_G2.pem
/usr/share/certs/blacklisted/Global_Chambersign_Root_-_2008.pem
/usr/share/certs/blacklisted/OISTE_WISeKey_Global_Root_GA_CA.pem
/usr/share/certs/blacklisted/QuoVadis_Root_CA.pem
/usr/share/certs/blacklisted/Sonera_Class_2_Root_CA.pem
/usr/share/certs/blacklisted/Staat_der_Nederlanden_Root_CA_-_G3.pem
/usr/share/certs/blacklisted/SwissSign_Platinum_CA_-_G2.pem
/usr/share/certs/blacklisted/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/blacklisted/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/blacklisted/Trustis_FPS_Root_CA.pem
/usr/share/certs/blacklisted/VeriSign_Universal_Root_Certification_Authority.pem
/usr/share/certs/blacklisted/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/blacklisted/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/trusted/AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
/usr/share/certs/trusted/ANF_Secure_Server_Root_CA.pem
/usr/share/certs/trusted/Certum_EC-384_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Root_CA.pem
/usr/share/certs/trusted/GLOBALTRUST_2020.pem
/usr/share/certs/trusted/GlobalSign_Root_E46.pem
/usr/share/certs/trusted/GlobalSign_Root_R46.pem
/usr/share/zoneinfo/Pacific/Kanton
The following files will be updated as part of updating to
13.0-RELEASE-p11:
/bin/freebsd-version
/lib/libalias.so.7
/lib/libcasper.so.1
/lib/libcrypto.so.111
/lib/libz.so.6
/lib/libzpool.so.2
/rescue/[
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/unzstd
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/rescue/zstd
/rescue/zstdcat
/rescue/zstdmt
/sbin/fsck_4.2bsd
/sbin/fsck_ffs
/sbin/fsck_ufs
/sbin/fsdb
/sbin/ggatec
/usr/bin/bc
/usr/bin/dc
/usr/bin/openssl
/usr/bin/tail
/usr/include/net80211/ieee80211_input.h
/usr/include/openssl/opensslv.h
/usr/include/private/event1/event.h
/usr/lib/libalias.a
/usr/lib/libalias_p.a
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libfetch.a
/usr/lib/libfetch.so.6
/usr/lib/libfetch_p.a
/usr/lib/libprivateevent1.a
/usr/lib/libprivateevent1.so.1
/usr/lib/libprivateevent1_p.a
/usr/lib/libradius.a
/usr/lib/libradius.so.4
/usr/lib/libradius_p.a
/usr/lib/libssl.a
/usr/lib/libssl.so.111
/usr/lib/libssl_p.a
/usr/lib/libz.a
/usr/lib/libz_p.a
/usr/lib/libzpool.a
/usr/sbin/bhyve
/usr/sbin/ftp-proxy
/usr/sbin/hostapd
/usr/sbin/ntp-keygen
/usr/sbin/wpa_cli
/usr/sbin/wpa_supplicant
/usr/sbin/ypldap
/usr/sbin/zdb
/usr/share/certs/trusted/ACCVRAIZ1.pem
/usr/share/certs/trusted/AC_RAIZ_FNMT-RCM.pem
/usr/share/certs/trusted/Actalis_Authentication_Root_CA.pem
/usr/share/certs/trusted/AffirmTrust_Commercial.pem
/usr/share/certs/trusted/AffirmTrust_Networking.pem
/usr/share/certs/trusted/AffirmTrust_Premium.pem
/usr/share/certs/trusted/AffirmTrust_Premium_ECC.pem
/usr/share/certs/trusted/Amazon_Root_CA_1.pem
/usr/share/certs/trusted/Amazon_Root_CA_2.pem
/usr/share/certs/trusted/Amazon_Root_CA_3.pem
/usr/share/certs/trusted/Amazon_Root_CA_4.pem
/usr/share/certs/trusted/Atos_TrustedRoot_2011.pem
/usr/share/certs/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
/usr/share/certs/trusted/Baltimore_CyberTrust_Root.pem
/usr/share/certs/trusted/Buypass_Class_2_Root_CA.pem
/usr/share/certs/trusted/Buypass_Class_3_Root_CA.pem
/usr/share/certs/trusted/CA_Disig_Root_R2.pem
/usr/share/certs/trusted/CFCA_EV_ROOT.pem
/usr/share/certs/trusted/COMODO_Certification_Authority.pem
/usr/share/certs/trusted/COMODO_ECC_Certification_Authority.pem
/usr/share/certs/trusted/COMODO_RSA_Certification_Authority.pem
/usr/share/certs/trusted/Certigna.pem
/usr/share/certs/trusted/Certigna_Root_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Network_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Network_CA_2.pem
/usr/share/certs/trusted/Comodo_AAA_Services_root.pem
/usr/share/certs/trusted/Cybertrust_Global_Root.pem
/usr/share/certs/trusted/D-TRUST_Root_Class_3_CA_2_2009.pem
/usr/share/certs/trusted/D-TRUST_Root_Class_3_CA_2_EV_2009.pem
/usr/share/certs/trusted/DST_Root_CA_X3.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_G2.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_G3.pem
/usr/share/certs/trusted/DigiCert_Global_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Global_Root_G2.pem
/usr/share/certs/trusted/DigiCert_Global_Root_G3.pem
/usr/share/certs/trusted/DigiCert_High_Assurance_EV_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Trusted_Root_G4.pem
/usr/share/certs/trusted/E-Tugra_Certification_Authority.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_EC1.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_G2.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_G4.pem
/usr/share/certs/trusted/Entrust_net_Premium_2048_Secure_Server_CA.pem
/usr/share/certs/trusted/GDCA_TrustAUTH_R5_ROOT.pem
/usr/share/certs/trusted/GTS_Root_R1.pem
/usr/share/certs/trusted/GTS_Root_R2.pem
/usr/share/certs/trusted/GTS_Root_R3.pem
/usr/share/certs/trusted/GTS_Root_R4.pem
/usr/share/certs/trusted/GlobalSign_ECC_Root_CA_-_R4.pem
/usr/share/certs/trusted/GlobalSign_ECC_Root_CA_-_R5.pem
/usr/share/certs/trusted/GlobalSign_Root_CA.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R2.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R3.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R6.pem
/usr/share/certs/trusted/Go_Daddy_Class_2_CA.pem
/usr/share/certs/trusted/Go_Daddy_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
/usr/share/certs/trusted/Hongkong_Post_Root_CA_1.pem
/usr/share/certs/trusted/Hongkong_Post_Root_CA_3.pem
/usr/share/certs/trusted/ISRG_Root_X1.pem
/usr/share/certs/trusted/IdenTrust_Commercial_Root_CA_1.pem
/usr/share/certs/trusted/IdenTrust_Public_Sector_Root_CA_1.pem
/usr/share/certs/trusted/Izenpe_com.pem
/usr/share/certs/trusted/Microsec_e-Szigno_Root_CA_2009.pem
/usr/share/certs/trusted/Microsoft_ECC_Root_Certificate_Authority_2017.pem
/usr/share/certs/trusted/Microsoft_RSA_Root_Certificate_Authority_2017.pem
/usr/share/certs/trusted/NAVER_Global_Root_Certification_Authority.pem
/usr/share/certs/trusted/NetLock_Arany__Class_Gold__F__tan__s__tv__ny.pem
/usr/share/certs/trusted/Network_Solutions_Certificate_Authority.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GB_CA.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GC_CA.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_1_G3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_2.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_2_G3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_3_G3.pem
/usr/share/certs/trusted/SSL_com_EV_Root_Certification_Authority_ECC.pem
/usr/share/certs/trusted/SSL_com_EV_Root_Certification_Authority_RSA_R2.pem
/usr/share/certs/trusted/SSL_com_Root_Certification_Authority_ECC.pem
/usr/share/certs/trusted/SSL_com_Root_Certification_Authority_RSA.pem
/usr/share/certs/trusted/SZAFIR_ROOT_CA2.pem
/usr/share/certs/trusted/SecureSign_RootCA11.pem
/usr/share/certs/trusted/SecureTrust_CA.pem
/usr/share/certs/trusted/Secure_Global_CA.pem
/usr/share/certs/trusted/Security_Communication_RootCA2.pem
/usr/share/certs/trusted/Security_Communication_Root_CA.pem
/usr/share/certs/trusted/Staat_der_Nederlanden_EV_Root_CA.pem
/usr/share/certs/trusted/Starfield_Class_2_CA.pem
/usr/share/certs/trusted/Starfield_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/Starfield_Services_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/SwissSign_Gold_CA_-_G2.pem
/usr/share/certs/trusted/SwissSign_Silver_CA_-_G2.pem
/usr/share/certs/trusted/T-TeleSec_GlobalRoot_Class_2.pem
/usr/share/certs/trusted/T-TeleSec_GlobalRoot_Class_3.pem
/usr/share/certs/trusted/TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
/usr/share/certs/trusted/TWCA_Global_Root_CA.pem
/usr/share/certs/trusted/TWCA_Root_Certification_Authority.pem
/usr/share/certs/trusted/TeliaSonera_Root_CA_v1.pem
/usr/share/certs/trusted/TrustCor_ECA-1.pem
/usr/share/certs/trusted/TrustCor_RootCert_CA-1.pem
/usr/share/certs/trusted/TrustCor_RootCert_CA-2.pem
/usr/share/certs/trusted/Trustwave_Global_Certification_Authority.pem
/usr/share/certs/trusted/Trustwave_Global_ECC_P256_Certification_Authority.pem
/usr/share/certs/trusted/Trustwave_Global_ECC_P384_Certification_Authority.pem
/usr/share/certs/trusted/UCA_Extended_Validation_Root.pem
/usr/share/certs/trusted/UCA_Global_G2_Root.pem
/usr/share/certs/trusted/USERTrust_ECC_Certification_Authority.pem
/usr/share/certs/trusted/USERTrust_RSA_Certification_Authority.pem
/usr/share/certs/trusted/XRamp_Global_CA_Root.pem
/usr/share/certs/trusted/certSIGN_ROOT_CA.pem
/usr/share/certs/trusted/certSIGN_Root_CA_G2.pem
/usr/share/certs/trusted/e-Szigno_Root_CA_2017.pem
/usr/share/certs/trusted/ePKI_Root_Certification_Authority.pem
/usr/share/certs/trusted/emSign_ECC_Root_CA_-_C3.pem
/usr/share/certs/trusted/emSign_ECC_Root_CA_-_G3.pem
/usr/share/certs/trusted/emSign_Root_CA_-_C1.pem
/usr/share/certs/trusted/emSign_Root_CA_-_G1.pem
/usr/share/zoneinfo/Africa/Accra
/usr/share/zoneinfo/America/Anguilla
/usr/share/zoneinfo/America/Antigua
/usr/share/zoneinfo/America/Aruba
/usr/share/zoneinfo/America/Atikokan
/usr/share/zoneinfo/America/Barbados
/usr/share/zoneinfo/America/Blanc-Sablon
/usr/share/zoneinfo/America/Coral_Harbour
/usr/share/zoneinfo/America/Creston
/usr/share/zoneinfo/America/Curacao
/usr/share/zoneinfo/America/Dominica
/usr/share/zoneinfo/America/Grenada
/usr/share/zoneinfo/America/Guadeloupe
/usr/share/zoneinfo/America/Guyana
/usr/share/zoneinfo/America/Kralendijk
/usr/share/zoneinfo/America/Lower_Princes
/usr/share/zoneinfo/America/Marigot
/usr/share/zoneinfo/America/Montserrat
/usr/share/zoneinfo/America/Nassau
/usr/share/zoneinfo/America/Port_of_Spain
/usr/share/zoneinfo/America/Punta_Arenas
/usr/share/zoneinfo/America/Santiago
/usr/share/zoneinfo/America/St_Barthelemy
/usr/share/zoneinfo/America/St_Kitts
/usr/share/zoneinfo/America/St_Lucia
/usr/share/zoneinfo/America/St_Thomas
/usr/share/zoneinfo/America/St_Vincent
/usr/share/zoneinfo/America/Tortola
/usr/share/zoneinfo/America/Virgin
/usr/share/zoneinfo/Antarctica/DumontDUrville
/usr/share/zoneinfo/Antarctica/Syowa
/usr/share/zoneinfo/Asia/Amman
/usr/share/zoneinfo/Asia/Gaza
/usr/share/zoneinfo/Asia/Hebron
/usr/share/zoneinfo/Atlantic/Azores
/usr/share/zoneinfo/Atlantic/Madeira
/usr/share/zoneinfo/Chile/Continental
/usr/share/zoneinfo/Europe/Kiev
/usr/share/zoneinfo/Europe/Lisbon
/usr/share/zoneinfo/Europe/Simferopol
/usr/share/zoneinfo/Europe/Uzhgorod
/usr/share/zoneinfo/Europe/Zaporozhye
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Enderbury
/usr/share/zoneinfo/Pacific/Fiji
/usr/share/zoneinfo/Pacific/Niue
/usr/share/zoneinfo/Pacific/Rarotonga
/usr/share/zoneinfo/Pacific/Tongatapu
/usr/share/zoneinfo/Portugal
/usr/share/zoneinfo/zone.tab
/usr/share/zoneinfo/zone1970.tab
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
 done.
=====>  Stop the pot hugo-nginx-amd64-13_0
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev
=====>  Flavour: hugo-nginx
=====>  Executing hugo-nginx pot commands on hugo-nginx-amd64-13_0
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/nginx.conf copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/goaccess.conf.in copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_default_list.html copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_blog_list.html copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_article.html copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_footer.html copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_taxonomy_tag.html copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/syslog-ng.conf.in copied in the pot hugo-nginx-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev is already unmounted
=====>  Starting hugo-nginx-amd64-13_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot hugo-nginx-amd64-13_0
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:c7:ee:9c:da:0b
	inet 10.192.0.5 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Fri Apr 29 23:11:57 UTC 2022
/usr/local/etc/pot/flavours/hugo-nginx.sh -> /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp/hugo-nginx.sh
=====>  Executing hugo-nginx script on hugo-nginx-amd64-13_0
Creating /var/log/cook.log
Step 1: Bootstrap package repo
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.17.5_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.17.5_1: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly, please wait...
Step 2: Touch /etc/rc.conf
Step 3: Remove ifconfig_epair0b from config
Step 4: Disable sendmail
sendmail disabled in /etc/rc.conf
sendmail_submit disabled in /etc/rc.conf
sendmail_msp_queue disabled in /etc/rc.conf
Step 5: Enable SSH
sshd enabled in /etc/rc.conf
Step 6: Create /usr/local/etc/rc.d
Step 7: Install package sudo
Updating FreeBSD repository catalogue...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 31191 packages processed.
All repositories are up to date.
Updating database digests format: . done
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gettext-runtime: 0.21
	indexinfo: 0.3.1
	sudo: 1.9.10

Number of packages to be installed: 3

The process will require 8 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching sudo-1.9.10.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching gettext-runtime-0.21.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching indexinfo-0.3.1.pkg: . done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Installing indexinfo-0.3.1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting indexinfo-0.3.1: .... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Installing gettext-runtime-0.21...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting gettext-runtime-0.21: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Installing sudo-1.9.10...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting sudo-1.9.10: .......... done
Step 8: Install package curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	ca_root_nss: 3.76
	curl: 7.82.0
	libnghttp2: 1.46.0
	libssh2: 1.10.0,3

Number of packages to be installed: 4

The process will require 6 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/4] Fetching curl-7.82.0.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/4] Fetching libnghttp2-1.46.0.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/4] Fetching libssh2-1.10.0,3.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/4] Fetching ca_root_nss-3.76.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/4] Installing libnghttp2-1.46.0...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/4] Extracting libnghttp2-1.46.0: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/4] Installing libssh2-1.10.0,3...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/4] Extracting libssh2-1.10.0,3: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/4] Installing ca_root_nss-3.76...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/4] Extracting ca_root_nss-3.76: ........ done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/4] Installing curl-7.82.0...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/4] Extracting curl-7.82.0: .......... done
=====
Message from ca_root_nss-3.76:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
Step 9: Install package jq
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	jq: 1.6
	oniguruma: 6.9.7.1

Number of packages to be installed: 2

The process will require 2 MiB more space.
500 KiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching jq-1.6.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching oniguruma-6.9.7.1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing oniguruma-6.9.7.1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting oniguruma-6.9.7.1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing jq-1.6...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting jq-1.6: .......... done
Step 10: Install package jo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	jo: 1.6

Number of packages to be installed: 1

20 KiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching jo-1.6.pkg: ... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing jo-1.6...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting jo-1.6: ....... done
Step 11: Install package git
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 28 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	expat: 2.4.8
	git: 2.35.2
	libffi: 3.3_1
	mpdecimal: 2.5.1
	p5-Authen-SASL: 2.16_1
	p5-CGI: 4.54
	p5-Clone: 0.45
	p5-Digest-HMAC: 1.04
	p5-Encode-Locale: 1.05
	p5-Error: 0.17029
	p5-GSSAPI: 0.28_2
	p5-HTML-Parser: 3.77
	p5-HTML-Tagset: 3.20_1
	p5-HTTP-Date: 6.05
	p5-HTTP-Message: 6.36
	p5-IO-HTML: 1.004
	p5-IO-Socket-INET6: 2.72_1
	p5-IO-Socket-SSL: 2.074
	p5-LWP-MediaTypes: 6.04
	p5-Mozilla-CA: 20211001
	p5-Net-SSLeay: 1.90
	p5-Socket6: 0.29
	p5-TimeDate: 2.33,1
	p5-URI: 5.10
	pcre2: 10.39_1
	perl5: 5.32.1_1
	python38: 3.8.13
	readline: 8.1.2

Number of packages to be installed: 28

The process will require 231 MiB more space.
46 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/28] Fetching git-2.35.2.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/28] Fetching p5-CGI-4.54.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/28] Fetching p5-HTML-Parser-3.77.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/28] Fetching p5-HTTP-Message-6.36.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/28] Fetching p5-LWP-MediaTypes-6.04.pkg: ... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/28] Fetching perl5-5.32.1_1.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/28] Fetching p5-HTTP-Date-6.05.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/28] Fetching p5-TimeDate-2.33,1.pkg: ..... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/28] Fetching p5-URI-5.10.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/28] Fetching p5-IO-HTML-1.004.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/28] Fetching p5-Clone-0.45.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/28] Fetching p5-Encode-Locale-1.05.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/28] Fetching p5-HTML-Tagset-3.20_1.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/28] Fetching expat-2.4.8.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [15/28] Fetching p5-IO-Socket-SSL-2.074.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [16/28] Fetching p5-Mozilla-CA-20211001.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [17/28] Fetching p5-Net-SSLeay-1.90.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [18/28] Fetching p5-IO-Socket-INET6-2.72_1.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [19/28] Fetching p5-Socket6-0.29.pkg: ... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [20/28] Fetching p5-Authen-SASL-2.16_1.pkg: ...... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [21/28] Fetching p5-GSSAPI-0.28_2.pkg: ..... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [22/28] Fetching p5-Digest-HMAC-1.04.pkg: .. done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [23/28] Fetching python38-3.8.13.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [24/28] Fetching mpdecimal-2.5.1.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [25/28] Fetching readline-8.1.2.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [26/28] Fetching libffi-3.3_1.pkg: ..... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [27/28] Fetching p5-Error-0.17029.pkg: .... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [28/28] Fetching pcre2-10.39_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/28] Installing perl5-5.32.1_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/28] Extracting perl5-5.32.1_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/28] Installing p5-TimeDate-2.33,1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/28] Extracting p5-TimeDate-2.33,1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/28] Installing p5-LWP-MediaTypes-6.04...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/28] Extracting p5-LWP-MediaTypes-6.04: ........ done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/28] Installing p5-HTTP-Date-6.05...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/28] Extracting p5-HTTP-Date-6.05: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/28] Installing p5-URI-5.10...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/28] Extracting p5-URI-5.10: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/28] Installing p5-IO-HTML-1.004...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/28] Extracting p5-IO-HTML-1.004: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/28] Installing p5-Clone-0.45...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/28] Extracting p5-Clone-0.45: ......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/28] Installing p5-Encode-Locale-1.05...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/28] Extracting p5-Encode-Locale-1.05: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/28] Installing p5-HTTP-Message-6.36...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/28] Extracting p5-HTTP-Message-6.36: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/28] Installing p5-HTML-Tagset-3.20_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/28] Extracting p5-HTML-Tagset-3.20_1: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/28] Installing p5-Socket6-0.29...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/28] Extracting p5-Socket6-0.29: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/28] Installing p5-HTML-Parser-3.77...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/28] Extracting p5-HTML-Parser-3.77: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/28] Installing p5-Mozilla-CA-20211001...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/28] Extracting p5-Mozilla-CA-20211001: ........ done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/28] Installing p5-Net-SSLeay-1.90...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/28] Extracting p5-Net-SSLeay-1.90: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [15/28] Installing p5-IO-Socket-INET6-2.72_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [15/28] Extracting p5-IO-Socket-INET6-2.72_1: ....... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [16/28] Installing p5-GSSAPI-0.28_2...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [16/28] Extracting p5-GSSAPI-0.28_2: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [17/28] Installing p5-Digest-HMAC-1.04...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [17/28] Extracting p5-Digest-HMAC-1.04: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [18/28] Installing mpdecimal-2.5.1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [18/28] Extracting mpdecimal-2.5.1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [19/28] Installing readline-8.1.2...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [19/28] Extracting readline-8.1.2: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [20/28] Installing libffi-3.3_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [20/28] Extracting libffi-3.3_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [21/28] Installing p5-CGI-4.54...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [21/28] Extracting p5-CGI-4.54: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [22/28] Installing expat-2.4.8...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [22/28] Extracting expat-2.4.8: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [23/28] Installing p5-IO-Socket-SSL-2.074...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [23/28] Extracting p5-IO-Socket-SSL-2.074: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [24/28] Installing p5-Authen-SASL-2.16_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [24/28] Extracting p5-Authen-SASL-2.16_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [25/28] Installing python38-3.8.13...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [25/28] Extracting python38-3.8.13: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [26/28] Installing p5-Error-0.17029...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [26/28] Extracting p5-Error-0.17029: ......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [27/28] Installing pcre2-10.39_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [27/28] Extracting pcre2-10.39_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [28/28] Installing git-2.35.2...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [28/28] Extracting git-2.35.2: .......... done
=====
Message from python38-3.8.13:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
=====
Message from git-2.35.2:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
Step 12: Install package nginx
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	nginx: 1.20.2_9,2
	pcre: 8.45_1

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.20.2_9,2.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.45_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.45_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.45_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.20.2_9,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.20.2_9,2: .......... done
=====
Message from nginx-1.20.2_9,2:

--
Recent version of the NGINX introduces dynamic modules support.  In
FreeBSD ports tree this feature was enabled by default with the DSO
knob.  Several vendor's and third-party modules have been converted
to dynamic modules.  Unset the DSO knob builds an NGINX without
dynamic modules support.

To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks.  When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.
Step 13: Install package gohugo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gohugo: 0.96.0

Number of packages to be installed: 1

The process will require 51 MiB more space.
12 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching gohugo-0.96.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing gohugo-0.96.0...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting gohugo-0.96.0: .......... done
Step 14: Install package goaccess
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	goaccess: 1.5.5
	libmaxminddb: 1.6.0

Number of packages to be installed: 2

The process will require 1 MiB more space.
334 KiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching goaccess-1.5.5.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching libmaxminddb-1.6.0.pkg: ..... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing libmaxminddb-1.6.0...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting libmaxminddb-1.6.0: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing goaccess-1.5.5...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting goaccess-1.5.5: .......... done
Step 15: Install package rsync
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	libiconv: 1.16
	liblz4: 1.9.3,1
	rsync: 3.2.3_1
	xxhash: 0.8.1
	zstd: 1.5.2

Number of packages to be installed: 5

The process will require 6 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Fetching rsync-3.2.3_1.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Fetching xxhash-0.8.1.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Fetching libiconv-1.16.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Fetching zstd-1.5.2.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Fetching liblz4-1.9.3,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Installing liblz4-1.9.3,1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Extracting liblz4-1.9.3,1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Installing xxhash-0.8.1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Extracting xxhash-0.8.1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Installing libiconv-1.16...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Extracting libiconv-1.16: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Installing zstd-1.5.2...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Extracting zstd-1.5.2: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Installing rsync-3.2.3_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Extracting rsync-3.2.3_1: .......... done
Step 16: Install package syslog-ng
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	e2fsprogs-libuuid: 1.46.5
	glib: 2.70.4_3,2
	json-c: 0.15_1
	libxml2: 2.9.13_1
	syslog-ng: 3.36.1

Number of packages to be installed: 5

The process will require 40 MiB more space.
6 MiB to be downloaded.
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Fetching syslog-ng-3.36.1.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Fetching e2fsprogs-libuuid-1.46.5.pkg: ..... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Fetching json-c-0.15_1.pkg: ........ done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Fetching glib-2.70.4_3,2.pkg: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Fetching libxml2-2.9.13_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Installing libxml2-2.9.13_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/5] Extracting libxml2-2.9.13_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Installing e2fsprogs-libuuid-1.46.5...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/5] Extracting e2fsprogs-libuuid-1.46.5: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Installing json-c-0.15_1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/5] Extracting json-c-0.15_1: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Installing glib-2.70.4_3,2...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/5] Extracting glib-2.70.4_3,2: .......... done
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Installing syslog-ng-3.36.1...
[hugo-nginx-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/5] Extracting syslog-ng-3.36.1: .......... done
Compiling glib schemas
No schema files found: doing nothing.
=====
Message from syslog-ng-3.36.1:

--
syslog-ng is now installed!  To replace FreeBSD's standard syslogd
(/usr/sbin/syslogd), complete these steps:

1. Create a configuration file named /usr/local/etc/syslog-ng.conf
   (a sample named syslog-ng.conf.sample has been included in
   /usr/local/etc). Note that this is a change in 2.0.2
   version, previous ones put the config file in
   /usr/local/etc/syslog-ng/syslog-ng.conf, so if this is an update
   move that file in the right place

2. Configure syslog-ng to start automatically by adding the following
   to /etc/rc.conf:

        syslog_ng_enable="YES"

3. Prevent the standard FreeBSD syslogd from starting automatically by
   adding a line to the end of your /etc/rc.conf file that reads:

        syslogd_enable="NO"

4. Shut down the standard FreeBSD syslogd:

     kill `cat /var/run/syslog.pid`

5. Start syslog-ng:

     /usr/local/etc/rc.d/syslog-ng start
Step 17: Clean package installation
Checking integrity... done (0 conflicting)
Nothing to do.
Nothing to do.
Step 18: Remove pre-existing cook script (if any)
Step 19: Create cook script
Step 20: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 21: Create rc.d script to start cook
creating rc.d script to start cook
Step 22: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 23: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot hugo-nginx-amd64-13_0
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-13_0/m/dev
=====>  Flavour: hugo-nginx+1
=====>  Executing hugo-nginx+1 pot commands on hugo-nginx-amd64-13_0
=====>  No shell script available for the flavour hugo-nginx+1
=====>  Flavour: hugo-nginx+2
=====>  Executing hugo-nginx+2 pot commands on hugo-nginx-amd64-13_0
=====>  No shell script available for the flavour hugo-nginx+2
=====>  Flavour: hugo-nginx+3
=====>  Executing hugo-nginx+3 pot commands on hugo-nginx-amd64-13_0
=====>  No shell script available for the flavour hugo-nginx+3
=====>  Flavour: hugo-nginx+4
=====>  Executing hugo-nginx+4 pot commands on hugo-nginx-amd64-13_0
=====>  No shell script available for the flavour hugo-nginx+4

hugo-nginx-amd64-12_3_0.0.18:


hugo-nginx/hugo-nginx:
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/nginx.conf -d /root/nginx.conf
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/goaccess.conf.in -d /root/goaccess.conf.in
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_default_list.html -d /root/custom_theme_default_list.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_blog_list.html -d /root/custom_theme_blog_list.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_article.html -d /root/custom_theme_partial_article.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_footer.html -d /root/custom_theme_partial_footer.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_taxonomy_tag.html -d /root/custom_theme_taxonomy_tag.html
copy-in -s /usr/local/etc/pot/flavours/hugo-nginx.d/syslog-ng.conf.in -d /root/syslog-ng.conf.in
hugo-nginx/hugo-nginx.sh:
#!/bin/sh

# Based on POTLUCK TEMPLATE v3.0
# Altered by Michael Gmelin
#
# EDIT THE FOLLOWING FOR NEW FLAVOUR:
# 1. RUNS_IN_NOMAD - true or false
# 2. If RUNS_IN_NOMAD is false, can delete the <flavour>+4 file, else
#    make sure pot create command doesn't include it
# 3. Create a matching <flavour> file with this <flavour>.sh file that
#    contains the copy-in commands for the config files from <flavour>.d/
#    Remember that the package directories don't exist yet, so likely copy
#    to /root
# 4. Adjust package installation between BEGIN & END PACKAGE SETUP
# 5. Adjust jail configuration script generation between BEGIN & END COOK
#    Configure the config files that have been copied in where necessary

# Set this to true if this jail flavour is to be created as a nomad (i.e. blocking) jail.
# You can then query it in the cook script generation below and the script is installed
# appropriately at the end of this script
RUNS_IN_NOMAD=false

# set the cook log path/filename
COOKLOG=/var/log/cook.log

# check if cooklog exists, create it if not
if [ ! -e $COOKLOG ]
then
    echo "Creating $COOKLOG" | tee -a $COOKLOG
else
    echo "WARNING $COOKLOG already exists"  | tee -a $COOKLOG
fi
date >> $COOKLOG

# -------------------- COMMON ---------------

STEPCOUNT=0
step() {
  STEPCOUNT=$(expr "$STEPCOUNT" + 1)
  STEP="$@"
  echo "Step $STEPCOUNT: $STEP" | tee -a $COOKLOG
}

exit_ok() {
  trap - EXIT
  exit 0
}

FAILED=" failed"
exit_error() {
  STEP="$@"
  FAILED=""
  exit 1
}

set -e
trap 'echo ERROR: $STEP$FAILED | (>&2 tee -a $COOKLOG)' EXIT

# -------------- BEGIN PACKAGE SETUP -------------

step "Bootstrap package repo"
mkdir -p /usr/local/etc/pkg/repos
# shellcheck disable=SC2016
test -e /usr/local/etc/pkg/repos/FreeBSD.conf || \
  echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly" }' \
    >/usr/local/etc/pkg/repos/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap

step "Touch /etc/rc.conf"
touch /etc/rc.conf

# this is important, otherwise running /etc/rc from cook will
# overwrite the IP address set in tinirc
step "Remove ifconfig_epair0b from config"
sysrc -cq ifconfig_epair0b && sysrc -x ifconfig_epair0b || true

step "Disable sendmail"
service sendmail onedisable

step "Enable SSH"
service sshd enable

step "Create /usr/local/etc/rc.d"
mkdir -p /usr/local/etc/rc.d

step "Install package sudo"
pkg install -y sudo

step "Install package curl"
pkg install -y curl

step "Install package jq"
pkg install -y jq

step "Install package jo"
pkg install -y jo

step "Install package git"
pkg install -y git

step "Install package nginx"
pkg install -y nginx

step "Install package gohugo"
pkg install -y gohugo

step "Install package goaccess"
pkg install -y goaccess

step "Install package rsync"
pkg install -y rsync

step "Install package syslog-ng"
pkg install -y syslog-ng

step "Clean package installation"
pkg autoremove -y
pkg clean -y

# -------------- END PACKAGE SETUP -------------

#
# Create configurations
#

#
# Now generate the run command script "cook"
# It configures the system on the first run by creating the config file(s)
# On subsequent runs, it only starts sleeps (if nomad-jail) or simply exits
#

# clear any old cook runtime file
step "Remove pre-existing cook script (if any)"
rm -f /usr/local/bin/cook

# this runs when image boots
# ----------------- BEGIN COOK ------------------

step "Create cook script"
echo "#!/bin/sh
RUNS_IN_NOMAD=$RUNS_IN_NOMAD
# declare this again for the pot image, might work carrying variable through like
# with above
COOKLOG=/var/log/cook.log
# No need to change this, just ensures configuration is done only once
if [ -e /usr/local/etc/pot-is-seasoned ]
then
    # If this pot flavour is blocking (i.e. it should not return),
    # we block indefinitely
    if [ \"\$RUNS_IN_NOMAD\" = \"true\" ]
    then
        /bin/sh /etc/rc
        tail -f /dev/null
    fi
    exit 0
fi

# ADJUST THIS: STOP SERVICES AS NEEDED BEFORE CONFIGURATION
# not needed, not started automatically, needs configuring

# No need to adjust this:
# If this pot flavour is not blocking, we need to read the environment first from /tmp/environment.sh
# where pot is storing it in this case
if [ -e /tmp/environment.sh ]
then
    . /tmp/environment.sh
fi

#
# ADJUST THIS BY CHECKING FOR ALL VARIABLES YOUR FLAVOUR NEEDS:
#

# Check config variables are set
#
if [ -z \${IP+x} ]; then
    echo 'IP is unset - see documentation to configure this flavour for an IP address. This parameter is mandatory.'
    exit 1
fi
if [ -z \${SERVERNAME+x} ]; then
    echo 'SERVERTYPE is unset - see documentation to configure this flavour fully qualified domain name. This parameter is mandatory.'
    exit 1
fi
if [ -z \${SITENAME+x} ]; then
    echo 'SITENAME is unset - see documentation to configure this flavour with a site name for hugo. This parameter is mandatory.'
    exit 1
fi
if [ -z \${GITEMAIL+x} ]; then
    echo 'GITEMAIL is unset - see documentation to configure this flavour with a git email address. This parameter is mandatory.'
    exit 1
fi
if [ -z \${GITUSER+x} ]; then
    echo 'GITUSER is unset - see documentation to configure this flavour with a git user name. This parameter is mandatory.'
    exit 1
fi
if [ -z \${CUSTOMDIR+x} ]; then
    echo 'CUSTOMDIR is unset - will create default tmp - see documentation to configure this flavour with a custom directory inside hugo.'
    CUSTOMDIR=tmp
fi
if [ -z \${CUSTOMFILE+x} ]; then
    echo 'CUSTOMFILE is unset - defaulting to 0 - see documentation to configure this flavour with a custom file to extract inside hugo.'
    CUSTOMFILE=0
fi
if [ -z \${IMPORTPUBKEY+x} ]; then
    echo 'IMPORTPUBKEY is unset - see documentation to configure this flavour for adding SSH keys to authorized_keys file.'
    IMPORTPUBKEY=0
fi
if [ -z \${THEMEADJUST+x} ]; then
    echo 'THEMEADJUST is unset - defaulting to 0 - see documentation to configure this flavour for custom changes to default theme.'
    THEMEADJUST=0
fi
# Remotelog is a remote syslog server, need to pass in IP
if [ -z \${REMOTELOG+x} ];
then
    echo 'REMOTELOG is unset - see documentation how to configure this flavour'
    REMOTELOG=0
fi

# ADJUST THIS BELOW: NOW ALL THE CONFIGURATION FILES NEED TO BE CREATED:
# Don't forget to double(!)-escape quotes and dollar signs in the config files

# create root ssh keys
mkdir -p /root/.ssh
/usr/bin/ssh-keygen -q -N '' -f /root/.ssh/id_rsa -t rsa
chown -R root:wheel /root/.ssh
chmod 700 /root/.ssh
chmod 600 /root/.ssh/id_rsa

# add imported key to authorized_keys
if [ \${IMPORTPUBKEY} -eq 1 ]; then
    if [ -f /root/jenkins.pub ]; then
        echo \"Adding imported /root/jenkins.pub to /root/.ssh/authorized_keys\"
        cat /root/jenkins.pub >> /root/.ssh/authorized_keys
        chown -R root:wheel /root/.ssh
    else
        echo \"Error: no /root/jenkins.pub file found\"
    fi
fi

# setup ssh server with remote root access with a key

echo \"Setting up ssh server\"
echo \"Port 22
PermitRootLogin prohibit-password
PubkeyAuthentication yes
AuthorizedKeysFile       .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
StrictModes no
UseDNS no
Banner none
LogLevel DEBUG
AllowAgentForwarding yes
PermitTTY yes\" >> /etc/ssh/sshd_config

echo \"Manually setting up host keys\"
cd /etc/ssh
/usr/bin/ssh-keygen -A
cd ~

# restart ssh
echo \"Restarting ssh\"
service sshd restart

# configure nginx
# change variables in temp file and copy to /usr/local/nginx/nginx.conf

if [ -f /root/nginx.conf ]; then
    sed < /root/nginx.conf \
    -e \"s|%%IP%%|\${IP}|g\" \
    -e \"s|%%SERVERNAME%%|\${SERVERNAME}|g\" \
    -e \"s|%%SITENAME%%|\${SITENAME}|g\" > /usr/local/etc/nginx/nginx.conf
else
    echo \"Error: no /root/nginx.conf file to modify. This error should not happen in prebuilt pot image.\"
fi

# enable nginx
service nginx enable

## remote syslogs
if [ \"\${REMOTELOG}\" != \"0\" ]; then
    config_version=\$(/usr/local/sbin/syslog-ng --version | grep '^Config version:' | awk -F: '{ print \$2 }' | xargs)

    # read in template conf file, update remote log IP address, and
    # write to correct destination
    < /root/syslog-ng.conf.in \
      sed \"s|%%config_version%%|\$config_version|g\" | \
      sed \"s|%%remotelogip%%|\$REMOTELOG|g\" > /usr/local/etc/syslog-ng.conf

    # stop and disable syslogd
    service syslogd onestop || true
    service syslogd disable

    # enable and start syslog-ng
    service syslog-ng enable
    sysrc syslog_ng_flags=\"-R /tmp/syslog-ng.persist\"
    service syslog-ng start
fi

# setup hugo
cd /mnt
/usr/local/bin/hugo new site \${SITENAME}

# this has to happen after the force create of site as was wiping this
# make some directories from input variables
mkdir -p /mnt/\${SITENAME}/\${CUSTOMDIR}/

# setup .gitignore, overwrite any existing
echo \"\${CUSTOMDIR}/**\" > /mnt/\${SITENAME}/.gitignore

# adding this to extract a custom archive over the hugo files in SITENAME directory
if [ \${CUSTOMFILE} -eq 1 ]; then
    if [ -f /root/customfile.tgz ]; then
        /usr/bin/tar -xzf /root/customfile.tgz --directory /mnt/\${SITENAME}
    fi
fi

# set permissions so jenkins user can write files from jenkins image
chmod 777 /mnt/\${SITENAME}
chmod g+s /mnt/\${SITENAME}
chmod 777 /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod g+s /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod 777 /mnt/\${SITENAME}/content
chmod g+s /mnt/\${SITENAME}/content
chmod 777 /mnt/\${SITENAME}/content/blog
chmod g+s /mnt/\${SITENAME}/content/blog
chmod 777 /mnt/\${SITENAME}/content/micro
chmod g+s /mnt/\${SITENAME}/content/micro
chmod 777 /mnt/\${SITENAME}/static
chmod g+s /mnt/\${SITENAME}/static

# link in /usr/local/www/SITENAME to /root/SITENAME
ln -s /mnt/\${SITENAME}/public /usr/local/www/\${SITENAME}
chown -R www:www /mnt/\${SITENAME}

# setup git
cd /mnt/\${SITENAME}
/usr/local/bin/git init
/usr/local/bin/git config user.email \${GITEMAIL}
/usr/local/bin/git config user.name \${GITUSER}
/usr/local/bin/git config --global --add safe.directory /mnt/\${SITENAME}
/usr/local/bin/git submodule add https://github.com/pavel-pi/kiss-em.git themes/kiss-em
/usr/local/bin/git add -v *

# copy across site icons and css
cp -r /mnt/\${SITENAME}/themes/kiss-em/static/* /mnt/\${SITENAME}/static/

# implement custom theme changes for kiss-em
if [ \${THEMEADJUST} -eq 1 ]; then

    if [ -f /root/custom_theme_default_list.html ]; then
        cp -f /root/custom_theme_default_list.html /mnt/\${SITENAME}/themes/kiss-em/layouts/_default/list.html
    else
        echo \"Cannot find /root/custom_theme_default_list.html\"
    fi

    if [ -f /root/custom_theme_blog_list.html ]; then
        cp -f /root/custom_theme_blog_list.html /mnt/\${SITENAME}/themes/kiss-em/layouts/blog/list.html
    else
        echo \"Cannot find /root/custom_theme_blog_list.html\"
    fi

    if [ -f /root/custom_theme_partial_article.html ]; then
        cp -f /root/custom_theme_partial_article.html /mnt/\${SITENAME}/themes/kiss-em/layouts/partials/article.html
    else
        echo \"Cannot find /root/custom_theme_partial_article.html\"
    fi

    if [ -f /root/custom_theme_partial_footer.html ]; then
        cp -f /root/custom_theme_partial_footer.html /mnt/\${SITENAME}/themes/kiss-em/layouts/partials/footer.html
    else
        echo \"Cannot find /root/custom_theme_partial_footer.html\"
    fi

    if [ -f /root/custom_theme_taxonomy_tag.html ]; then
        cp -f /root/custom_theme_taxonomy_tag.html /mnt/\${SITENAME}/themes/kiss-em/layouts/taxonomy/tag.html
    else
        echo \"Cannot find /root/custom_theme_taxonomy_tag.html\"
    fi

fi

# final perms check
chown -R www:www /mnt/\${SITENAME}

# add changed files
cd /mnt/\${SITENAME}
/usr/local/bin/git add -v *

# commit and push
#/usr/local/bin/git commit -m \"Changed templates via cook script\"

# start hugo
# test server
# hugo server -b http://\${IP}:1313 --bind \${IP} -D
chown -R www:www /mnt/\${SITENAME}
cd /mnt/\${SITENAME}
/usr/local/bin/hugo

# create sample pages
# we need this to create the blog and microblog directories
/usr/local/bin/hugo new blog/sample-blog-post.md
/usr/local/bin/hugo new micro/sample-microblog-post.md

# check ownership again
chown -R www:www /mnt/\${SITENAME}

# set permissions again so remote user can write files from other image
# there might be another way to do this with more security
chmod 777 /mnt/\${SITENAME}
chmod 777 /mnt/\${SITENAME}/\${CUSTOMDIR}
chmod 777 /mnt/\${SITENAME}/content
chmod 777 /mnt/\${SITENAME}/content/blog
chmod 666 /mnt/\${SITENAME}/content/blog/*.md
chmod 777 /mnt/\${SITENAME}/content/micro
chmod 777 /mnt/\${SITENAME}/static

# return to /root
cd /root

# start services
service nginx start

# goaccess
# this seems to be needed as install places in /usr/local/etc/goaccess.conf
# but default for goaccess is /usr/local/etc/goaccess/goaccess.conf
# using custom goaccess.conf with nginx accesslog hardcoded in
if [ -f /root/goaccess.conf.in ]; then
    cp -f /root/goaccess.conf.in /usr/local/etc/goaccess/goaccess.conf
    mv /usr/local/etc/goaccess.conf /usr/local/etc/goaccess.conf.ignore
fi
sysrc goaccess_config=\"/usr/local/etc/goaccess/goaccess.conf\"
sysrc goaccess_log=\"/var/log/nginx/access.log\"
service goaccess enable
service goaccess start || true
#
# ADJUST THIS: START THE SERVICES AGAIN AFTER CONFIGURATION

#
# Do not touch this:
touch /usr/local/etc/pot-is-seasoned

# If this pot flavour is blocking (i.e. it should not return), there is no /tmp/environment.sh
# created by pot and we now after configuration block indefinitely
if [ \"\$RUNS_IN_NOMAD\" = \"true\" ]
then
    /bin/sh /etc/rc
    tail -f /dev/null
fi
" > /usr/local/bin/cook

# ----------------- END COOK ------------------


# ---------- NO NEED TO EDIT BELOW ------------

step "Make cook script executable"
if [ -e /usr/local/bin/cook ]
then
    echo "setting executable bit on /usr/local/bin/cook" | tee -a $COOKLOG
    chmod u+x /usr/local/bin/cook
else
    exit_error "there is no /usr/local/bin/cook to make executable"
fi

#
# There are two ways of running a pot jail: "Normal", non-blocking mode and
# "Nomad", i.e. blocking mode (the pot start command does not return until
# the jail is stopped).
# For the normal mode, we create a /usr/local/etc/rc.d script that starts
# the "cook" script generated above each time, for the "Nomad" mode, the cook
# script is started by pot (configuration through flavour file), therefore
# we do not need to do anything here.
#

# Create rc.d script for "normal" mode:
step "Create rc.d script to start cook"
echo "creating rc.d script to start cook" | tee -a $COOKLOG

echo "#!/bin/sh
#
# PROVIDE: cook
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name=\"cook\"
rcvar=\"cook_enable\"
load_rc_config \$name
: \${cook_enable:=\"NO\"}
: \${cook_env:=\"\"}
command=\"/usr/local/bin/cook\"
command_args=\"\"
run_rc_command \"\$1\"
" > /usr/local/etc/rc.d/cook

step "Make rc.d script to start cook executable"
if [ -e /usr/local/etc/rc.d/cook ]
then
  echo "Setting executable bit on cook rc file" | tee -a $COOKLOG
  chmod u+x /usr/local/etc/rc.d/cook
else
  exit_error "/usr/local/etc/rc.d/cook does not exist"
fi

if [ "$RUNS_IN_NOMAD" != "true" ]
then
  step "Enable cook service"
  # This is a non-nomad (non-blocking) jail, so we need to make sure the script
  # gets started when the jail is started:
  # Otherwise, /usr/local/bin/cook will be set as start script by the pot flavour
  echo "enabling cook" | tee -a $COOKLOG
  service cook enable
fi

# -------------------- DONE ---------------
exit_ok

hugo-nginx/hugo-nginx+1:
hugo-nginx/hugo-nginx+1.sh:

hugo-nginx/hugo-nginx+2:
hugo-nginx/hugo-nginx+2.sh:

hugo-nginx/hugo-nginx+3:
hugo-nginx/hugo-nginx+3.sh:

hugo-nginx/hugo-nginx+4:
hugo-nginx/hugo-nginx+4.sh:
Password:===>  Creating a new pot
===>  pot name     : hugo-nginx-amd64-12_3
===>  type         : single
===>  base         : 12.3
===>  pot_base     : 
===>  level        : 0
===>  network-type : public-bridge
===>  network-stack: ipv4
===>  ip           : 10.192.0.6
===>  bridge       : 
===>  dns          : inherit
===>  flavours     : fbsd-update hugo-nginx hugo-nginx+1 hugo-nginx+2 hugo-nginx+3 hugo-nginx+4
===>  Fetching FreeBSD 12.3
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting hugo-nginx-amd64-12_3 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot hugo-nginx-amd64-12_3
Generating host.conf.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:a0:b5:55:82:0b
	inet 10.192.0.6 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
Clearing /tmp (X related).
Starting cron.
Starting sendmail_submit.
Starting sendmail_msp_queue.

Fri Apr 29 23:18:29 UTC 2022
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on hugo-nginx-amd64-12_3
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 12.3-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 44 patches.....10....20....30....40.. done.
Applying patches... done.
The following files will be added as part of updating to
12.3-RELEASE-p5:
/usr/share/zoneinfo/Pacific/Kanton
The following files will be updated as part of updating to
12.3-RELEASE-p5:
/bin/freebsd-version
/lib/libalias.so.7
/lib/libcrypto.so.111
/lib/libz.so.6
/rescue/[
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/unzstd
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/rescue/zstd
/rescue/zstdcat
/rescue/zstdmt
/usr/bin/c++
/usr/bin/cc
/usr/bin/clang
/usr/bin/clang++
/usr/bin/clang-cpp
/usr/bin/cpp
/usr/bin/ld.lld
/usr/include/net80211/ieee80211_input.h
/usr/lib/libalias.a
/usr/lib/libalias_p.a
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libz.a
/usr/lib/libz_p.a
/usr/sbin/bhyve
/usr/sbin/freebsd-update
/usr/share/zoneinfo/Africa/Accra
/usr/share/zoneinfo/America/Anguilla
/usr/share/zoneinfo/America/Antigua
/usr/share/zoneinfo/America/Aruba
/usr/share/zoneinfo/America/Atikokan
/usr/share/zoneinfo/America/Barbados
/usr/share/zoneinfo/America/Blanc-Sablon
/usr/share/zoneinfo/America/Coral_Harbour
/usr/share/zoneinfo/America/Creston
/usr/share/zoneinfo/America/Curacao
/usr/share/zoneinfo/America/Dominica
/usr/share/zoneinfo/America/Grenada
/usr/share/zoneinfo/America/Guadeloupe
/usr/share/zoneinfo/America/Guyana
/usr/share/zoneinfo/America/Kralendijk
/usr/share/zoneinfo/America/Lower_Princes
/usr/share/zoneinfo/America/Marigot
/usr/share/zoneinfo/America/Montserrat
/usr/share/zoneinfo/America/Nassau
/usr/share/zoneinfo/America/Port_of_Spain
/usr/share/zoneinfo/America/Punta_Arenas
/usr/share/zoneinfo/America/Santiago
/usr/share/zoneinfo/America/St_Barthelemy
/usr/share/zoneinfo/America/St_Kitts
/usr/share/zoneinfo/America/St_Lucia
/usr/share/zoneinfo/America/St_Thomas
/usr/share/zoneinfo/America/St_Vincent
/usr/share/zoneinfo/America/Tortola
/usr/share/zoneinfo/America/Virgin
/usr/share/zoneinfo/Antarctica/DumontDUrville
/usr/share/zoneinfo/Antarctica/Syowa
/usr/share/zoneinfo/Asia/Gaza
/usr/share/zoneinfo/Asia/Hebron
/usr/share/zoneinfo/Atlantic/Azores
/usr/share/zoneinfo/Atlantic/Madeira
/usr/share/zoneinfo/Chile/Continental
/usr/share/zoneinfo/Europe/Kiev
/usr/share/zoneinfo/Europe/Lisbon
/usr/share/zoneinfo/Europe/Simferopol
/usr/share/zoneinfo/Europe/Uzhgorod
/usr/share/zoneinfo/Europe/Zaporozhye
/usr/share/zoneinfo/Pacific/Enderbury
/usr/share/zoneinfo/Pacific/Niue
/usr/share/zoneinfo/Pacific/Rarotonga
/usr/share/zoneinfo/Pacific/Tongatapu
/usr/share/zoneinfo/Portugal
/usr/share/zoneinfo/zone.tab
/usr/share/zoneinfo/zone1970.tab
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
 done.
=====>  Stop the pot hugo-nginx-amd64-12_3
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev
=====>  Flavour: hugo-nginx
=====>  Executing hugo-nginx pot commands on hugo-nginx-amd64-12_3
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/nginx.conf copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/goaccess.conf.in copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_default_list.html copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_blog_list.html copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_article.html copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_partial_footer.html copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/custom_theme_taxonomy_tag.html copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/hugo-nginx.d/syslog-ng.conf.in copied in the pot hugo-nginx-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev is already unmounted
=====>  Starting hugo-nginx-amd64-12_3 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot hugo-nginx-amd64-12_3
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:05:b1:ca:69:0b
	inet 10.192.0.6 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
Clearing /tmp (X related).
Starting cron.
Starting sendmail_submit.
Starting sendmail_msp_queue.

Fri Apr 29 23:19:36 UTC 2022
/usr/local/etc/pot/flavours/hugo-nginx.sh -> /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp/hugo-nginx.sh
=====>  Executing hugo-nginx script on hugo-nginx-amd64-12_3
Creating /var/log/cook.log
Step 1: Bootstrap package repo
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.17.5_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.17.5_1: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
Step 2: Touch /etc/rc.conf
Step 3: Remove ifconfig_epair0b from config
Step 4: Disable sendmail
sendmail disabled in /etc/rc.conf
sendmail_submit disabled in /etc/rc.conf
sendmail_msp_queue disabled in /etc/rc.conf
Step 5: Enable SSH
sshd enabled in /etc/rc.conf
Step 6: Create /usr/local/etc/rc.d
Step 7: Install package sudo
Updating FreeBSD repository catalogue...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 31257 packages processed.
All repositories are up to date.
Updating database digests format: . done
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gettext-runtime: 0.21
	indexinfo: 0.3.1
	sudo: 1.9.10

Number of packages to be installed: 3

The process will require 8 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching sudo-1.9.10.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching gettext-runtime-0.21.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching indexinfo-0.3.1.pkg: . done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Installing indexinfo-0.3.1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting indexinfo-0.3.1: .... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Installing gettext-runtime-0.21...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting gettext-runtime-0.21: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Installing sudo-1.9.10...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting sudo-1.9.10: .......... done
Step 8: Install package curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	ca_root_nss: 3.76
	curl: 7.82.0
	libnghttp2: 1.46.0
	libssh2: 1.10.0,3

Number of packages to be installed: 4

The process will require 6 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/4] Fetching curl-7.82.0.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/4] Fetching libnghttp2-1.46.0.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/4] Fetching libssh2-1.10.0,3.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/4] Fetching ca_root_nss-3.76.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/4] Installing libnghttp2-1.46.0...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/4] Extracting libnghttp2-1.46.0: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/4] Installing libssh2-1.10.0,3...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/4] Extracting libssh2-1.10.0,3: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/4] Installing ca_root_nss-3.76...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/4] Extracting ca_root_nss-3.76: ........ done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/4] Installing curl-7.82.0...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/4] Extracting curl-7.82.0: .......... done
=====
Message from ca_root_nss-3.76:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
Step 9: Install package jq
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	jq: 1.6
	oniguruma: 6.9.7.1

Number of packages to be installed: 2

The process will require 2 MiB more space.
498 KiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching jq-1.6.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching oniguruma-6.9.7.1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing oniguruma-6.9.7.1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting oniguruma-6.9.7.1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing jq-1.6...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting jq-1.6: .......... done
Step 10: Install package jo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	jo: 1.6

Number of packages to be installed: 1

20 KiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching jo-1.6.pkg: ... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing jo-1.6...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting jo-1.6: ....... done
Step 11: Install package git
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 28 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	expat: 2.4.8
	git: 2.35.2
	libffi: 3.3_1
	mpdecimal: 2.5.1
	p5-Authen-SASL: 2.16_1
	p5-CGI: 4.54
	p5-Clone: 0.45
	p5-Digest-HMAC: 1.04
	p5-Encode-Locale: 1.05
	p5-Error: 0.17029
	p5-GSSAPI: 0.28_2
	p5-HTML-Parser: 3.77
	p5-HTML-Tagset: 3.20_1
	p5-HTTP-Date: 6.05
	p5-HTTP-Message: 6.36
	p5-IO-HTML: 1.004
	p5-IO-Socket-INET6: 2.72_1
	p5-IO-Socket-SSL: 2.074
	p5-LWP-MediaTypes: 6.04
	p5-Mozilla-CA: 20211001
	p5-Net-SSLeay: 1.90
	p5-Socket6: 0.29
	p5-TimeDate: 2.33,1
	p5-URI: 5.10
	pcre2: 10.39_1
	perl5: 5.32.1_1
	python38: 3.8.13
	readline: 8.1.2

Number of packages to be installed: 28

The process will require 231 MiB more space.
46 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/28] Fetching git-2.35.2.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/28] Fetching p5-CGI-4.54.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/28] Fetching p5-HTML-Parser-3.77.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/28] Fetching p5-HTTP-Message-6.36.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/28] Fetching p5-LWP-MediaTypes-6.04.pkg: ... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/28] Fetching perl5-5.32.1_1.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/28] Fetching p5-HTTP-Date-6.05.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/28] Fetching p5-TimeDate-2.33,1.pkg: ..... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/28] Fetching p5-URI-5.10.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/28] Fetching p5-IO-HTML-1.004.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/28] Fetching p5-Clone-0.45.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/28] Fetching p5-Encode-Locale-1.05.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/28] Fetching p5-HTML-Tagset-3.20_1.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/28] Fetching expat-2.4.8.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [15/28] Fetching p5-IO-Socket-SSL-2.074.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [16/28] Fetching p5-Mozilla-CA-20211001.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [17/28] Fetching p5-Net-SSLeay-1.90.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [18/28] Fetching p5-IO-Socket-INET6-2.72_1.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [19/28] Fetching p5-Socket6-0.29.pkg: ... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [20/28] Fetching p5-Authen-SASL-2.16_1.pkg: ...... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [21/28] Fetching p5-GSSAPI-0.28_2.pkg: ..... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [22/28] Fetching p5-Digest-HMAC-1.04.pkg: .. done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [23/28] Fetching python38-3.8.13.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [24/28] Fetching mpdecimal-2.5.1.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [25/28] Fetching readline-8.1.2.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [26/28] Fetching libffi-3.3_1.pkg: ..... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [27/28] Fetching p5-Error-0.17029.pkg: .... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [28/28] Fetching pcre2-10.39_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/28] Installing perl5-5.32.1_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/28] Extracting perl5-5.32.1_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/28] Installing p5-TimeDate-2.33,1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/28] Extracting p5-TimeDate-2.33,1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/28] Installing p5-LWP-MediaTypes-6.04...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/28] Extracting p5-LWP-MediaTypes-6.04: ........ done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/28] Installing p5-HTTP-Date-6.05...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/28] Extracting p5-HTTP-Date-6.05: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/28] Installing p5-URI-5.10...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/28] Extracting p5-URI-5.10: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/28] Installing p5-IO-HTML-1.004...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/28] Extracting p5-IO-HTML-1.004: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/28] Installing p5-Clone-0.45...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/28] Extracting p5-Clone-0.45: ......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/28] Installing p5-Encode-Locale-1.05...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/28] Extracting p5-Encode-Locale-1.05: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/28] Installing p5-HTTP-Message-6.36...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/28] Extracting p5-HTTP-Message-6.36: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/28] Installing p5-HTML-Tagset-3.20_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/28] Extracting p5-HTML-Tagset-3.20_1: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/28] Installing p5-Socket6-0.29...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/28] Extracting p5-Socket6-0.29: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/28] Installing p5-HTML-Parser-3.77...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/28] Extracting p5-HTML-Parser-3.77: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/28] Installing p5-Mozilla-CA-20211001...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/28] Extracting p5-Mozilla-CA-20211001: ........ done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/28] Installing p5-Net-SSLeay-1.90...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/28] Extracting p5-Net-SSLeay-1.90: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [15/28] Installing p5-IO-Socket-INET6-2.72_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [15/28] Extracting p5-IO-Socket-INET6-2.72_1: ....... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [16/28] Installing p5-GSSAPI-0.28_2...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [16/28] Extracting p5-GSSAPI-0.28_2: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [17/28] Installing p5-Digest-HMAC-1.04...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [17/28] Extracting p5-Digest-HMAC-1.04: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [18/28] Installing mpdecimal-2.5.1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [18/28] Extracting mpdecimal-2.5.1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [19/28] Installing readline-8.1.2...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [19/28] Extracting readline-8.1.2: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [20/28] Installing libffi-3.3_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [20/28] Extracting libffi-3.3_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [21/28] Installing p5-CGI-4.54...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [21/28] Extracting p5-CGI-4.54: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [22/28] Installing expat-2.4.8...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [22/28] Extracting expat-2.4.8: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [23/28] Installing p5-IO-Socket-SSL-2.074...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [23/28] Extracting p5-IO-Socket-SSL-2.074: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [24/28] Installing p5-Authen-SASL-2.16_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [24/28] Extracting p5-Authen-SASL-2.16_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [25/28] Installing python38-3.8.13...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [25/28] Extracting python38-3.8.13: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [26/28] Installing p5-Error-0.17029...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [26/28] Extracting p5-Error-0.17029: ......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [27/28] Installing pcre2-10.39_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [27/28] Extracting pcre2-10.39_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [28/28] Installing git-2.35.2...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [28/28] Extracting git-2.35.2: .......... done
=====
Message from python38-3.8.13:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
=====
Message from git-2.35.2:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
Step 12: Install package nginx
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	nginx: 1.20.2_9,2
	pcre: 8.45_1

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.20.2_9,2.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.45_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.45_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.45_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.20.2_9,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.20.2_9,2: .......... done
=====
Message from nginx-1.20.2_9,2:

--
Recent version of the NGINX introduces dynamic modules support.  In
FreeBSD ports tree this feature was enabled by default with the DSO
knob.  Several vendor's and third-party modules have been converted
to dynamic modules.  Unset the DSO knob builds an NGINX without
dynamic modules support.

To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks.  When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.
Step 13: Install package gohugo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gohugo: 0.96.0

Number of packages to be installed: 1

The process will require 51 MiB more space.
12 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching gohugo-0.96.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing gohugo-0.96.0...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting gohugo-0.96.0: .......... done
Step 14: Install package goaccess
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	goaccess: 1.5.5
	libmaxminddb: 1.6.0

Number of packages to be installed: 2

The process will require 1 MiB more space.
334 KiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching goaccess-1.5.5.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching libmaxminddb-1.6.0.pkg: ..... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing libmaxminddb-1.6.0...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting libmaxminddb-1.6.0: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing goaccess-1.5.5...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting goaccess-1.5.5: .......... done
Step 15: Install package rsync
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	libiconv: 1.16
	liblz4: 1.9.3,1
	rsync: 3.2.3_1
	xxhash: 0.8.1
	zstd: 1.5.2

Number of packages to be installed: 5

The process will require 6 MiB more space.
2 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Fetching rsync-3.2.3_1.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Fetching xxhash-0.8.1.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Fetching libiconv-1.16.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Fetching zstd-1.5.2.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Fetching liblz4-1.9.3,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Installing liblz4-1.9.3,1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Extracting liblz4-1.9.3,1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Installing xxhash-0.8.1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Extracting xxhash-0.8.1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Installing libiconv-1.16...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Extracting libiconv-1.16: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Installing zstd-1.5.2...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Extracting zstd-1.5.2: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Installing rsync-3.2.3_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Extracting rsync-3.2.3_1: .......... done
Step 16: Install package syslog-ng
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	e2fsprogs-libuuid: 1.46.5
	glib: 2.70.4_3,2
	json-c: 0.15_1
	libxml2: 2.9.13_1
	syslog-ng: 3.36.1

Number of packages to be installed: 5

The process will require 40 MiB more space.
6 MiB to be downloaded.
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Fetching syslog-ng-3.36.1.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Fetching e2fsprogs-libuuid-1.46.5.pkg: ..... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Fetching json-c-0.15_1.pkg: ........ done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Fetching glib-2.70.4_3,2.pkg: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Fetching libxml2-2.9.13_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Installing libxml2-2.9.13_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/5] Extracting libxml2-2.9.13_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Installing e2fsprogs-libuuid-1.46.5...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/5] Extracting e2fsprogs-libuuid-1.46.5: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Installing json-c-0.15_1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/5] Extracting json-c-0.15_1: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Installing glib-2.70.4_3,2...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/5] Extracting glib-2.70.4_3,2: .......... done
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Installing syslog-ng-3.36.1...
[hugo-nginx-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/5] Extracting syslog-ng-3.36.1: .......... done
Compiling glib schemas
No schema files found: doing nothing.
=====
Message from syslog-ng-3.36.1:

--
syslog-ng is now installed!  To replace FreeBSD's standard syslogd
(/usr/sbin/syslogd), complete these steps:

1. Create a configuration file named /usr/local/etc/syslog-ng.conf
   (a sample named syslog-ng.conf.sample has been included in
   /usr/local/etc). Note that this is a change in 2.0.2
   version, previous ones put the config file in
   /usr/local/etc/syslog-ng/syslog-ng.conf, so if this is an update
   move that file in the right place

2. Configure syslog-ng to start automatically by adding the following
   to /etc/rc.conf:

        syslog_ng_enable="YES"

3. Prevent the standard FreeBSD syslogd from starting automatically by
   adding a line to the end of your /etc/rc.conf file that reads:

        syslogd_enable="NO"

4. Shut down the standard FreeBSD syslogd:

     kill `cat /var/run/syslog.pid`

5. Start syslog-ng:

     /usr/local/etc/rc.d/syslog-ng start
Step 17: Clean package installation
Checking integrity... done (0 conflicting)
Nothing to do.
Nothing to do.
Step 18: Remove pre-existing cook script (if any)
Step 19: Create cook script
Step 20: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 21: Create rc.d script to start cook
creating rc.d script to start cook
Step 22: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 23: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot hugo-nginx-amd64-12_3
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/tmp
=====>  unmount /mnt/srv/pot/jails/hugo-nginx-amd64-12_3/m/dev
=====>  Flavour: hugo-nginx+1
=====>  Executing hugo-nginx+1 pot commands on hugo-nginx-amd64-12_3
=====>  No shell script available for the flavour hugo-nginx+1
=====>  Flavour: hugo-nginx+2
=====>  Executing hugo-nginx+2 pot commands on hugo-nginx-amd64-12_3
=====>  No shell script available for the flavour hugo-nginx+2
=====>  Flavour: hugo-nginx+3
=====>  Executing hugo-nginx+3 pot commands on hugo-nginx-amd64-12_3
=====>  No shell script available for the flavour hugo-nginx+3
=====>  Flavour: hugo-nginx+4
=====>  Executing hugo-nginx+4 pot commands on hugo-nginx-amd64-12_3
=====>  No shell script available for the flavour hugo-nginx+4

This site © Honeyguide Group (Pty) Ltd, all the hosted software their respective license owners 2020 - 2021 - Disclaimer