public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/anydesk/, net-misc/anydesk/files/
Date: Sat, 22 Dec 2018 23:17:20 +0000 (UTC)	[thread overview]
Message-ID: <1545519712.4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7.whissi@gentoo> (raw)

commit:     4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7
Author:     Christian Buchinger <cb-gentoo <AT> guya <DOT> de>
AuthorDate: Sat Dec 22 09:00:40 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> 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 <cb-gentoo <AT> guya.de>
Closes: https://github.com/gentoo/gentoo/pull/10678
Signed-off-by: Thomas Deutschmann <whissi <AT> 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


             reply	other threads:[~2018-12-22 23:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-22 23:17 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-09-08 18:05 [gentoo-commits] repo/gentoo:master commit in: net-misc/anydesk/, net-misc/anydesk/files/ Joonas Niilola
2018-12-17  1:20 Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1545519712.4d75fcd7927ed2ec0bb23c1106c6b7d19cdac9b7.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox