blob: ef91f9e367bb50705ba0738c34f52ad42cdd0239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -e
set -u
rc_libexecdir="$1"
sbindir="$2"
os="$3"
sysvinit="$4"
if [ "${os}" != Linux ]; then
install -d "${DESTDIR}/${rc_libexecdir}"/init.d
fi
install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"
if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then
ln -sf openrc-init "${DESTDIR}/${sbindir}"/init
fi
|