Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Review for initial systemd.eclass
Date: Fri, 29 Apr 2011 05:59:14
Message-Id: 20110429075841.65303f29@pomiocik.lan
1 Hello,
3 I'd like to submit an initial version of systemd.eclass, providing
4 helper functions for packages installing systemd unit files. Such
5 an eclass would be pushed to gx86 before first systemd packages
6 to control the packages installing upstream systemd units.
8 The eclass currently provides four functions:
9 - systemd_get_unitdir() which simply outputs the unitdir (for insinto),
10 - systemd_dounit() which installs the specified units into unitdir,
11 - systemd_enable_service() which symlinks service ${2} into target ${1},
12 creating that target if necessary,
13 - systemd_with_unitdir() which outputs
14 the '--with-systemdsystemunitdir' option as expected
15 by systemd-capable configure scripts.
17 The eclass currently assumes the following:
18 - systemd units are installed into /$(get_libdir)/systemd/system,
19 - systemd units are installed unconditionally.
21 Though it should be possible to change that behaviour within the eclass
22 without modifying the ebuild files.
24 I'm attaching the eclass file. It is also available in my devoverlay
25 [1].
27 [1];a=blob;f=eclass/systemd.eclass
29 --
30 Best regards,
31 Michał Górny


File name MIME type
systemd.eclass application/octet-stream
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] Review for initial systemd.eclass "Michał Górny" <mgorny@g.o>