1 |
Hello, |
2 |
|
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. |
7 |
|
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. |
16 |
|
17 |
The eclass currently assumes the following: |
18 |
- systemd units are installed into /$(get_libdir)/systemd/system, |
19 |
- systemd units are installed unconditionally. |
20 |
|
21 |
Though it should be possible to change that behaviour within the eclass |
22 |
without modifying the ebuild files. |
23 |
|
24 |
I'm attaching the eclass file. It is also available in my devoverlay |
25 |
[1]. |
26 |
|
27 |
[1] http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=blob;f=eclass/systemd.eclass |
28 |
|
29 |
-- |
30 |
Best regards, |
31 |
Michał Górny |