From: Alex Richardson Date: Wed, 25 May 2022 20:51:29 +0000 (+0000) Subject: tools/ci-install.sh: Add FreeBSD support X-Git-Tag: dbus-1.15.0~14^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca091e78d346d9ef8bd9d8cc41ceb395fcdc21c0;p=thirdparty%2Fdbus.git tools/ci-install.sh: Add FreeBSD support This adds support for installing the required packages on FreeBSD. --- diff --git a/tools/ci-install.sh b/tools/ci-install.sh index 790e7a931..c507ea3c1 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