mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 03:50:44 +01:00
make(install): edit systemd service Exec path to include $PERFIX (#104)
* edit systemd service exec path at install time to make it reflect binary install location * move removal of intermediary service file to clean recipe * move sed-generated service file to dist
This commit is contained in:
@@ -26,7 +26,8 @@ install-service:
|
||||
fi
|
||||
|
||||
install-service-systemd:
|
||||
install -Dm644 ./assets/services/systemd.service ${DESTDIR}${PREFIX}/lib/systemd/system/lidm.service
|
||||
@sed -e 's|ExecStart=/usr/bin/lidm|ExecStart=${DESTDIR}${PREFIX}/bin/lidm|' ./assets/services/systemd.service > ./dist/lidm.service
|
||||
install -Dm644 ./dist/lidm.service ${DESTDIR}${PREFIX}/lib/systemd/system/lidm.service
|
||||
@printf '\033[1m%s\033[0m\n\n' " don't forget to run 'systemctl enable lidm'"
|
||||
install-service-dinit:
|
||||
install -m644 ./assets/services/dinit ${DESTDIR}/etc/dinit.d/lidm
|
||||
|
||||
Reference in New Issue
Block a user