Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/anydesk/
Date: Fri, 26 Aug 2022 08:44:25
Message-Id: 1661503438.4e213d550a9cb24cb327585a9fa092652e494293.matthew@gentoo
1 commit: 4e213d550a9cb24cb327585a9fa092652e494293
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Mon Jul 25 10:42:02 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 08:43:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e213d55
7
8 net-misc/anydesk: 6.2.0
9
10 The minizip requirement (but 829499) is no longer there for 6.2.0.
11 Migration away from x11-libs/gtkglext (bug 698950) has happened.
12
13 Dropped a few other dependencies too as I can't see how they are
14 required with lddtree.
15
16 We can consider the following changes still:
17
18 1. Removing the desktop and systemd units from files/ and using sed to
19 update /usr/bin to /opt/bin instead.
20 2. Installing binary directly into /opt/bin rather than
21 /opt/anydesk/ and then symlinking from /opt/bin.
22
23 Bug: https://bugs.gentoo.org/705154
24 Closes: https://bugs.gentoo.org/829499
25 Package-Manager: Portage-3.0.30, Repoman-3.0.3
26 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
27 Closes: https://github.com/gentoo/gentoo/pull/26587
28 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
29
30 net-misc/anydesk/Manifest | 1 +
31 net-misc/anydesk/anydesk-6.2.0.ebuild | 98 +++++++++++++++++++++++++++++++++++
32 2 files changed, 99 insertions(+)
33
34 diff --git a/net-misc/anydesk/Manifest b/net-misc/anydesk/Manifest
35 index 7610c2f5aa10..7cfe5d426f84 100644
36 --- a/net-misc/anydesk/Manifest
37 +++ b/net-misc/anydesk/Manifest
38 @@ -6,3 +6,4 @@ DIST anydesk-6.0.1-amd64.tar.gz 5209989 BLAKE2B 5588b40460af9033aca744440d5ce43d
39 DIST anydesk-6.0.1-i386.tar.gz 5130077 BLAKE2B 9d0467cb24493458efdac6d835b06ef22bb6db3aaeb7277386ae0749c215c3640e722e2e7d17964e32a668d63826a68f3429d3425fb7aabe59a2718648bd2b88 SHA512 58cf2ca8bb67f672ec2ac988216ab593479f09d32e8e6ace93b0d92640197f9d13a637480421be8b038f8840d91a89f97b937c9e3b3f115bc49a5fa852b2c064
40 DIST anydesk-6.1.0-amd64.tar.gz 5264850 BLAKE2B dd71ca67af11e84860f785a50bfb41a6fedae0f1cd28e9a9061d4f34a84a07add7900eb234ac77b0ffd6c2cb77b2e614e9b7d50b4f7045269c008070ab605064 SHA512 b58cd0bde8ef6bbf4878b276dc45297bdeb5c05c273d41b95465cbfec879b60c9295ae3a76e5cae4940ece5471c13856bb18b2785e0bea1866402afd95f5372a
41 DIST anydesk-6.1.1-amd64.tar.gz 5296860 BLAKE2B 676a5eddaa088a62f8f4ecb4b25ecce955331eaf4de383c1b029770e282bc79b45b600cbb7ad8c8918ff540b210e2a6bcee8330603c5bddaea821d794012c278 SHA512 435828660c44437441ab3f5c61783d29f772a958e6b465f24b880014faf120c51dc06a4c1da11bb383be99f9fc1f1f35994ea3a990fc0e94bc18fe26bf95958e
42 +DIST anydesk-6.2.0-amd64.tar.gz 6216311 BLAKE2B ffdd139e5e67cf9da5eefcd8c261a52d5e556923353baec8d848aea95a6583280845c3d2cf9c34fbcbecf9ddb3991aa59542baf74f2761cc4a7ee69637be0bd4 SHA512 673e5a0a0ca6d2c550c9c01a07edd2096db26416286a5a603adfc7a844d864f327061e0906978c6e4cd0871859f12f281a52b3bceffe8a6014a1bb3c54322ab6
43
44 diff --git a/net-misc/anydesk/anydesk-6.2.0.ebuild b/net-misc/anydesk/anydesk-6.2.0.ebuild
45 new file mode 100644
46 index 000000000000..60a3c0f9afd4
47 --- /dev/null
48 +++ b/net-misc/anydesk/anydesk-6.2.0.ebuild
49 @@ -0,0 +1,98 @@
50 +# Copyright 1999-2022 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI="8"
54 +
55 +inherit desktop optfeature systemd xdg-utils
56 +
57 +DESCRIPTION="Feature rich multi-platform remote desktop application"
58 +HOMEPAGE="https://anydesk.com"
59 +SRC_URI="https://download.anydesk.com/linux/${P}-amd64.tar.gz
60 + https://download.anydesk.com/linux/generic-linux/${P}-amd64.tar.gz"
61 +
62 +# OpeSSL/SSLeay, libvpx, zlib, Xiph, xxHash
63 +LICENSE="AnyDesk-TOS BSD BSD-2 openssl ZLIB"
64 +SLOT="0"
65 +KEYWORDS="-* ~amd64"
66 +
67 +RDEPEND="
68 + dev-libs/atk
69 + dev-libs/glib:2
70 + media-libs/fontconfig:1.0
71 + media-libs/freetype:2
72 + media-libs/glu
73 + sys-auth/polkit
74 + x11-libs/cairo
75 + x11-libs/gdk-pixbuf:2
76 + x11-libs/gtk+:2
77 + x11-libs/libX11
78 + x11-libs/libxcb
79 + x11-libs/libXdamage
80 + x11-libs/libXext
81 + x11-libs/libXfixes
82 + x11-libs/libXi
83 + x11-libs/libxkbfile
84 + x11-libs/libXrandr
85 + x11-libs/libXrender
86 + x11-libs/libXtst
87 + x11-libs/pango
88 +"
89 +BDEPEND="dev-util/patchelf"
90 +
91 +RESTRICT="bindist mirror"
92 +
93 +QA_PREBUILT="opt/${PN}/*"
94 +
95 +src_install() {
96 + local dst="/opt/${PN}"
97 +
98 + exeinto ${dst}
99 + doexe ${PN}
100 +
101 + dodir /opt/bin
102 + dosym "${dst}/${PN}" "/opt/bin/${PN}"
103 +
104 + newinitd "${FILESDIR}/anydesk.init" anydesk
105 + systemd_newunit "${FILESDIR}/anydesk-4.0.1.service" anydesk.service
106 +
107 + insinto /usr/share/polkit-1/actions
108 + doins polkit-1/com.anydesk.anydesk.policy
109 +
110 + insinto /usr/share
111 + doins -r icons
112 +
113 + domenu "${FILESDIR}/anydesk.desktop"
114 +
115 + dodoc copyright README
116 +}
117 +
118 +pkg_postinst() {
119 + xdg_desktop_database_update
120 + xdg_icon_cache_update
121 +
122 + if [[ -z ${REPLACING_VERSIONS} ]]; then
123 + elog "To run AnyDesk as background service use:"
124 + elog
125 + elog "OpenRC:"
126 + elog "# rc-service anydesk start"
127 + elog "# rc-update add anydesk default"
128 + elog
129 + elog "Systemd:"
130 + elog "# systemctl start anydesk.service"
131 + elog "# systemctl enable anydesk.service"
132 + elog
133 + elog "Please see README at /usr/share/doc/${PF}/README.bz2 for"
134 + elog "further information about the linux version of AnyDesk."
135 + elog
136 + fi
137 +
138 + optfeature_header "AnyDesk uses additional tools to query information about the host:"
139 + optfeature "lsb_release" sys-apps/lsb-release
140 + optfeature "lspci" sys-apps/pciutils
141 + optfeature "lsusb" sys-apps/usbutils
142 +}
143 +
144 +pkg_postrm() {
145 + xdg_desktop_database_update
146 + xdg_icon_cache_update
147 +}