Hallo,

unfortunately, I have missed the discussion of the introduction of the
new systemd rpm macros as a new packaging gueidlines.

From my point of view this new set of macros has two disadvantages:

1. The macros are depending on systemd

2. The most commont restart case has a more
   complicate name then the case without the
   restart of the service.

I will suggest the following set of rpm macros:

init_requires      Define the Requires for post, preun and postun steps

init_pos           Scriptlet for the post scriptliet

init_preun         Scriptlet for the preun scriptlet

init_postun        Scriptlet for postun with restart

init_postun_woithout_restart     Scriptlet for postun without restart

A SPEC file should look like

BuildRequires:     systemd

%init_requires

%post
%init_post innd

%preun
%init_preun innd

%postun
%init_postun innd

The kind how this macros will been expanded depend on the
initscript system which is declared as a BuildRequires.
For F19+ whitch may be systemd. For the EPEL packages we may
 create a package called rpm-macros-initscripts whitch contains 
the definition for the SysV init system.

Best Regards:

Jochen Schmitt

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to