bundles/pacman: manage pacman.conf
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
9a3d78c38b
commit
9f8878ae8f
4 changed files with 61 additions and 0 deletions
39
bundles/pacman/files/pacman.conf
Normal file
39
bundles/pacman/files/pacman.conf
Normal 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
|
|
@ -3,6 +3,12 @@ from bundlewrap.exceptions import BundleError
|
|||
if not node.os == 'arch':
|
||||
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.
|
||||
|
||||
pkg_pacman = {
|
||||
|
|
10
bundles/pacman/metadata.py
Normal file
10
bundles/pacman/metadata.py
Normal 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',
|
||||
},
|
||||
}
|
|
@ -45,6 +45,12 @@ nodes['aurto'] = {
|
|||
},
|
||||
},
|
||||
},
|
||||
'pacman': {
|
||||
'enable_aurto': False,
|
||||
'additional_config': {
|
||||
'Include = /etc/pacman.d/aurto',
|
||||
},
|
||||
},
|
||||
'sudo': {
|
||||
'extra_configs': {
|
||||
'50_aurto_passwordless': {
|
||||
|
|
Loading…
Reference in a new issue