--- a/split-files.py 2024-11-18 16:00:00.000000000 -0800 +++ b/split-files.py 2024-12-10 13:17:10.000000000 -0800 @@ -70,6 +70,8 @@ 'oomd', 'remote', 'resolve', + 'networkd', + 'networkd-defaults', 'main', )} @@ -129,6 +131,24 @@ ''', n, re.X): o = outputs['container'] + # .network.example files go into systemd-networkd, and the matching files + # without .example go into systemd-networkd-defaults + elif (re.search(r'''/usr/lib/systemd/network/.*\.network$''', n) + and os.path.exists(f'./{n}.example')): + o = outputs['networkd-defaults'] + + elif re.search(r'''/usr/lib/systemd/network/.*\.network| + networkd| + networkctl| + org.freedesktop.network1| + sysusers\.d/systemd-network.conf| + tmpfiles\.d/systemd-network.conf| + systemd\.network| + systemd\.netdev + ''', n, re.X): + o = outputs['networkd'] + + elif '.so.' in n: o = outputs['libs']