summaryrefslogtreecommitdiff
path: root/config-parabola-base-openresolv.PKGBUILD
blob: 7fb94c34e2cb0736915e1834cd53e80354b01831 (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
32
33
34
. ${BUILDFILE%/*}/common.sh
pkgver=20180918

package() {
preamble
pkgdesc="Parabola server configuration: Make openresolv play nice with configuration management"

# #### openresolv

# The [resolvconf][openresolv] program (used by netctl, dhcpcd, 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+=('pacman>=5.1.1-1.parabola5')
add-file etc/pacman.d/resolvconf.conf <<-'EOF'
	[options]
	NoExtract = etc/resolv.conf
	EOF

postamble
}