summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Buchinger <cb-gentoo@guya.de>2019-11-30 12:54:32 +0100
committerJoonas Niilola <juippis@gentoo.org>2019-12-03 15:34:53 +0200
commit5a03db0eabef2044c1f0c651f00d0ab67ca55d10 (patch)
tree8b647ea2c0b96cf5dc62ac209b4f49adee7aa9cb /net-misc/anydesk
parentsys-kernel/raspberrypi-image: add new version 4.19.75_p20190925 (diff)
downloadgentoo-5a03db0eabef2044c1f0c651f00d0ab67ca55d10.tar.gz
gentoo-5a03db0eabef2044c1f0c651f00d0ab67ca55d10.tar.bz2
gentoo-5a03db0eabef2044c1f0c651f00d0ab67ca55d10.zip
net-misc/anydesk: use optfeature and add lspci
Closes: https://bugs.gentoo.org/701452 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Christian Buchinger <cb-gentoo@guya.de> Closes: https://github.com/gentoo/gentoo/pull/13808 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc/anydesk')
-rw-r--r--net-misc/anydesk/anydesk-5.5.0-r1.ebuild116
1 files changed, 116 insertions, 0 deletions
diff --git a/net-misc/anydesk/anydesk-5.5.0-r1.ebuild b/net-misc/anydesk/anydesk-5.5.0-r1.ebuild
new file mode 100644
index 000000000000..507027c061bb
--- /dev/null
+++ b/net-misc/anydesk/anydesk-5.5.0-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit desktop eutils systemd xdg-utils
+
+DESCRIPTION="Feature rich multi-platform remote desktop application"
+HOMEPAGE="https://anydesk.com"
+SRC_URI="amd64? (
+ https://download.anydesk.com/linux/${P}-amd64.tar.gz
+ https://download.anydesk.com/linux/generic-linux/${P}-amd64.tar.gz
+ )
+ x86? (
+ https://download.anydesk.com/linux/${P}-i386.tar.gz
+ https://download.anydesk.com/linux/generic-linux/${P}-i386.tar.gz
+ )"
+
+# OpeSSL/SSLeay, libvpx, zlib, Xiph, xxHash
+LICENSE="AnyDesk-TOS BSD BSD-2 openssl ZLIB"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/atk
+ dev-libs/glib:2
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/glu
+ media-libs/mesa[X(+)]
+ sys-auth/polkit
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/gtkglext
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libxkbfile
+ x11-libs/libXmu
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXt
+ x11-libs/libXtst
+ x11-libs/pango
+ x11-libs/pangox-compat
+"
+
+RESTRICT="bindist mirror"
+
+QA_PREBUILT="opt/${PN}/*"
+
+src_install() {
+ 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_newunit "${FILESDIR}"/anydesk-4.0.1.service anydesk.service
+
+ insinto /usr/share/polkit-1/actions
+ doins polkit-1/com.philandro.anydesk.policy
+
+ insinto /usr/share
+ doins -r icons
+
+ domenu "${FILESDIR}"/anydesk.desktop
+
+ keepdir /etc/${PN}
+
+ dodoc copyright README
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "To run AnyDesk as background service use:"
+ elog
+ elog "OpenRC:"
+ elog "# rc-service anydesk start"
+ elog "# rc-update add anydesk default"
+ elog
+ elog "Systemd:"
+ elog "# systemctl start anydesk.service"
+ elog "# systemctl enable anydesk.service"
+ elog
+ elog "Please see README at /usr/share/doc/${PF}/README.bz2 for"
+ elog "further information about the linux version of AnyDesk."
+ elog
+ fi
+
+ elog "For querying information about the host PC AnyDesk calls"
+ elog "the following commands. Feel free to install them, but it"
+ elog "should run without as well."
+ elog
+ optfeature "lsb_release" sys-apps/lsb-release
+ optfeature "lspci" sys-apps/pciutils
+ optfeature "lsusb" sys-apps/usbutils
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+}