diff options
author | Hugo Osvaldo Barrera | 2021-10-21 19:14:25 +0200 |
---|---|---|
committer | Hugo Osvaldo Barrera | 2021-10-21 19:14:25 +0200 |
commit | b5008b0f48d5aad5af18d9af829a03ec91292a23 (patch) | |
tree | 2cd2f6251cbc1082e1c9ea5493fbf37d1843382e | |
download | aur-b5008b0f48d5aad5af18d9af829a03ec91292a23.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | pacman-dropins.install | 11 |
4 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a274d009729c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = pacman-dropins + pkgdesc = Configure pacman to read drop-in conf files. + pkgver = 1.0.0 + pkgrel = 1 + url = https://aur.archlinux.org/packages/pacman-dropins/ + install = pacman-dropins.install + arch = any + license = ISC, + license = GPL + depends = pacman + +pkgname = pacman-dropins diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f34a96c51ab9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c58c2956238c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,15 @@ +# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io> +# +# This pseudo-package configures pacman to load additional configuration files +# from /etc/pacman/*.conf. This allows other packages to further configure +# pacman (including adding repositories) by simply adding drop-in files. + +pkgname=pacman-dropins +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Configure pacman to read drop-in conf files." +arch=('any') +url="https://aur.archlinux.org/packages/pacman-dropins/" +license=("ISC", "GPL") +depends=("pacman") +install="pacman-dropins.install" diff --git a/pacman-dropins.install b/pacman-dropins.install new file mode 100644 index 000000000000..f142b5aad1af --- /dev/null +++ b/pacman-dropins.install @@ -0,0 +1,11 @@ +#!/bin/sh + +post_install() { + # Configure pacman to load drop-in config files. + grep -qe 'Include = \/etc\/pacman.d\/\*.conf' etc/pacman.conf || \ + printf '[options]\nInclude = /etc/pacman.d/*.conf' >> etc/pacman.conf +} + +post_upgrade() { + post_install +} |