Mailinglist Archive: opensuse-packaging (205 mails)

< Previous Next >
Re: [opensuse-packaging] ANNOUNCE: systemd service packaging
Hi,

Le lundi 26 septembre 2011, à 17:35 +0200, Frederic Crozat a écrit :
Hi everyone,

I just finished merging the migration macros into the "main" systemd
macros, so here is the final result for macros (see file attached).

Usage would be like this (it will be hard to put macros in the wrong
section ;) :

Add :
%systemd_requires

and if you are compiling your package for old distributions :
%if 0%{suse_version} <= 1140
%define systemd_requires %{nil}
%endif

for scripts :
%post
%service_add_pre demo.service demo1.service

I guess you mean %pre ;-)

%post
%service_add_post demo.service demo1.service

%preun
%service_del_preun demo.service demo1.service

%postun
%service_del_postun demo.service demo1.servoce

Please note those macros are "systemd preset" aware (this was discussed
on this mailing list in july) : you don't need to enable a service in %
post : if it is specified in the default preset policy as "enabled by
default", it will be handled automatically.

These defaults will be in systemd-default-presets package (not yet
created, probably tomorrow).

I suggest to call the package systemd-branding-openSUSE, since it'll be
the default configuration for openSUSE, and openSUSE derivatives might
want to change this easily without tweaking our packages.

Cheers,

Vincent

--
Les gens heureux ne sont pas pressés.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References