2021-03-21 18:10:49 +00:00
|
|
|
from bundlewrap.metadata import atomic
|
|
|
|
|
2020-10-03 11:36:12 +00:00
|
|
|
defaults = {
|
|
|
|
'apt': {
|
2020-10-15 17:34:22 +00:00
|
|
|
'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-15 17:34:22 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
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': {},
|
2020-10-09 15:46:07 +00:00
|
|
|
'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',
|
2020-10-09 15:46:07 +00:00
|
|
|
'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('*'))),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|