summaryrefslogtreecommitdiff
path: root/config-parabola-mgmt-resolved.PKGBUILD
blob: 68056dd57ccd1532a42a8692a65daea35fadbb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
. ${BUILDFILE%/*}/common.sh
pkgver=20210617

package() {
preamble
pkgdesc="Parabola server configuration: Use resolved"
conflicts+=(config-parabola-base-openresolv)

# Enable resolved
add-unit etc/systemd/system/multi-user.target.wants/systemd-resolved.service
ln -s /usr/lib/systemd/system/systemd-resolved.service etc/systemd/system/dbus-org.freedesktop.resolve1.service

# Configure DNS to use resolved
#
# 'filesystem' contains a conflicting resolv.conf, so use Holo to
# overwrite it.
mkdir -p usr/share/holo/files/10-"$pkgname"/etc
ln -s /run/systemd/resolve/stub-resolv.conf usr/share/holo/files/10-"$pkgname"/etc/resolv.conf

postamble
}