diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2021-02-13 02:06:24 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2021-03-24 12:06:58 -0400 |
commit | e14314b134c0fb866cc58f48cfcb6370b4aed00b (patch) | |
tree | 9cf33f36ffefec370699b81278ad181b2f69d86e /x11-misc/bumblebee | |
parent | x11-misc/virtualgl: revbump for d-m-i (diff) | |
download | gentoo-e14314b134c0fb866cc58f48cfcb6370b4aed00b.tar.gz gentoo-e14314b134c0fb866cc58f48cfcb6370b4aed00b.tar.bz2 gentoo-e14314b134c0fb866cc58f48cfcb6370b4aed00b.zip |
x11-misc/bumblebee: revbump for d-m-i
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'x11-misc/bumblebee')
-rw-r--r-- | x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild (renamed from x11-misc/bumblebee/bumblebee-3.2.1_p20210112.ebuild) | 2 | ||||
-rw-r--r-- | x11-misc/bumblebee/bumblebee-9999.ebuild | 2 | ||||
-rw-r--r-- | x11-misc/bumblebee/files/bumblebee.initd-r1 | 23 |
3 files changed, 25 insertions, 2 deletions
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20210112.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild index 4984d378312b..6f1cd0a5af5d 100644 --- a/x11-misc/bumblebee/bumblebee-3.2.1_p20210112.ebuild +++ b/x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild @@ -84,7 +84,7 @@ src_install() { default newconfd "${FILESDIR}"/${PN}.confd ${PN} - newinitd "${FILESDIR}"/${PN}.initd ${PN} + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} newenvd "${FILESDIR}"/${PN}.envd 99${PN} systemd_dounit scripts/systemd/bumblebeed.service diff --git a/x11-misc/bumblebee/bumblebee-9999.ebuild b/x11-misc/bumblebee/bumblebee-9999.ebuild index e66fb829acb9..b9699790cb80 100644 --- a/x11-misc/bumblebee/bumblebee-9999.ebuild +++ b/x11-misc/bumblebee/bumblebee-9999.ebuild @@ -84,7 +84,7 @@ src_install() { default newconfd "${FILESDIR}"/${PN}.confd ${PN} - newinitd "${FILESDIR}"/${PN}.initd ${PN} + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} newenvd "${FILESDIR}"/${PN}.envd 99${PN} systemd_dounit scripts/systemd/bumblebeed.service diff --git a/x11-misc/bumblebee/files/bumblebee.initd-r1 b/x11-misc/bumblebee/files/bumblebee.initd-r1 new file mode 100644 index 000000000000..0780fb902b48 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.initd-r1 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need display-manager + want vgl +} + +PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}" + +start() { + ebegin "Starting BumbleBee Daemon" + start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}" + eend $? +} + +stop() { + + ebegin "Stopping BumbleBee Daemon" + start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10 + eend $? +} |