summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2022-05-25 20:51:29 +0000
committerSimon McVittie <smcv@collabora.com>2022-08-10 11:18:20 +0000
commitca091e78d346d9ef8bd9d8cc41ceb395fcdc21c0 (patch)
treef33c60dfe5cbbaed58e8db7b448c27386d1c5986 /tools
parent295912045e12b9ed436b3eb10e3147f22d79199b (diff)
downloaddbus-ca091e78d346d9ef8bd9d8cc41ceb395fcdc21c0.tar.gz
tools/ci-install.sh: Add FreeBSD support
This adds support for installing the required packages on FreeBSD.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci-install.sh30
1 files changed, 30 insertions, 0 deletions
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