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',
|
2021-06-23 16:07:43 +00:00
|
|
|
#'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(
|
2021-06-03 11:59:15 +00:00
|
|
|
'firewall/port_rules/8080',
|
2021-03-21 18:10:49 +00:00
|
|
|
)
|
2021-06-03 11:59:15 +00:00
|
|
|
def firewall(metadata):
|
2021-03-21 18:10:49 +00:00
|
|
|
return {
|
2021-06-03 11:59:15 +00:00
|
|
|
'firewall': {
|
2021-03-21 18:10:49 +00:00
|
|
|
'port_rules': {
|
2021-04-04 08:34:55 +00:00
|
|
|
'8080': atomic(metadata.get('kodi/restrict-to', {'*'})),
|
2021-03-21 18:10:49 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|