X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=macros.systemd;h=52d598c5e6654601946b4de9d3c50de68b738810;hp=312078ccdf5830181e524946235c8320912b7467;hb=HEAD;hpb=da129f52783c19ed6eba3558e19385061f6c7da2 diff --git a/macros.systemd b/macros.systemd index 312078c..301a580 100644 --- a/macros.systemd +++ b/macros.systemd @@ -1,26 +1,78 @@ # Disable all systemd related macros +%systemd_requires %{nil} +%systemd_ordering %{nil} +%__systemd_someargs_0() %{nil} +%__systemd_twoargs_2() %{nil} +%systemd_post() %{nil} +%systemd_user_post() %{nil} +%systemd_preun() %{nil} +%systemd_user_preun() %{nil} +%systemd_postun() %{nil} +%systemd_user_postun() %{nil} +%systemd_postun_with_restart() %{nil} +%systemd_user_postun_with_restart() %{nil} +%udev_hwdb_update() %{nil} +%udev_rules_update() %{nil} +%journal_catalog_update() %{nil} +%tmpfiles_create() %{nil} +%sysusers_create() %{nil} +%sysusers_create_inline() %{nil} +%sysusers_create_package() %{nil} +%tmpfiles_create_package() %{nil} +%sysctl_apply() %{nil} +%binfmt_apply() %{nil} %systemd_reload %{nil} -%systemd_service_enable %{nil} -%systemd_service_disable %{nil} -%systemd_service %{nil} -%systemd_service_start %{nil} -%systemd_service_stop %{nil} -%systemd_service_restart %{nil} -%systemd_service_reload %{nil} -%systemd_trigger %{nil} -%systemd_post %{nil} -%systemd_preun %{nil} +%systemd_service_enable() %{nil} +%systemd_service_disable() %{nil} +%systemd_service() %{nil} +%systemd_service_start() %{nil} +%systemd_service_stop() %{nil} +%systemd_service_restart() %{nil} +%systemd_service_reload() %{nil} +%systemd_trigger() %{nil} # Keep paths for systemd related files -%systemdunitdir /lib/systemd/system -%systemduserunitdir /usr/lib/systemd/user -%systemdtmpfilesdir /usr/lib/tmpfiles.d -%journal_catalog_update %{nil} -# Macro for excluding above paths from package contents +%_systemd_util_dir /lib/systemd +%_unitdir /lib/systemd/system +%_userunitdir /usr/lib/systemd/user +%_presetdir /lib/systemd/system-preset +%_userpresetdir /usr/lib/systemd/user-preset +%_udevhwdbdir /lib/udev/hwdb.d +%_udevrulesdir /lib/udev/rules.d +%_journalcatalogdir /usr/lib/systemd/catalog +%_binfmtdir /usr/lib/binfmt.d +%_sysctldir /usr/lib/sysctl.d +%_sysusersdir /usr/lib/sysusers.d +%_tmpfilesdir /usr/lib/tmpfiles.d +%_user_tmpfilesdir /usr/share/user-tmpfiles.d +%_environmentdir /usr/lib/environment.d +%_modulesloaddir /usr/lib/modules-load.d +%_modprobedir /lib/modprobe.d +%_systemdgeneratordir /lib/systemd/system-generators +%_systemdusergeneratordir /usr/lib/systemd/user-generators +%_systemd_system_env_generator_dir /usr/lib/systemd/system-environment-generators +%_systemd_user_env_generator_dir /usr/lib/systemd/user-environment-generators + +%systemdunitdir %_unitdir +%systemduserunitdir %_userunitdir +%systemdtmpfilesdir %_tmpfilesdir + +# Macro for excluding systemd related paths from package contents + %exclude_systemd_files\ -%exclude %{systemdunitdir}\ -%exclude %{systemduserunitdir}\ -%exclude %{systemdtmpfilesdir}\ +%exclude /lib/systemd\ +%exclude /usr/lib/systemd\ +%exclude /etc/binfmt.d\ +%exclude /etc/modules-load.d\ +%exclude /etc/systemd\ +%exclude /etc/tmpfiles.d\ +%exclude %{_binfmtdir}\ +%exclude %{_sysctldir}\ +%exclude %{_sysusersdir}\ +%exclude %{_tmpfilesdir}\ +%exclude %{_user_tmpfilesdir}\ +%exclude %{_environmentdir}\ +%exclude %{_modulesloaddir}\ %{nil}