fix-path.patch 1.9 KB

12345678910111213141516171819202122232425262728
  1. --- nologind.pro 2022-06-19 16:08:23.493424552 -0300
  2. +++ nologind.pro 2022-06-19 16:08:09.921424247 -0300
  3. @@ -9,7 +9,7 @@
  4. HEADERS += manager.h
  5. OTHER_FILES += $${TARGET}.conf.in
  6. -isEmpty(PREFIX): PREFIX = /usr/local
  7. +isEmpty(PREFIX): PREFIX = /usr/bin
  8. isEmpty(DBUS_CONF): DBUS_CONF = /etc
  9. isEmpty(DBUS_SERVICE): DBUS_SERVICE = /usr/share
  10. isEmpty(DOCDIR): DOCDIR = $$PREFIX/share/doc
  11. @@ -17,13 +17,13 @@
  12. isEmpty(USER): USER = root
  13. isEmpty(GROUP): GROUP = users
  14. -target.path = $${PREFIX}/sbin
  15. +target.path = $${PREFIX}/bin
  16. target_dbus_conf.path = $${DBUS_CONF}/dbus-1/system.d
  17. target_dbus_service.path = $${DBUS_SERVICE}/dbus-1/system-services
  18. target_dbus_conf.commands = $$quote(cat $${PWD}/$${TARGET}.conf.in | sed "\"s/_GROUP_/$${GROUP}/g;s/_USER_/$${USER}/g"\" > ${INSTALL_ROOT}$${DBUS_CONF}/dbus-1/system.d/org.freedesktop.login1.conf$$escape_expand(\\n\\t))
  19. target_dbus_service.commands = $$quote(echo "\"[D-BUS Service]"\" > ${INSTALL_ROOT}$${DBUS_SERVICE}/dbus-1/system-services/org.freedesktop.login1.service$$escape_expand(\\n\\t))
  20. target_dbus_service.commands += $$quote(echo "\"Name=org.freedesktop.login1"\" >> ${INSTALL_ROOT}$${DBUS_SERVICE}/dbus-1/system-services/org.freedesktop.login1.service$$escape_expand(\\n\\t))
  21. -target_dbus_service.commands += $$quote(echo "\"Exec=$${PREFIX}/sbin/$${TARGET}"\" >> ${INSTALL_ROOT}$${DBUS_SERVICE}/dbus-1/system-services/org.freedesktop.login1.service$$escape_expand(\\n\\t))
  22. +target_dbus_service.commands += $$quote(echo "\"Exec=$${PREFIX}/bin/$${TARGET}"\" >> ${INSTALL_ROOT}$${DBUS_SERVICE}/dbus-1/system-services/org.freedesktop.login1.service$$escape_expand(\\n\\t))
  23. target_dbus_service.commands += $$quote(echo "\"User=$${USER}"\" >> ${INSTALL_ROOT}$${DBUS_SERVICE}/dbus-1/system-services/org.freedesktop.login1.service$$escape_expand(\\n\\t))
  24. target_docs.path = $${DOCDIR}/$${TARGET}-$${VERSION}
  25. target_docs.files = LICENSE README.md