I will test it asap. I did adapt the Dockerfile as well, added core22 to it.
My yml file:
name: clever # you probably want to 'snapcraft register ’
base: core22 # the base snap is the execution environment for this snap
version: ‘master’ # just for humans, typically ‘1.2+git’ or ‘1.3.2’
summary: Clever PSI/SI generation
description: |
Linear broadcast services require Program Specific Information/System Information (PSI/SI) as an
essential part of the stream. Tuning information as well as Electronic Program Guide (EPG) can
be generated by the Dualz “CLEVER” PSI/SI Generator. The Dualz PSI/SI Generator conforms MPEG
and DVB standards. Generated tables include PAT, PMT, CAT, BAT, NIT, SDT, EIT pf/scheduled and more.
Dualz PSI/SI Generator imports data from several interfaces, from file (XML) or REST API interfaces
grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: devmode # use ‘strict’ once you have the right plugs and slots
parts:
clever:
plugin: dump
source: ./clever
stage-packages:
- openssl
#organize:
# ‘clever/CyclerManager/CyclerApp’: usr/bin/CyclerApp
install-hook:
plugin: dump
source: install-hook/
organize:
install-config: snap/hooks/install
zixi:
plugin: dump
source: ./zixi_linux.tar.gz
organize:
‘Linux/.so’ : usr/lib/
stage: [ usr/lib/libzixiFeeder.so, usr/lib/libzixiClient.so ]
locales-launch:
source: https://github.com/Lin-Buo-Ren/locales-launch.git
source-tag: v1.0.0
plugin: dump
stage-packages:
# For localedef(1)
- libc-bin
# For locale data used by localedef(1)
- locales
# All pre-generated locale data
# DISABLED: Lots of duplicate data will be included in snap when this is staged, unless the target machine has no resource to generate them in runtime otherwise not using it
#
# Lack of compiled locales breaks gettext based localisation - snapcraft - snapcraft.io
# Lack of compiled locales breaks gettext based localisation
#
# - locales-all
stage:
- bin/locales-launch
- etc/locale.alias
- usr/bin/localedef
- usr/share/doc/locales
- usr/share/i18n
- usr/share/locale
apps:
cleverengine:
command: CleverEngine/CleverEngine $SNAP_COMMON/cleverengine.conf
daemon: simple
plugs:
- network
- network-bind
cyclermanager:
command: CyclerManager/CyclerManager $SNAP_COMMON/cyclermanager.conf
daemon: simple
plugs:
- network
- network-bind
CyclerApp:
command: CyclerManager/CyclerApp
plugs:
- network
- network-bind
psisiinjector:
command-chain: [bin/locales-launch]
command: PSISIInjector/PSISIInjector $SNAP_COMMON/injector.conf
daemon: simple
plugs:
- network
- network-bind
epgparser:
command-chain: [bin/locales-launch]
command: EPGParser/EPGParser $SNAP_COMMON/epgparser.conf
daemon: simple
plugs:
- network
- network-bind
layout:
/var/log/clever:
bind: $SNAP_DATA/var/log/clever
/var/local/clever:
bind: $SNAP_DATA/var/local/clever
/var/tmp:
bind: $SNAP_DATA/var/tmp
I hope it is readable, not sure how to add code to comment…