5 |
INHERITS+=" systemd" |
INHERITS+=" systemd" |
6 |
|
|
7 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
8 |
>= sys-apps/systemd-208" |
>= sys-apps/systemd-230" |
9 |
|
|
10 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
11 |
>= sys-apps/systemd-dev-208 |
>= sys-apps/systemd-dev-230 |
12 |
>= dev-util/pkgconfig-0.27" |
>= dev-util/pkgconfig-0.27" |
13 |
|
|
14 |
sminclude mtools |
sminclude mtools |
38 |
pkg-config systemd --variable=systemdsystempresetdir |
pkg-config systemd --variable=systemdsystempresetdir |
39 |
} |
} |
40 |
|
|
41 |
|
mget-systemd-tmpfilesdir() |
42 |
|
{ |
43 |
|
pkg-config systemd --variable=tmpfilesdir |
44 |
|
} |
45 |
|
|
46 |
|
mget-systemd-sysusersdir() |
47 |
|
{ |
48 |
|
pkg-config systemd --variable=sysusersdir |
49 |
|
} |
50 |
|
|
51 |
|
mget-systemd-sysctldir() |
52 |
|
{ |
53 |
|
pkg-config systemd --variable=sysctldir |
54 |
|
} |
55 |
|
|
56 |
# installs systemd units |
# installs systemd units |
57 |
# minstallunit /path/to/unit-file {destfilename} |
# minstallunit /path/to/unit-file {destfilename} |
58 |
minstallunit() |
minstallunit() |
91 |
{ |
{ |
92 |
local tmpdfile |
local tmpdfile |
93 |
local file |
local file |
94 |
|
local tmpfilesdir="$(mget-systemd-tmpfilesdir)" |
95 |
|
|
96 |
[[ -z "$1" ]] && die "No tmpd file given" |
[[ -z "$1" ]] && die "No tmpd file given" |
97 |
|
|
111 |
fi |
fi |
112 |
|
|
113 |
# needed directory |
# needed directory |
114 |
minstalldir /etc/tmpfiles.d || die |
minstalldir ${tmpfilesdir} || die |
115 |
|
|
116 |
# install our tmpdfile |
# install our tmpdfile |
117 |
minstallfile ${file} /etc/tmpfiles.d/${tmpdfile} || die |
minstallfile ${file} ${tmpfilesdir}/${tmpdfile} || die |
118 |
} |
} |