bundlewrap/bundles/kodi/metadata.py
Franziska Kunsmann e36a352a42
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles: fix usage of set() vs {}
2021-04-04 10:34:55 +02:00

56 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': {},
'libcec4': {},
'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(
'iptables/port_rules/8080',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'8080': atomic(metadata.get('kodi/restrict-to', {'*'})),
},
},
}