bundlewrap/bundles/kodi/metadata.py
Franziska Kunsmann 450fb3f87a
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/kodi: do not install libcec4
It's not available in bullseye (but libcec6), but we don't need it
anyway, because we're not using cec here.
2021-06-27 07:17:05 +02:00

55 lines
1.3 KiB
Python

from bundlewrap.metadata import atomic
defaults = {
'apt': {
'repos': {
'deb-multimedia': {
'items': {
'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release} main',
#'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release}-backports main',
},
},
},
'packages': {
'cec-utils': {},
'fonts-noto': {},
'fonts-roboto': {},
'kodi': {},
'kodi-inputstream-adaptive': {},
'libasound2': {},
'ttf-mscorefonts-installer': {},
'tv-fonts': {},
'xfonts-base': {},
'xinit': {},
'xserver-xorg': {},
'xserver-xorg-legacy': {},
},
},
'backups': {
'paths': {
'/home/kodi',
},
},
'users': {
'kodi': {
'groups': {
'audio',
'tty',
'video',
},
},
},
}
@metadata_reactor.provides(
'firewall/port_rules/8080',
)
def firewall(metadata):
return {
'firewall': {
'port_rules': {
'8080': atomic(metadata.get('kodi/restrict-to', {'*'})),
},
},
}