mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
6b1aac3ccf
m4 was nice in '85, but the syntax feels a bit dated. Since we use python for
meson, let's use a popular python templating engine to replace some m4 usage.
A little nicety is that typos are caught:
FAILED: sysusers.d/systemd-remote.conf
/usr/bin/meson --internal exe --capture sysusers.d/systemd-remote.conf -- /home/zbyszek/src/systemd/tools/meson-render-jinja2.py config.h ../sysusers.d/systemd-remote.conf.j2
Traceback (most recent call last):
File "/home/zbyszek/src/systemd/tools/meson-render-jinja2.py", line 28, in <module>
print(render(sys.argv[2], defines))
File "/home/zbyszek/src/systemd/tools/meson-render-jinja2.py", line 24, in render
return template.render(defines)
File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/usr/lib/python3.9/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
jinja2.exceptions.UndefinedError: 'HAVE_MICROHTTP' is undefined
This checking mirrors what 349cc4a507
did for C defines.
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# The superuser
|
|
u root 0 "Super User" /root
|
|
|
|
# The nobody user for NFS file systems
|
|
u {{NOBODY_USER_NAME}} 65534 "Nobody" -
|
|
|
|
# Administrator group: can *see* more than normal users
|
|
g adm - - -
|
|
|
|
# Administrator group: can *do* more than normal users
|
|
g wheel - - -
|
|
|
|
# Access to certain kernel and userspace facilities
|
|
g kmem - - -
|
|
g tty {{TTY_GID}} - -
|
|
g utmp - - -
|
|
|
|
# Hardware access groups
|
|
g audio - - -
|
|
g cdrom - - -
|
|
g dialout - - -
|
|
g disk - - -
|
|
g input - - -
|
|
g kvm - - -
|
|
g lp - - -
|
|
g render - - -
|
|
g sgx - - -
|
|
g tape - - -
|
|
g video - - -
|
|
|
|
# Default group for normal users
|
|
g users {{USERS_GID}} - -
|