summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 17:29:12 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 17:32:32 -0500
commitc998f5d95faa290c5d88a53d8c1b477e9baa69a8 (patch)
tree2d7c7eaf144a6230dba17ca2283f6f537a06aabc
parent55acf6b05107a9277a27a6c7045776feba2ff8d7 (diff)
Add config-mgmt-pacman to have pacman.conf include pacman.d/*.conf
-rw-r--r--config-mgmt-pacman.PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/config-mgmt-pacman.PKGBUILD b/config-mgmt-pacman.PKGBUILD
new file mode 100644
index 0000000..a815d45
--- /dev/null
+++ b/config-mgmt-pacman.PKGBUILD
@@ -0,0 +1,23 @@
+. ${BUILDFILE%/*}/common.sh
+pkgver=20170131
+
+depends=(pacman)
+
+package() {
+preamble
+# #### pacman
+
+# In order for configuration sets to modularly adjust the pacman
+# configuration, we patch `/etc/pacman.conf` to include
+# `/etc/pacman.d/*.conf`.
+add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/pacman.conf.holoscript <<EOF
+#!/bin/sh
+{
+ grep -vxF 'Include = /etc/pacman.d/*.conf'
+ echo
+ echo 'Include = /etc/pacman.d/*.conf'
+} | cat -s
+EOF
+
+postamble
+}