bundlewrap/bundles/kodi/metadata.py

57 lines
1.3 KiB
Python
Raw Normal View History

2021-03-21 18:10:49 +00:00
from bundlewrap.metadata import atomic
2020-10-03 11:36:12 +00:00
defaults = {
'apt': {
'repos': {
'deb-multimedia': {
'items': {
2021-03-08 20:06:25 +00:00
'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',
},
},
},
2020-10-03 11:36:12 +00:00
'packages': {
'cec-utils': {},
'fonts-noto': {},
'fonts-roboto': {},
'kodi': {},
2021-03-08 20:06:25 +00:00
'kodi-inputstream-adaptive': {},
'libasound2': {},
2020-10-03 11:36:12 +00:00
'libcec4': {},
'ttf-mscorefonts-installer': {},
'tv-fonts': {},
'xfonts-base': {},
2020-10-03 16:36:48 +00:00
'xinit': {},
'xserver-xorg': {},
2020-10-03 11:36:12 +00:00
'xserver-xorg-legacy': {},
},
},
2020-11-13 11:37:26 +00:00
'backups': {
'paths': {
'/home/kodi',
},
},
2020-10-03 11:36:12 +00:00
'users': {
'kodi': {
'groups': {
'audio',
'tty',
'video',
2020-10-03 11:36:12 +00:00
},
},
},
}
2021-03-21 18:10:49 +00:00
@metadata_reactor.provides(
'iptables/port_rules/8080',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'8080': atomic(metadata.get('kodi/restrict-to', set('*'))),
},
},
}