parent
12166e1929
commit
d3400e6e35
@ -22,13 +22,13 @@ o_rpm_macros = open('.file-list-rpm-macros', 'w')
|
|||||||
o_devel = open('.file-list-devel', 'w')
|
o_devel = open('.file-list-devel', 'w')
|
||||||
o_container = open('.file-list-container', 'w')
|
o_container = open('.file-list-container', 'w')
|
||||||
o_networkd = open('.file-list-networkd', 'w')
|
o_networkd = open('.file-list-networkd', 'w')
|
||||||
o_resolved = open('.file-list-resolved', 'w')
|
|
||||||
o_oomd = open('.file-list-oomd', 'w')
|
o_oomd = open('.file-list-oomd', 'w')
|
||||||
o_remote = open('.file-list-remote', 'w')
|
o_remote = open('.file-list-remote', 'w')
|
||||||
|
o_resolve = open('.file-list-resolve', 'w')
|
||||||
o_tests = open('.file-list-tests', 'w')
|
o_tests = open('.file-list-tests', 'w')
|
||||||
o_standalone_tmpfiles = open('.file-list-standalone-tmpfiles', 'w')
|
o_standalone_tmpfiles = open('.file-list-standalone-tmpfiles', 'w')
|
||||||
o_standalone_sysusers = open('.file-list-standalone-sysusers', 'w')
|
o_standalone_sysusers = open('.file-list-standalone-sysusers', 'w')
|
||||||
o_rest = open('.file-list-rest', 'w')
|
o_main = open('.file-list-main', 'w')
|
||||||
for file in files(buildroot):
|
for file in files(buildroot):
|
||||||
n = file.path[1:]
|
n = file.path[1:]
|
||||||
if re.match(r'''/usr/(share|include)$|
|
if re.match(r'''/usr/(share|include)$|
|
||||||
@ -58,7 +58,11 @@ for file in files(buildroot):
|
|||||||
o = o_rpm_macros
|
o = o_rpm_macros
|
||||||
elif '/usr/lib/systemd/tests' in n:
|
elif '/usr/lib/systemd/tests' in n:
|
||||||
o = o_tests
|
o = o_tests
|
||||||
elif re.search(r'/lib.*\.pc|/man3/|/usr/include|(?<!/libsystemd-shared-...).so$', n):
|
elif re.search(r'/libsystemd-(shared|core)-.*\.so$', n):
|
||||||
|
o = o_main
|
||||||
|
elif re.search(r'/libcryptsetup-token-systemd-.*\.so$', n):
|
||||||
|
o = o_udev
|
||||||
|
elif re.search(r'/lib.*\.pc|/man3/|/usr/include|\.so$', n):
|
||||||
o = o_devel
|
o = o_devel
|
||||||
elif re.search(r'''journal-(remote|gateway|upload)|
|
elif re.search(r'''journal-(remote|gateway|upload)|
|
||||||
systemd-remote\.conf|
|
systemd-remote\.conf|
|
||||||
@ -66,6 +70,7 @@ for file in files(buildroot):
|
|||||||
/var/log/journal/remote
|
/var/log/journal/remote
|
||||||
''', n, re.X):
|
''', n, re.X):
|
||||||
o = o_remote
|
o = o_remote
|
||||||
|
|
||||||
elif re.search(r'''mymachines|
|
elif re.search(r'''mymachines|
|
||||||
machinectl|
|
machinectl|
|
||||||
systemd-nspawn|
|
systemd-nspawn|
|
||||||
@ -77,25 +82,25 @@ for file in files(buildroot):
|
|||||||
org.freedesktop.(import|machine)1
|
org.freedesktop.(import|machine)1
|
||||||
''', n, re.X):
|
''', n, re.X):
|
||||||
o = o_container
|
o = o_container
|
||||||
|
|
||||||
elif re.search(r'''/usr/lib/systemd/network/80-|
|
elif re.search(r'''/usr/lib/systemd/network/80-|
|
||||||
networkd|
|
networkd|
|
||||||
networkctl|
|
networkctl|
|
||||||
org.freedesktop.network1
|
org.freedesktop.network1|
|
||||||
|
sysusers\.d/systemd-network.conf|
|
||||||
|
tmpfiles\.d/systemd-network.conf|
|
||||||
|
systemd\.network|
|
||||||
|
systemd\.netdev
|
||||||
''', n, re.X):
|
''', n, re.X):
|
||||||
o = o_networkd
|
o = o_networkd
|
||||||
elif re.search(r'''resolved|
|
|
||||||
resolvectl|
|
|
||||||
resolvconf|
|
|
||||||
org.freedesktop.resolve1|
|
|
||||||
systemd-resolve|
|
|
||||||
nss-resolve
|
|
||||||
''', n, re.X):
|
|
||||||
o = o_resolved
|
|
||||||
elif '.so.' in n:
|
elif '.so.' in n:
|
||||||
o = o_libs
|
o = o_libs
|
||||||
|
|
||||||
elif re.search(r'''udev(?!\.pc)|
|
elif re.search(r'''udev(?!\.pc)|
|
||||||
hwdb|
|
hwdb|
|
||||||
bootctl|
|
bootctl|
|
||||||
|
boot-update|
|
||||||
sd-boot|systemd-boot\.|loader.conf|
|
sd-boot|systemd-boot\.|loader.conf|
|
||||||
bless-boot|
|
bless-boot|
|
||||||
boot-system-token|
|
boot-system-token|
|
||||||
@ -106,6 +111,7 @@ for file in files(buildroot):
|
|||||||
random-seed|
|
random-seed|
|
||||||
modules-load|
|
modules-load|
|
||||||
timesync|
|
timesync|
|
||||||
|
crypttab|
|
||||||
cryptenroll|
|
cryptenroll|
|
||||||
cryptsetup|
|
cryptsetup|
|
||||||
kmod|
|
kmod|
|
||||||
@ -119,15 +125,37 @@ for file in files(buildroot):
|
|||||||
repart|
|
repart|
|
||||||
gpt-auto|
|
gpt-auto|
|
||||||
volatile-root|
|
volatile-root|
|
||||||
verity-setup|
|
veritysetup|
|
||||||
|
integritysetup|
|
||||||
|
integritytab|
|
||||||
remount-fs|
|
remount-fs|
|
||||||
|
/initrd|
|
||||||
|
systemd-pcrphase|
|
||||||
|
systemd-measure|
|
||||||
/boot$|
|
/boot$|
|
||||||
/boot/efi|
|
/boot/efi|
|
||||||
/kernel/|
|
/kernel/|
|
||||||
/kernel$|
|
/kernel$|
|
||||||
/modprobe.d
|
/modprobe.d|
|
||||||
''', n, re.X):
|
binfmt|
|
||||||
|
sysctl|
|
||||||
|
coredump|
|
||||||
|
homed|home1|
|
||||||
|
portabled|portable1
|
||||||
|
''', n, re.X): # coredumpctl, homectl, portablectl are included in the main package because
|
||||||
|
# they can be used to interact with remote daemons. Also, the user could be
|
||||||
|
# confused if those user-facing binaries are not available.
|
||||||
o = o_udev
|
o = o_udev
|
||||||
|
|
||||||
|
elif re.search(r'''resolved|resolve1|
|
||||||
|
resolvectl|
|
||||||
|
systemd-resolve|
|
||||||
|
resolvconf|
|
||||||
|
systemd\.(positive|negative)|
|
||||||
|
nss-resolve
|
||||||
|
''', n, re.X): # resolvectl and nss-resolve are in the main package.
|
||||||
|
o = o_resolve
|
||||||
|
|
||||||
elif re.search(r'''10-oomd-.*defaults\.conf|
|
elif re.search(r'''10-oomd-.*defaults\.conf|
|
||||||
oomd\.conf|
|
oomd\.conf|
|
||||||
oomctl|
|
oomctl|
|
||||||
@ -135,6 +163,7 @@ for file in files(buildroot):
|
|||||||
systemd-oomd
|
systemd-oomd
|
||||||
''', n, re.X):
|
''', n, re.X):
|
||||||
o = o_oomd
|
o = o_oomd
|
||||||
|
|
||||||
elif n.endswith('.standalone'):
|
elif n.endswith('.standalone'):
|
||||||
if 'tmpfiles' in n:
|
if 'tmpfiles' in n:
|
||||||
o = o_standalone_tmpfiles
|
o = o_standalone_tmpfiles
|
||||||
@ -142,8 +171,9 @@ for file in files(buildroot):
|
|||||||
o = o_standalone_sysusers
|
o = o_standalone_sysusers
|
||||||
else:
|
else:
|
||||||
assert False, 'Found .standalone not belonging to known packages'
|
assert False, 'Found .standalone not belonging to known packages'
|
||||||
|
|
||||||
else:
|
else:
|
||||||
o = o_rest
|
o = o_main
|
||||||
|
|
||||||
if n in known_files:
|
if n in known_files:
|
||||||
prefix = ' '.join(known_files[n].split()[:-1])
|
prefix = ' '.join(known_files[n].split()[:-1])
|
||||||
|
@ -948,7 +948,7 @@ getent passwd systemd-oom &>/dev/null || useradd -r -l -g systemd-oom -d / -s /s
|
|||||||
|
|
||||||
%global _docdir_fmt %{name}
|
%global _docdir_fmt %{name}
|
||||||
|
|
||||||
%files -f %{name}.lang -f .file-list-rest
|
%files -f %{name}.lang -f .file-list-main
|
||||||
%doc %{_pkgdocdir}
|
%doc %{_pkgdocdir}
|
||||||
%exclude %{_pkgdocdir}/LICENSE.*
|
%exclude %{_pkgdocdir}/LICENSE.*
|
||||||
%license LICENSE.GPL2 LICENSE.LGPL2.1
|
%license LICENSE.GPL2 LICENSE.LGPL2.1
|
||||||
@ -984,7 +984,7 @@ getent passwd systemd-oom &>/dev/null || useradd -r -l -g systemd-oom -d / -s /s
|
|||||||
|
|
||||||
%files journal-remote -f .file-list-remote
|
%files journal-remote -f .file-list-remote
|
||||||
|
|
||||||
%files resolved -f .file-list-resolved
|
%files resolved -f .file-list-resolve
|
||||||
|
|
||||||
%files oomd -f .file-list-oomd
|
%files oomd -f .file-list-oomd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user