blob: ca00793635b119dd5e671be0cf59e5b3884107ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet"
HOMEPAGE="http://www.teamviewer.com"
SRC_URI_BASE="http://www.teamviewer.com/download/"
SRC_URI="x86? ( ${SRC_URI_BASE}${PN}_linux.deb -> ${P}_x86.deb )
amd64? ( ${SRC_URI_BASE}${PN}_linux_x64.deb -> ${P}_amd64.deb )"
LICENSE="TeamViewer"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="app-emulation/wine"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
unpack ./data.tar.gz
rm -f control.tar.gz data.tar.gz debian-binary
}
src_install () {
echo "#!/bin/bash" > ${PN} || die
echo "export WINEDLLPATH=/opt/${PN}" >> ${PN} || die
echo "wine /opt/${PN}/TeamViewer.exe" >> ${PN} || die
insinto /opt/${PN}/
doins opt/teamviewer8/tv_bin/wine/drive_c/TeamViewer/*
doins ${PN}
insinto /usr/sbin
doins opt/teamviewer8/tv_bin/teamviewerd
fperms +x /usr/sbin/teamviewerd
fperms 755 /opt/${PN}/${PN}
dosym /opt/${PN}/${PN} /opt/bin/${PN}
doicon -s 48 opt/teamviewer8/tv_bin/desktop/${PN}.png
dodoc opt/teamviewer8/linux_FAQ_{EN,DE}.txt
dodoc opt/teamviewer8/CopyRights_{EN,DE}.txt
make_desktop_entry ${PN} TeamViewer \
/opt/${PN}/tv_bin/desktop/${PN}.png 'Network;'
newinitd "${FILESDIR}/teamviewerd.rc" ${PN}
}
|