2 --------------------------------------------------------------------------------
3 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
5 -- Set the comment character of m4 to ; instead of #
6 -- This is needed for substitution within lines starting with #
9 ;-------------------------------------------------------------------------------
16 ; ON_AGL_DEVEL(DEVEL, RELEASE)
20 ; Configure how installation of widget produces unit files for systemd
22 ; Processing and format:
26 ; Lines beginning with ; are firstly removed
28 ; 2. File instantiation
30 ; Mustache (extended) substitutions are applied using JSON
31 ; data deduced from config.xml file of the widget.
33 ; 3. Extraction of units
35 ; Extract produced units, pack it (remove empty lines and directives)
39 ; Any directive occupy one whole line starting with %
43 ; produce an empty line at the end
45 ; - %begin systemd-unit
48 ; delimit the produced unit
50 ; - %systemd-unit user
51 ; - %systemd-unit system
53 ; tells the kind of unit (user/system)
55 ; - %systemd-unit service NAME
56 ; - %systemd-unit socket NAME
58 ; gives the name and type of the unit
60 ; - %systemd-unit wanted-by NAME
62 ; tells to install a link to unit in the wants of NAME
66 ; AFM uses the feature of systemd that completely ignores options prefixed
69 ; Consequently, options starting with X-AFM- are recorded as public data
70 ; about the application and options starting starting with X-AFM-- are
71 ; recorded as private data.
75 ; X-AFM-description={{description}}
77 ; Records the description of the unit in the field "description"
78 ; of both the public and private object describing the unit.
80 ; X-AFM--wgtdir={{:#metadata.install-dir}}
82 ; Records the installation directory path in the field "wgtdir"
83 ; of the private object only.
85 ;-------------------------------------------------------------------------------
86 ;---- F O R E A C H T A R G E T ----
87 ;-------------------------------------------------------------------------------
89 ;-------------------------------------------------------------------------------
91 IF_PERM(:partner:scope-platform)
92 ;-------------------------------------------------------------------------------
93 ;---- F O R E A C H P R O V I D E D A P I S (PLATFORM) ----
94 ;-------------------------------------------------------------------------------
97 include(provided-api-platform.inc)
100 ;-------------------------------------------------------------------------------
101 ;---- F O R E A C H P R O V I D E D B I N D I N G (PLATFORM) ----
102 ;-------------------------------------------------------------------------------
103 {{#provided-binding}}
104 include(provided-binding-platform.inc)
105 {{/provided-binding}}
106 ;-------------------------------------------------------------------------------
108 ;-------------------------------------------------------------------------------
109 ;---- F O R E A C H P R O V I D E D A P I S (USER) ----
110 ;-------------------------------------------------------------------------------
113 include(provided-api-user.inc)
116 ;-------------------------------------------------------------------------------
117 ;---- F O R E A C H P R O V I D E D B I N D I N G (USER) ----
118 ;-------------------------------------------------------------------------------
119 {{#provided-binding}}
120 include(provided-binding-user.inc)
121 {{/provided-binding}}
122 ;-------------------------------------------------------------------------------
125 ;-------------------------------------------------------------------------------
126 ; End of file afm-unit.conf mode ON_AGL_DEVEL(DEVEL, RELEASE)
127 ;-------------------------------------------------------------------------------