bundles/pacman: manage pacman.conf
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-07-30 14:27:30 +02:00
parent 9a3d78c38b
commit 9f8878ae8f
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,39 @@
[options]
Architecture = auto
CheckSpace
Color
HoldPkg = ${' '.join(sorted(node.metadata.get('pacman/ask_before_removal')))}
ILoveCandy
IgnorePkg = ${' '.join(sorted(node.metadata.get('pacman/ignore_packages', set())))}
LocalFileSigLevel = Optional
ParallelDownloads = ${node.metadata.get('pacman/parallel_downloads')}
SigLevel = Required DatabaseOptional
VerbosePkgLists
% for line in sorted(node.metadata.get('pacman/additional_config', set())):
${line}
% endfor
[core]
Server = ${node.metadata.get('pacman/repository')}
Include = /etc/pacman.d/mirrorlist
[extra]
Server = ${node.metadata.get('pacman/repository')}
Include = /etc/pacman.d/mirrorlist
[community]
Server = ${node.metadata.get('pacman/repository')}
Include = /etc/pacman.d/mirrorlist
% if node.metadata.get('pacman/enable_multilib', False):
[multilib]
Server = ${node.metadata.get('pacman/repository')}
Include = /etc/pacman.d/mirrorlist
% endif
% if node.metadata.get('pacman/enable_aurto', True):
[aurto]
Server = https://aurto.kunbox.net/
SigLevel = Optional TrustAll
% endif

View file

@ -3,6 +3,12 @@ from bundlewrap.exceptions import BundleError
if not node.os == 'arch': if not node.os == 'arch':
raise BundleError(f'{node.name}: bundle:pacman requires arch linux') raise BundleError(f'{node.name}: bundle:pacman requires arch linux')
files = {
'/etc/pacman.conf': {
'content_type': 'mako',
},
}
# This is more targeted to GUI systems. This is intentional. # This is more targeted to GUI systems. This is intentional.
pkg_pacman = { pkg_pacman = {

View file

@ -0,0 +1,10 @@
defaults = {
'pacman': {
'ask_before_removal': {
'glibc',
'pacman',
},
'parallel_downloads': 4,
'repository': 'http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch',
},
}

View file

@ -45,6 +45,12 @@ nodes['aurto'] = {
}, },
}, },
}, },
'pacman': {
'enable_aurto': False,
'additional_config': {
'Include = /etc/pacman.d/aurto',
},
},
'sudo': { 'sudo': {
'extra_configs': { 'extra_configs': {
'50_aurto_passwordless': { '50_aurto_passwordless': {