Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: William Hubbs <williamh@g.o>
Cc: gentoo development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] s6.eclass: new eclass for installing s6 services
Date: Mon, 01 Jun 2015 17:24:55
Message-Id: 20150601192426.2e2db47b@pomiot.lan
In Reply to: [gentoo-dev] s6.eclass: new eclass for installing s6 services by William Hubbs
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

Replies

Subject Author
Re: [gentoo-dev] s6.eclass: new eclass for installing s6 services William Hubbs <williamh@g.o>