summaryrefslogtreecommitdiff
path: root/config-parabola-base-openresolv.PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'config-parabola-base-openresolv.PKGBUILD')
-rw-r--r--config-parabola-base-openresolv.PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/config-parabola-base-openresolv.PKGBUILD b/config-parabola-base-openresolv.PKGBUILD
new file mode 100644
index 0000000..289f2a5
--- /dev/null
+++ b/config-parabola-base-openresolv.PKGBUILD
@@ -0,0 +1,31 @@
+. ${BUILDFILE%/*}/common.sh
+pkgver=20180826
+
+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-base-pacman)
+add-file etc/pacman.d/resolvconf.conf <<'EOF'
+[options]
+NoExtract = etc/resolv.conf
+EOF
+
+postamble
+}