diff --git a/sys-apps/keyd/files/keyd.init b/sys-apps/keyd/files/keyd.init new file mode 100644 index 0000000..53d7824 --- /dev/null +++ b/sys-apps/keyd/files/keyd.init @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="keyd daemon" +description="" +command=/usr/bin/keyd +command_args="${keyd_args}" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" +start_stop_daemon_args='-N -20' + +depend() { + need localmount + before display-manager +} diff --git a/sys-apps/keyd/keyd-2.4.3.ebuild b/sys-apps/keyd/keyd-2.4.3.ebuild index 18b6400..377f0a8 100644 --- a/sys-apps/keyd/keyd-2.4.3.ebuild +++ b/sys-apps/keyd/keyd-2.4.3.ebuild @@ -21,3 +21,7 @@ BDEPEND="" PATCHES=( "${FILESDIR}"/Makefile.patch ) + +src_install() { + newinitd "${FILESDIR}/keyd.init" keyd +}