Nextcloud Spreed Signalling Server

Overview

This is a Spreed Signalling server jail that can be started with pot.

The jail exposes parameters that can either be set via the environment.

It also contains node_exporter and a local consul agent instance to be available that it can connect to (see configuration below). You can e.g. use the consul pot flavour on this site to run consul.

Setup

You must run this instance from a top level domain such as signal.yourdomain.com.

Installation

  • Create a ZFS data set on the parent system beforehand
    zfs create -o mountpoint=/mnt/spreeddata zroot/spreeddata
    
  • 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> -m /mnt -d /mnt/spreeddata
    
  • Adjust to your environment:
    sudo pot set-env -p <jailname> \
     -E DATACENTER=<datacenter name> \
     -E CONSULSERVERS="<comma-deliminated list of consul servers>" \
     -E GOSSIPKEY=<32 byte Base64 key from consul keygen>] \
     -E NODENAME=<name of node> \
     -E IP=<IP address> \
     -E DOMAIN=<domain name> \
     -E EMAIL=<email address for certificate registration> \
     -E NEXTCLOUDURL=<FQDN nextcloud host, no https> \
     -E SHAREDSECRET=<shared secrt with nextcloud host> \
     [ -E REMOTELOG=<IP of syslog-ng server> ]
    

The DATACENTER parameter is the name of the datacenter.

The CONSULSERVERS parameter is a comma-deliminated list of IP addresses for the consul server or cluster. Do not include spaces!

e.g. CONSULSERVERS="10.0.0.2" or CONSULSERVERS="10.0.0.2,10.0.0.3,10.0.0.4,10.0.0.5,10.0.0.6"

The GOSSIPKEY parameter is the gossip encryption key for consul agent.

The NODENAME parameter is the name of the node.

The IP parameter is the IP address of this image.

The DOMAIN parameter is the domain name to use for acme.sh SSL certificate registration. It will be the same as the servername for the host.

The EMAIL parameter is the email address to use for acme.sh SSL certificate registration.

The NEXTCLOUDURL parameter is the FQDN of the Nextcloud instance. Do not include https://.

The SHAREDSECRET parameter is the shared secret with the Nextcloud instance. This must be 16 or 32 characters.

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

Usage

tba

Getting Started

How To Use The Ready-Made Image

FreeBSD 14.0:
pot import -p nextcloud-spreed-signalling-amd64-14_0 -t 0.0.1 -U https://potluck.honeyguide.net/nextcloud-spreed-signalling

With Signify Verification:
fetch https://potluck.honeyguide.net/potluck.pub; pot import -p nextcloud-spreed-signalling-amd64-14_0 -t 0.0.1 -C potluck.pub -U https://potluck.honeyguide.net/nextcloud-spreed-signalling

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 nextcloud-spreed-signalling-amd64-14_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/nextcloud-spreed-signalling 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. 14.0) 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

  • Initial commit

These images were built on Thu May 2 20:23:09 UTC 2024

Manual Image Download Links

nextcloud-spreed-signalling-amd64-14_0_0.0.1.xz ( )
nextcloud-spreed-signalling-amd64-14_0_0.0.1.xz.skein ( ) nextcloud-spreed-signalling-amd64-14_0_0.0.1.xz.skein.sig ( ) nextcloud-spreed-signalling-amd64-14_0_0.0.1.xz.meta ( )

Jenkins Pot Creation Logs

nextcloud-spreed-signalling-amd64-14_0_0.0.1:


nextcloud-spreed-signalling/nextcloud-spreed-signalling:
copy-in -s /usr/local/etc/pot/flavours/nextcloud-spreed-signalling.d/local -d /root/.pot_local
nextcloud-spreed-signalling/nextcloud-spreed-signalling.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=$(("$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
# only modify repo if not already done in base image
# 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"
# shellcheck disable=SC2015
sysrc -cq ifconfig_epair0b && sysrc -x ifconfig_epair0b || true

step "Disable sendmail"
service sendmail onedisable

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

# we need consul for consul agent
step "Install package consul"
pkg install -y consul

step "Install package openssl"
pkg install -y openssl

step "Install package sudo"
pkg install -y sudo

# necessary if installing curl now
step "Install package ca_root_nss"
pkg install -y ca_root_nss

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 nano"
pkg install -y nano

step "Install package bash"
pkg install -y bash

step "Install package rsync"
pkg install -y rsync

step "Install package acme.sh"
pkg install -y acme.sh

step "Install package node_exporter"
pkg install -y node_exporter

step "Install package nginx"
pkg install -y nginx

step "Install package nextcloud-spreed-signaling"
pkg install -y nextcloud-spreed-signaling

step "Install package nats-server"
pkg install -y nats-server

step "Install package janus"
pkg install -y janus

step "Install package rabbitmq"
pkg install -y rabbitmq

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

step "Clean package installation"
pkg clean -y

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

#
# 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
#

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

step "Clean cook artifacts"
rm -rf /usr/local/bin/cook /usr/local/share/cook

step "Install pot local"
tar -C /root/.pot_local -cf - . | tar -C /usr/local -xf -
rm -rf /root/.pot_local

step "Set file ownership on cook scripts"
chown -R root:wheel /usr/local/bin/cook /usr/local/share/cook
chmod 755 /usr/local/share/cook/bin/*

# ----------------- 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

# shellcheck disable=SC2016
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

nextcloud-spreed-signalling/nextcloud-spreed-signalling+1:
nextcloud-spreed-signalling/nextcloud-spreed-signalling+1.sh:

nextcloud-spreed-signalling/nextcloud-spreed-signalling+2:
nextcloud-spreed-signalling/nextcloud-spreed-signalling+2.sh:

nextcloud-spreed-signalling/nextcloud-spreed-signalling+3:
nextcloud-spreed-signalling/nextcloud-spreed-signalling+3.sh:

nextcloud-spreed-signalling/nextcloud-spreed-signalling+4:
nextcloud-spreed-signalling/nextcloud-spreed-signalling+4.sh:
=====>  Create conf dir (/mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/conf)
=====>  Cloning freebsd-potluck-amd64-14_0_0_0_23 with snap 
=====>  clone zroot/srv/pot/jails/freebsd-potluck-amd64-14_0_0_0_23/m@1713115286 into zroot/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m
=====>  Flavour: fbsd-update
=====>  Starting nextcloud-spreed-signalling-amd64-14_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot nextcloud-spreed-signalling-amd64-14_0
=====>  Pot nextcloud-spreed-signalling-amd64-14_0 jail params are: allow.set_hostname=false allow.raw_sockets allow.socket_af allow.chflags exec.clean mount.devfs enforce_statfs=2 sysvshm=new sysvsem=new sysvmsg=new children.max=0 devfs_ruleset=4 stop.timeout=10 name=nextcloud-spreed-signalling-amd64-14_0 host.hostname=nextcloud-spreed-signalling-amd64-14_0 osrelease=14.0-RELEASE-p6 path=/mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m persist vnet vnet.interface=epair0b
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet 127.0.0.1 netmask 0xff000000
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:5e:30:cd:32:0b
	inet 10.192.0.3 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
Clearing /tmp (X related).
Updating /var/run/os-release done.
Creating and/or trimming log files.
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting cron.

Thu May  2 20:18:40 UTC 2024
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on nextcloud-spreed-signalling-amd64-14_0
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 14.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 14.0-RELEASE-p6.
No updates are available to install.
=====>  Stop the pot nextcloud-spreed-signalling-amd64-14_0
=====>  Remove p46633f51ee967 epair network interfaces
=====>  unmount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/dev
=====>  Flavour: nextcloud-spreed-signalling
=====>  Executing nextcloud-spreed-signalling pot commands on nextcloud-spreed-signalling-amd64-14_0
=====>  mount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/nextcloud-spreed-signalling.d/local copied in the pot nextcloud-spreed-signalling-amd64-14_0
=====>  unmount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
=====>  /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/dev is already unmounted
=====>  Starting nextcloud-spreed-signalling-amd64-14_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot nextcloud-spreed-signalling-amd64-14_0
=====>  Pot nextcloud-spreed-signalling-amd64-14_0 jail params are: allow.set_hostname=false allow.raw_sockets allow.socket_af allow.chflags exec.clean mount.devfs enforce_statfs=2 sysvshm=new sysvsem=new sysvmsg=new children.max=0 devfs_ruleset=4 stop.timeout=10 name=nextcloud-spreed-signalling-amd64-14_0 host.hostname=nextcloud-spreed-signalling-amd64-14_0 osrelease=14.0-RELEASE-p6 path=/mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m persist vnet vnet.interface=epair0b
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet 127.0.0.1 netmask 0xff000000
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:5b:e7:1f:e8:0b
	inet 10.192.0.3 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
Clearing /tmp (X related).
Updating /var/run/os-release done.
Creating and/or trimming log files.
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting cron.

Thu May  2 20:19:13 UTC 2024
/usr/local/etc/pot/flavours/nextcloud-spreed-signalling.sh -> /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp/nextcloud-spreed-signalling.sh
=====>  Executing nextcloud-spreed-signalling script on nextcloud-spreed-signalling-amd64-14_0
WARNING /var/log/cook.log already exists
Step 1: Bootstrap package repo
pkg already bootstrapped at /usr/local/sbin/pkg
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: Create /usr/local/etc/rc.d
Step 6: Install package consul
Updating FreeBSD repository catalogue...
[nextcloud-spreed-signalling-amd64-14_0] Fetching data.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 34061 packages processed.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	pkg: 1.21.1 -> 1.21.2

Number of packages to be upgraded: 1

12 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching pkg-1.21.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Upgrading pkg from 1.21.1 to 1.21.2...
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting pkg-1.21.2: .......... done
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:
	consul: 1.18.1_1

Number of packages to be installed: 1

The process will require 121 MiB more space.
24 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching consul-1.18.1_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Installing consul-1.18.1_1...
===> Creating groups.
Creating group 'consul' with gid '469'.
===> Creating users
Creating user 'consul' with uid '469'.
===> Creating homedir(s)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting consul-1.18.1_1: ..... done
Step 7: Install package openssl
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):

Installed packages to be UPGRADED:
	openssl: 3.0.13_2,1 -> 3.0.13_3,1

Number of packages to be upgraded: 1

6 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching openssl-3.0.13_3,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Upgrading openssl from 3.0.13_2,1 to 3.0.13_3,1...
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting openssl-3.0.13_3,1: .......... done
Step 8: Install package sudo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 9: Install package ca_root_nss
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 10: Install package curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 11: Install package jq
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 12: Install package jo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 13: Install package nano
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 14: Install package bash
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 15: Install package rsync
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):

Installed packages to be UPGRADED:
	rsync: 3.2.7_1 -> 3.3.0

Number of packages to be upgraded: 1

396 KiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching rsync-3.3.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Upgrading rsync from 3.2.7_1 to 3.3.0...
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting rsync-3.3.0: .......... done
Step 16: Install package acme.sh
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:
	acme.sh: 3.0.7_1
	socat: 1.8.0.0_3

Number of packages to be installed: 2

The process will require 2 MiB more space.
423 KiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Fetching acme.sh-3.0.7_1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Fetching socat-1.8.0.0_3.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Installing socat-1.8.0.0_3...
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Extracting socat-1.8.0.0_3: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Installing acme.sh-3.0.7_1...
===> Creating groups.
Creating group 'acme' with gid '169'.
===> Creating users
Creating user 'acme' with uid '169'.
===> Creating homedir(s)
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Extracting acme.sh-3.0.7_1: .......... done
=====
Message from acme.sh-3.0.7_1:

--
This script will create the following directories if they do not exist:

 ~acme/.acme.sh
 ~acme/certs

The script will also install ~acme/.acme.sh/account.conf.sample which has
sane defaults.  Copy this to ~acme/.acme.sh/account.conf and edit contents
to suit.

If you have EXAMPLES on:

* In the /usr/local/share/examples/acme.sh directory, you can find the dnsapi 
  scripts which will be useful if you decide to use dns-01 challenges. Also 
  included are the deploy scripts.

* A newsyslog.conf sample file is installed at 
  /usr/local/etc/newsyslog.conf.d/acme.sh.conf - you must modify it by
  at least uncommenting the line.

* If you run `newsyslog -NC` it will create the required logfiles.

* Please review /usr/local/share/examples/acme.sh/acme.sh-cron.d - instructions are
  contained in that file.
Step 17: Install package node_exporter
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:
	node_exporter: 1.6.1_4

Number of packages to be installed: 1

The process will require 11 MiB more space.
4 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching node_exporter-1.6.1_4.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Installing node_exporter-1.6.1_4...
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting node_exporter-1.6.1_4: .......... done
=====
Message from node_exporter-1.6.1_4:

--
If upgrading from a version of node_exporter <0.15.0 you'll need to update any
custom command line flags that you may have set as it now requires a
double-dash (--flag) instead of a single dash (-flag).
The collector flags in 0.15.0 have now been replaced with individual boolean
flags and the -collector.procfs` and -collector.sysfs` flags have been renamed
to --path.procfs and --path.sysfs respectively.
Step 18: 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.24.0_16,3
	pcre2: 10.43

Number of packages to be installed: 2

The process will require 9 MiB more space.
2 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Fetching nginx-1.24.0_16,3.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Fetching pcre2-10.43.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Installing pcre2-10.43...
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Extracting pcre2-10.43: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Installing nginx-1.24.0_16,3...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Extracting nginx-1.24.0_16,3: .......... done
=====
Message from nginx-1.24.0_16,3:

--
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 19: Install package nextcloud-spreed-signaling
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:
	nextcloud-spreed-signaling: 1.1.3_5

Number of packages to be installed: 1

The process will require 35 MiB more space.
10 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching nextcloud-spreed-signaling-1.1.3_5.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Installing nextcloud-spreed-signaling-1.1.3_5...
===> Creating groups.
Creating group 'signaling' with gid '271'.
===> Creating users
Creating user 'signaling' with uid '271'.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting nextcloud-spreed-signaling-1.1.3_5: ......... done
Step 20: Install package nats-server
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:
	nats-server: 2.10.12_1

Number of packages to be installed: 1

The process will require 13 MiB more space.
4 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Fetching nats-server-2.10.12_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Installing nats-server-2.10.12_1...
===> Creating groups.
Creating group 'nats' with gid '305'.
===> Creating users
Creating user 'nats' with uid '305'.
[nextcloud-spreed-signalling-amd64-14_0] [1/1] Extracting nats-server-2.10.12_1: .......... done
Step 21: Install package janus
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 22 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	glib: 2.80.0,2
	gmp: 6.3.0
	gnutls: 3.8.5_1
	jansson: 2.14
	janus: 1.2.2
	libconfig: 1.7.3
	libffi: 3.4.4_1
	libmicrohttpd: 1.0.1
	libnice: 0.1.21_2
	libogg: 1.3.5,4
	libsrtp2: 2.6.0
	libtasn1: 4.19.0_1
	libusrsctp: 0.9.5.0
	libuv: 1.48.0
	libwebsockets: 4.3.3
	mpdecimal: 4.0.0
	nettle: 3.9.1
	opus: 1.5.1
	p11-kit: 0.25.3_1
	py39-packaging: 23.2
	python39: 3.9.18_2
	sofia-sip: 1.13.17

Number of packages to be installed: 22

The process will require 201 MiB more space.
42 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/22] Fetching p11-kit-0.25.3_1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/22] Fetching libsrtp2-2.6.0.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [3/22] Fetching mpdecimal-4.0.0.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [4/22] Fetching python39-3.9.18_2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [5/22] Fetching gnutls-3.8.5_1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [6/22] Fetching libmicrohttpd-1.0.1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [7/22] Fetching libuv-1.48.0.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [8/22] Fetching glib-2.80.0,2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [9/22] Fetching nettle-3.9.1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [10/22] Fetching opus-1.5.1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [11/22] Fetching libnice-0.1.21_2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [12/22] Fetching libffi-3.4.4_1.pkg: ......... done
[nextcloud-spreed-signalling-amd64-14_0] [13/22] Fetching py39-packaging-23.2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [14/22] Fetching gmp-6.3.0.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [15/22] Fetching sofia-sip-1.13.17.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [16/22] Fetching libusrsctp-0.9.5.0.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [17/22] Fetching libconfig-1.7.3.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [18/22] Fetching jansson-2.14.pkg: ..... done
[nextcloud-spreed-signalling-amd64-14_0] [19/22] Fetching janus-1.2.2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [20/22] Fetching libwebsockets-4.3.3.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [21/22] Fetching libtasn1-4.19.0_1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [22/22] Fetching libogg-1.3.5,4.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/22] Installing mpdecimal-4.0.0...
[nextcloud-spreed-signalling-amd64-14_0] [1/22] Extracting mpdecimal-4.0.0: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/22] Installing libffi-3.4.4_1...
[nextcloud-spreed-signalling-amd64-14_0] [2/22] Extracting libffi-3.4.4_1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [3/22] Installing python39-3.9.18_2...
[nextcloud-spreed-signalling-amd64-14_0] [3/22] Extracting python39-3.9.18_2: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [4/22] Installing py39-packaging-23.2...
[nextcloud-spreed-signalling-amd64-14_0] [4/22] Extracting py39-packaging-23.2: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [5/22] Installing glib-2.80.0,2...
[nextcloud-spreed-signalling-amd64-14_0] [5/22] Extracting glib-2.80.0,2: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [6/22] Installing gmp-6.3.0...
[nextcloud-spreed-signalling-amd64-14_0] [6/22] Extracting gmp-6.3.0: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [7/22] Installing libtasn1-4.19.0_1...
[nextcloud-spreed-signalling-amd64-14_0] [7/22] Extracting libtasn1-4.19.0_1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [8/22] Installing p11-kit-0.25.3_1...
[nextcloud-spreed-signalling-amd64-14_0] [8/22] Extracting p11-kit-0.25.3_1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [9/22] Installing nettle-3.9.1...
[nextcloud-spreed-signalling-amd64-14_0] [9/22] Extracting nettle-3.9.1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [10/22] Installing gnutls-3.8.5_1...
[nextcloud-spreed-signalling-amd64-14_0] [10/22] Extracting gnutls-3.8.5_1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [11/22] Installing libuv-1.48.0...
[nextcloud-spreed-signalling-amd64-14_0] [11/22] Extracting libuv-1.48.0: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [12/22] Installing libsrtp2-2.6.0...
[nextcloud-spreed-signalling-amd64-14_0] [12/22] Extracting libsrtp2-2.6.0: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [13/22] Installing libmicrohttpd-1.0.1...
[nextcloud-spreed-signalling-amd64-14_0] [13/22] Extracting libmicrohttpd-1.0.1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [14/22] Installing opus-1.5.1...
[nextcloud-spreed-signalling-amd64-14_0] [14/22] Extracting opus-1.5.1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [15/22] Installing libnice-0.1.21_2...
[nextcloud-spreed-signalling-amd64-14_0] [15/22] Extracting libnice-0.1.21_2: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [16/22] Installing sofia-sip-1.13.17...
[nextcloud-spreed-signalling-amd64-14_0] [16/22] Extracting sofia-sip-1.13.17: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [17/22] Installing libusrsctp-0.9.5.0...
[nextcloud-spreed-signalling-amd64-14_0] [17/22] Extracting libusrsctp-0.9.5.0: ........ done
[nextcloud-spreed-signalling-amd64-14_0] [18/22] Installing libconfig-1.7.3...
[nextcloud-spreed-signalling-amd64-14_0] [18/22] Extracting libconfig-1.7.3: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [19/22] Installing jansson-2.14...
[nextcloud-spreed-signalling-amd64-14_0] [19/22] Extracting jansson-2.14: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [20/22] Installing libwebsockets-4.3.3...
[nextcloud-spreed-signalling-amd64-14_0] [20/22] Extracting libwebsockets-4.3.3: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [21/22] Installing libogg-1.3.5,4...
[nextcloud-spreed-signalling-amd64-14_0] [21/22] Extracting libogg-1.3.5,4: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [22/22] Installing janus-1.2.2...
[nextcloud-spreed-signalling-amd64-14_0] [22/22] Extracting janus-1.2.2: .......... done
==> Running trigger: gio-modules.ucl
Generating GIO modules cache
==> Running trigger: glib-schemas.ucl
Compiling glib schemas
No schema files found: doing nothing.
=====
Message from python39-3.9.18_2:

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

py39-gdbm       databases/py-gdbm@py39
py39-sqlite3    databases/py-sqlite3@py39
py39-tkinter    x11-toolkits/py-tkinter@py39
=====
Message from libwebsockets-4.3.3:

--
===>   NOTICE:

The libwebsockets port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from janus-1.2.2:

--
You must set ws_ip and/or wss_ip in janus.transport.websockets.jcfg
to IPv4 addresses if you need ipv4 for websockets.
Step 22: Install package rabbitmq
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:
	erlang-runtime26: 26.2.3
	rabbitmq: 3.12.13

Number of packages to be installed: 2

The process will require 129 MiB more space.
54 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Fetching rabbitmq-3.12.13.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Fetching erlang-runtime26-26.2.3.pkg: .......... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Installing erlang-runtime26-26.2.3...
[nextcloud-spreed-signalling-amd64-14_0] [1/2] Extracting erlang-runtime26-26.2.3: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Installing rabbitmq-3.12.13...
===> Creating groups.
Creating group 'rabbitmq' with gid '135'.
===> Creating users
Creating user 'rabbitmq' with uid '135'.
===> Creating homedir(s)
[nextcloud-spreed-signalling-amd64-14_0] [2/2] Extracting rabbitmq-3.12.13: .......... done
=====
Message from erlang-runtime26-26.2.3:

--
To use this runtime port for development or testing, just prepend
its binary path ("/usr/local/lib/erlang26/bin") to your PATH variable.
Step 23: Install package syslog-ng
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:
	e2fsprogs-libuuid: 1.47.0
	ivykis: 0.43_1
	json-c: 0.17
	syslog-ng: 4.6.0_2

Number of packages to be installed: 4

The process will require 5 MiB more space.
1 MiB to be downloaded.
[nextcloud-spreed-signalling-amd64-14_0] [1/4] Fetching ivykis-0.43_1.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/4] Fetching syslog-ng-4.6.0_2.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [3/4] Fetching json-c-0.17.pkg: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [4/4] Fetching e2fsprogs-libuuid-1.47.0.pkg: ...... done
Checking integrity... done (0 conflicting)
[nextcloud-spreed-signalling-amd64-14_0] [1/4] Installing ivykis-0.43_1...
[nextcloud-spreed-signalling-amd64-14_0] [1/4] Extracting ivykis-0.43_1: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [2/4] Installing json-c-0.17...
[nextcloud-spreed-signalling-amd64-14_0] [2/4] Extracting json-c-0.17: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [3/4] Installing e2fsprogs-libuuid-1.47.0...
[nextcloud-spreed-signalling-amd64-14_0] [3/4] Extracting e2fsprogs-libuuid-1.47.0: .......... done
[nextcloud-spreed-signalling-amd64-14_0] [4/4] Installing syslog-ng-4.6.0_2...
[nextcloud-spreed-signalling-amd64-14_0] [4/4] Extracting syslog-ng-4.6.0_2: .......... done
=====
Message from syslog-ng-4.6.0_2:

--
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 24: Clean package installation
The following package files will be deleted:
	/var/cache/pkg/rsync-3.2.7_1.pkg
	/var/cache/pkg/openssl-3.0.13_2,1.pkg
	/var/cache/pkg/openssl-3.0.13_2,1~9d9aca70ca.pkg
	/var/cache/pkg/rsync-3.2.7_1~e96c1450e7.pkg
The cleanup will free 7 MiB
Deleting files: .... done
Step 25: Clean cook artifacts
Step 26: Install pot local
Step 27: Set file ownership on cook scripts
Step 28: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 29: Create rc.d script to start cook
creating rc.d script to start cook
Step 30: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 31: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot nextcloud-spreed-signalling-amd64-14_0
=====>  Remove p46633f540e967 epair network interfaces
=====>  unmount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/nextcloud-spreed-signalling-amd64-14_0/m/dev
===>  exporting nextcloud-spreed-signalling-amd64-14_0 @ 1714681264 to /tmp/nextcloud-spreed-signalling-amd64-14_0_0.0.1.xz

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