From ca091e78d346d9ef8bd9d8cc41ceb395fcdc21c0 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 25 May 2022 20:51:29 +0000 Subject: tools/ci-install.sh: Add FreeBSD support This adds support for installing the required packages on FreeBSD. --- tools/ci-install.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'tools') diff --git a/tools/ci-install.sh b/tools/ci-install.sh index 790e7a93..c507ea3c 100755 --- a/tools/ci-install.sh +++ b/tools/ci-install.sh @@ -305,6 +305,28 @@ case "$ci_distro" in chmod 0440 /etc/sudoers.d/nopasswd fi ;; + + (freebsd*) + $sudo pkg update + $sudo pkg upgrade -y + packages=( + autoconf + autoconf-archive + automake + bash + cmake + docbook-xml + docbook-xsl + expat + glib + git + libtool + libX11 + libxslt + xmlto + ) + $sudo pkg install -y "${packages[@]}" + ;; esac # @@ -324,6 +346,14 @@ case "$ci_distro" in $sudo getent group bin >/dev/null || /usr/sbin/groupadd -r bin ;; + (freebsd*) + + # Make sure we have a messagebus user, even if the dbus package + # isn't installed (using the same UID/GID as the dbus package). + pw groupshow messagebus || $sudo pw groupadd -n messagebus -g 556 + pw usershow messagebus || $sudo pw useradd -n messagebus -u 556 -c "D-BUS Daemon User" -d /nonexistent -s /usr/sbin/nologin -g 556 + ;; + (*) echo "Don't know how to set up ${ci_distro}" >&2 exit 1 -- cgit v1.2.1