From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8163138335 for ; Sat, 22 Dec 2018 23:17:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2F03E09C9; Sat, 22 Dec 2018 23:17:24 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 644C0E09C9 for ; Sat, 22 Dec 2018 23:17:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BCCA335C30 for ; Sat, 22 Dec 2018 23:17:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C929458 for ; Sat, 22 Dec 2018 23:17:20 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1545519712.4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/anydesk/, net-misc/anydesk/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/anydesk/anydesk-4.0.1-r1.ebuild net-misc/anydesk/anydesk-4.0.1.ebuild net-misc/anydesk/files/anydesk-4.0.1.service net-misc/anydesk/files/anydesk.init X-VCS-Directories: net-misc/anydesk/ net-misc/anydesk/files/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7 X-VCS-Branch: master Date: Sat, 22 Dec 2018 23:17:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cd2f6973-f0f2-471c-ac0d-87454790add4 X-Archives-Hash: 03856759bca9409b237c4da1440f612f commit: 4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7 Author: Christian Buchinger guya de> AuthorDate: Sat Dec 22 09:00:40 2018 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Dec 22 23:01:52 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d75fcd7 net-misc/anydesk: Install to /opt, change desc. * Install to /opt * Adjusted package description * Fixed elog Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Christian Buchinger guya.de> Closes: https://github.com/gentoo/gentoo/pull/10678 Signed-off-by: Thomas Deutschmann gentoo.org> .../{anydesk-4.0.1.ebuild => anydesk-4.0.1-r1.ebuild} | 16 +++++++++++----- net-misc/anydesk/files/anydesk-4.0.1.service | 16 ++++++++++++++++ net-misc/anydesk/files/anydesk.init | 2 +- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/net-misc/anydesk/anydesk-4.0.1.ebuild b/net-misc/anydesk/anydesk-4.0.1-r1.ebuild similarity index 86% rename from net-misc/anydesk/anydesk-4.0.1.ebuild rename to net-misc/anydesk/anydesk-4.0.1-r1.ebuild index 45ede2ba5a9..0d1c769a03b 100644 --- a/net-misc/anydesk/anydesk-4.0.1.ebuild +++ b/net-misc/anydesk/anydesk-4.0.1-r1.ebuild @@ -5,7 +5,7 @@ EAPI="6" inherit desktop gnome2-utils systemd xdg-utils -DESCRIPTION="The world's fastest remote desktop application" +DESCRIPTION="Feature rich multi-platform remote desktop application" HOMEPAGE="https://anydesk.com" SRC_URI="amd64? ( https://download.anydesk.com/linux/${P}-amd64.tar.gz ) x86? ( https://download.anydesk.com/linux/${P}-i686.tar.gz )" @@ -45,14 +45,20 @@ RDEPEND=" RESTRICT="bindist mirror" -QA_PREBUILT="usr/bin/${PN}" +QA_PREBUILT="opt/${PN}/*" src_install() { - exeinto /usr/bin + local dst="/opt/${PN}" + + dodir ${dst} + exeinto ${dst} doexe ${PN} + dodir /opt/bin + dosym ${dst}/${PN} /opt/bin/${PN} + newinitd "${FILESDIR}"/anydesk.init anydesk - systemd_dounit systemd/anydesk.service + systemd_newunit "${FILESDIR}"/anydesk-4.0.1.service anydesk.service insinto /usr/share/polkit-1/actions doins polkit-1/com.philandro.anydesk.policy @@ -71,7 +77,7 @@ pkg_postinst() { xdg_desktop_database_update gnome2_icon_cache_update - if [[ -n ${REPLACING_VERSIONS} ]]; then + if [[ -z ${REPLACING_VERSIONS} ]]; then elog "To run AnyDesk as background service use:" elog elog "OpenRC:" diff --git a/net-misc/anydesk/files/anydesk-4.0.1.service b/net-misc/anydesk/files/anydesk-4.0.1.service new file mode 100644 index 00000000000..e7a3ef00837 --- /dev/null +++ b/net-misc/anydesk/files/anydesk-4.0.1.service @@ -0,0 +1,16 @@ +[Unit] +Description=AnyDesk +Requires=network.target +After=systemd-user-sessions.service + +[Service] +Type=simple +ExecStart=/opt/bin/anydesk --service +PIDFile=/var/run/anydesk.pid +KillMode=mixed +TimeoutStopSec=30 +User=root +LimitNOFILE=100000 + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/anydesk/files/anydesk.init b/net-misc/anydesk/files/anydesk.init index 193f6a24721..5b8986ed8d1 100644 --- a/net-misc/anydesk/files/anydesk.init +++ b/net-misc/anydesk/files/anydesk.init @@ -4,7 +4,7 @@ name="AnyDesk service" description="AnyDesk global service" -command="/usr/bin/anydesk" +command="/opt/bin/anydesk" command_args="--service" pidfile="/var/run/anydesk.pid" command_background=true