hooks/xbps-metadata: only add systemd-service trigger if the buildopt is set.
This commit is contained in:
parent
ea01ed96fb
commit
a56b465f1e
1 changed files with 19 additions and 17 deletions
|
@ -119,23 +119,25 @@ _EOF
|
||||||
#
|
#
|
||||||
# Handle systemd services.
|
# Handle systemd services.
|
||||||
#
|
#
|
||||||
if [ -n "${systemd_services}" ]; then
|
if [ -n "$build_option_systemd" ]; then
|
||||||
_add_trigger systemd-service
|
if [ -n "${systemd_services}" ]; then
|
||||||
echo "export systemd_services=\"${systemd_services}\"" >> $tmpf
|
_add_trigger systemd-service
|
||||||
fi
|
echo "export systemd_services=\"${systemd_services}\"" >> $tmpf
|
||||||
if [ -d ${PKGDESTDIR}/usr/lib/tmpfiles.d ]; then
|
fi
|
||||||
for f in ${PKGDESTDIR}/usr/lib/tmpfiles.d/*; do
|
if [ -d ${PKGDESTDIR}/usr/lib/tmpfiles.d ]; then
|
||||||
_tmpfiles="${_tmpfiles} $(basename $f)"
|
for f in ${PKGDESTDIR}/usr/lib/tmpfiles.d/*; do
|
||||||
done
|
_tmpfiles="${_tmpfiles} $(basename $f)"
|
||||||
_add_trigger systemd-service
|
done
|
||||||
echo "export systemd_tmpfiles=\"${_tmpfiles}\"" >> $tmpf
|
_add_trigger systemd-service
|
||||||
fi
|
echo "export systemd_tmpfiles=\"${_tmpfiles}\"" >> $tmpf
|
||||||
if [ -d ${PKGDESTDIR}/usr/lib/modules-load.d ]; then
|
fi
|
||||||
for f in ${PKGDESTDIR}/usr/lib/modules-load.d/*; do
|
if [ -d ${PKGDESTDIR}/usr/lib/modules-load.d ]; then
|
||||||
_mods="${_mods} $(basename $f)"
|
for f in ${PKGDESTDIR}/usr/lib/modules-load.d/*; do
|
||||||
done
|
_mods="${_mods} $(basename $f)"
|
||||||
_add_trigger systemd-service
|
done
|
||||||
echo "export systemd_modules=\"${_mods}\"" >> $tmpf
|
_add_trigger systemd-service
|
||||||
|
echo "export systemd_modules=\"${_mods}\"" >> $tmpf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# Handle GNU Info files.
|
# Handle GNU Info files.
|
||||||
|
|
Loading…
Reference in a new issue