summaryrefslogtreecommitdiff
path: root/config-parabola-base-openresolv.PKGBUILD
blob: 9bd86ce86ce9d59003d74b6b4f5211d2924ec2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
. ${BUILDFILE%/*}/common.sh
pkgver=20180826.1

package() {
preamble

# The [resolvconf][openresolv] program (used by netctl and other
# network managers) manages the /etc/resolv.conf file.  A few programs
# need to be made aware of this in order to play nice.
#
# [openresolv]: https://www.parabola.nu/packages/core/any/openresolv/
depends+=(openresolv)

# Instruct etckeeper to ignore it.
add-file -m755 etc/etckeeper/update-ignore.d/10resolvconf <<'_EOF_'
#!/bin/bash
cat >> .gitignore <<EOF
/resolv.conf
/resolv.conf.bak
EOF
_EOF_

# Instruct pacman to not try to update it.
depends+=(config-parabola-base-pacman)
add-file etc/pacman.d/resolvconf.conf <<'EOF'
[options]
NoExtract = etc/resolv.conf
EOF

postamble
}