2021-08-22 23:39:30 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
|
|
|
|
rc_libexecdir="$1"
|
2022-06-10 20:58:45 +05:30
|
|
|
sbindir="$2"
|
|
|
|
os="$3"
|
|
|
|
sysvinit="$4"
|
2021-08-22 23:39:30 +05:30
|
|
|
|
2022-06-10 20:58:45 +05:30
|
|
|
if [ "${os}" != Linux ]; then
|
2021-08-22 23:39:30 +05:30
|
|
|
install -d "${DESTDIR}/${rc_libexecdir}"/init.d
|
|
|
|
fi
|
2022-04-06 21:21:55 +05:30
|
|
|
install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"
|
2022-06-10 20:58:45 +05:30
|
|
|
if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then
|
|
|
|
ln -s openrc-init "${DESTDIR}/${sbindir}"/init
|
|
|
|
fi
|