[home] [writing] [links] [about]

adding systemd-resolved support to connman arch linux package.

03-09-2024
this is a quick guide to enable systemd-resolved support for connman package in arch.
because arch wiki being arch wiki, it RTFMed the reader with no futher explanation on how to actually rebuild this package.

prequesites

install a few packages before we start rebuilding. this are the required dependencies as per the PKGBUILD of connman package. devtools is required as well since it has the tools for rebuilding the package.

  sudo pacman -S bluez \
  iwd \
  openconnect \
  openvpn \
  ppp \
  wpa_supplicant \
  devtools

rebuilding the package

first, we need to get the source files of connman package

  pkgctl repo clone
  protocol=https connman

now, modify the PKGBUILD file to add --with-dns-backend=systemd-resolved option.

  cd connman
  vim PKGBUILD

add this line along with the option specified in the build() function's ./configure command.

  --with-dns-backend=systemd-resolved

write the changes and rebuild the package.

  makepkg

ps. if the makepkg fails due to pgp key not being verified, you can pass --skippgpcheck flag to the makepkg command.

thats it. :)