mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-06 20:38:19 +02:00
tools/ci-install.sh: Add FreeBSD support
This adds support for installing the required packages on FreeBSD.
This commit is contained in:
parent
295912045e
commit
ca091e78d3
1 changed files with 30 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue