net-misc/todesk - 4.8.6.2 (benzene-overlay)

Search

Install

Install this version:

emerge -a =net-misc/todesk-4.8.6.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/todesk-4.8.6.2

Or alternatively:

emerge --autounmask-write -a =net-misc/todesk-4.8.6.2

Package Information

Description:
Remote control and team work
Homepage:
https://www.todesk.com
License:
ToDesk

Ebuild Details

Version EAPI Keywords Slot
4.8.6.2 8 -* ~amd64 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit unpacker systemd desktop optfeature xdg

MY_P="${PN}-v${PV}"

DESCRIPTION="Remote control and team work"
HOMEPAGE="https://www.todesk.com"
SRC_URI="amd64? ( https://web.archive.org/web/20260329112316/https://dl.todesk.com/linux/${MY_P}-amd64.deb )"

RESTRICT="mirror"
LICENSE="ToDesk"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="keep-server"

RDEPEND="dev-libs/libayatana-appindicator
	virtual/libsystemd
"

S="${WORKDIR}"

QA_PREBUILT="opt/${PN}/*"
#QA_DESKTOP_FILE="usr/share/applications/${PN}.desktop"

src_install() {
	insinto /opt
	insopts -m755
	doins -r opt/${PN}
	fperms -x /opt/${PN}/res/{20-todesk.conf,fake.png,small.ico}
	dosym -r /usr/$(get_libdir)/libayatana-appindicator3.so /opt/${PN}/bin/libappindicator3.so.1

	exeinto /opt/${PN}/bin
	use keep-server && { dosym -r /usr/bin/sleep /opt/${PN}/bin/${PN}-hold ; \
		newexe {"${FILESDIR}"/4.8.1.0-,}starthold-todeskd-systemd ; \
		newexe {"${FILESDIR}"/4.8.1.0-,}systemd-todeskd ; \
		doexe "${FILESDIR}"/stophold-todeskd-systemd ;
	}

	newinitd "${FILESDIR}"/$(usex keep-server "${PN}d-alone-4.3.0.0.initd" "${PN}d-4.3.0.0.initd") ${PN}d
	use keep-server && systemd_newunit "${FILESDIR}"/4.8.1.0-${PN}d-keep.service ${PN}d.service || \
		systemd_dounit etc/systemd/system/${PN}d.service

	exeinto /opt/bin
	doexe usr/local/bin/${PN}

	for si in 16 24 32 48 64 128 256 512; do
		doicon -s ${si} usr/share/icons/hicolor/${si}x${si}/apps/${PN}.png
	done
	domenu usr/share/applications/${PN}.desktop
}

pkg_postinst() {
	elog
	elog "Before using ToDesk, you need to start its daemon:"
	elog "OpenRC:"
	elog "# /etc/init.d/todeskd start"
	elog "# rc-update add todeskd default"
	elog
	elog "Systemd:"
	elog "# systemctl start todeskd.service"
	elog "# systemctl enable todeskd.service"
	elog
	optfeature "better Chinese font appearance for GUI client" media-fonts/noto-cjk

	xdg_pkg_postinst
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-misc/todesk | euse -E <flag> -p net-misc/todesk | euse -D <flag> -p net-misc/todesk

Global/Standard Flags

Inherited Eclasses

xdg

Dependencies

RDEPEND

dev-libs/libayatana-appindicator
	virtual/libsystemd

Manifest for 4.8.6.2

Type File Size Source URLs
DIST todesk-v4.8.6.2-amd64.deb 110259910 bytes https://web.archive.org/web/20260329112316/https://dl.todesk.com/linux/todesk-v4.8.6.2-amd64.deb