1 |
Dnia 2015-06-01, o godz. 12:13:52 |
2 |
William Hubbs <williamh@g.o> napisał(a): |
3 |
|
4 |
> # @FUNCTION: s6_get_servicedir |
5 |
> # @DESCRIPTION: |
6 |
> # Output the path for the s6 service directory (not including ${D}). |
7 |
> s6_get_servicedir() { |
8 |
> has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
9 |
|
10 |
How about killing some support for ancient EAPIs? The less people can |
11 |
use them, the better for ebuild migration. |
12 |
|
13 |
> debug-print-function ${FUNCNAME} "${@}" |
14 |
> |
15 |
> echo "${EPREFIX}$(_s6_get_servicedir)" |
16 |
> } |
17 |
> |
18 |
> # @FUNCTION: s6_doservice |
19 |
> # @USAGE: servicename run finish |
20 |
|
21 |
Please don't name it 'do*' if it doesn't match the usual do-function |
22 |
usage, i.e. 'dofoo file1 file2...'. That's why I created |
23 |
'systemd_install_serviced' and not 'doserviced'. |
24 |
|
25 |
-- |
26 |
Best regards, |
27 |
Michał Górny |