]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
tools/ci-install.sh: Add FreeBSD support
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 25 May 2022 20:51:29 +0000 (20:51 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
This adds support for installing the required packages on FreeBSD.

tools/ci-install.sh

index 790e7a9316e7af01039c36794a5ba3f055ab4a7a..c507ea3c14ce4eae15e481a0bc6d0720614034c7 100755 (executable)
@@ -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