/[gentoo-x86]/net-misc/teamviewer/teamviewer-8.0.20931.ebuild
Gentoo

Contents of /net-misc/teamviewer/teamviewer-8.0.20931.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 9 05:29:03 2015 UTC (4 years, 9 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bump; ebuild and new gentoo.patch submitted by newly designated proxy maintainer, herd re-assigned to proxy-maint, all wrt bug #533452.  Being a binary package, runtested for install, bugs and runtime issues addressed in the course of bug #533452.  2 oldest versions and corresponding patches removed to prevent build up

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/teamviewer/teamviewer-8.0.20931.ebuild,v 1.2 2014/06/18 20:40:59 mgorny Exp $
4
5 EAPI=5
6
7 inherit eutils gnome2-utils systemd unpacker
8
9 # Major version
10 MV=${PV/\.*}
11 MY_PN=${PN}${MV}
12 DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet"
13 HOMEPAGE="http://www.teamviewer.com"
14 SRC_URI="http://www.teamviewer.com/download/version_${MV}x/teamviewer_linux.deb -> ${P}.deb"
15
16 LICENSE="TeamViewer !system-wine? ( LGPL-2.1 )"
17 SLOT=${MV}
18 KEYWORDS="~amd64 ~x86"
19 IUSE="system-wine"
20
21 RESTRICT="mirror"
22
23 RDEPEND="
24 app-shells/bash
25 x11-misc/xdg-utils
26 !system-wine? (
27 amd64? (
28 app-emulation/emul-linux-x86-baselibs
29 app-emulation/emul-linux-x86-soundlibs
30 || (
31 (
32 >=x11-libs/libSM-1.2.1-r1[abi_x86_32]
33 >=x11-libs/libX11-1.6.2[abi_x86_32]
34 >=x11-libs/libXau-1.0.7-r1[abi_x86_32]
35 >=x11-libs/libXdamage-1.1.4-r1[abi_x86_32]
36 >=x11-libs/libXext-1.3.2[abi_x86_32]
37 >=x11-libs/libXfixes-5.0.1[abi_x86_32]
38 >=x11-libs/libXtst-1.2.1-r1[abi_x86_32]
39 )
40 app-emulation/emul-linux-x86-xlibs
41 )
42 )
43 x86? (
44 sys-libs/zlib
45 x11-libs/libSM
46 x11-libs/libX11
47 x11-libs/libXau
48 x11-libs/libXdamage
49 x11-libs/libXext
50 x11-libs/libXfixes
51 x11-libs/libXtst
52 )
53 )
54 system-wine? ( app-emulation/wine )"
55
56 QA_PREBUILT="opt/teamviewer${MV}/*"
57
58 S=${WORKDIR}/opt/teamviewer${MV}/tv_bin
59
60 make_winewrapper() {
61 cat << EOF > "${T}/${MY_PN}"
62 #!/bin/sh
63 export WINEDLLPATH=/opt/${MY_PN}
64 exec wine "/opt/${MY_PN}/TeamViewer.exe" "\$@"
65 EOF
66 chmod go+rx "${T}/${MY_PN}"
67 exeinto /opt/bin
68 doexe "${T}/${MY_PN}"
69 }
70
71 src_prepare() {
72 epatch "${FILESDIR}"/${P}-gentoo.patch
73
74 sed \
75 -e "s/@TVV@/${MV}/g" \
76 "${FILESDIR}"/${PN}d.init > "${T}"/${PN}d${MV} || die
77
78 sed -i \
79 -e "s#/opt/teamviewer8/tv_bin/teamviewerd#/opt/${MY_PN}/teamviewerd#" \
80 script/${PN}d.service || die
81 }
82
83 src_install () {
84 if use system-wine ; then
85 make_winewrapper
86 exeinto /opt/${MY_PN}
87 doexe wine/drive_c/TeamViewer/*
88 else
89 # install scripts and .reg
90 insinto /opt/${MY_PN}/script
91 doins script/*.reg
92 exeinto /opt/${MY_PN}/script
93 doexe script/teamviewer{,_desktop} script/tvw_{aux,config,main,profile}
94
95 # install internal wine
96 insinto /opt/${MY_PN}
97 doins -r wine
98 dosym /opt/${MY_PN}/script/${PN} /opt/bin/${MY_PN}
99
100 # fix permissions
101 fperms 755 /opt/${MY_PN}/wine/bin/wine{,-preloader,server}
102 fperms 755 /opt/${MY_PN}/wine/drive_c/TeamViewer/TeamViewer{,_Desktop}.exe
103 find "${D}"/opt/${MY_PN} -type f -name "*.so*" -execdir chmod 755 '{}' \;
104 fi
105
106 # necessary symlinks
107 dosym ./script/teamviewer /opt/${MY_PN}/TeamViewer
108 dosym ./script/teamviewer_desktop /opt/${MY_PN}/TeamViewer_Desktop
109
110 # install daemon binary
111 exeinto /opt/${MY_PN}
112 doexe ${PN}d
113
114 # set up logdir
115 keepdir /var/log/${MY_PN}
116 dosym /var/log/${MY_PN} /opt/${MY_PN}/logfiles
117
118 # set up config dir
119 keepdir /etc/${MY_PN}
120 dosym /etc/${MY_PN} /opt/${MY_PN}/config
121
122 doinitd "${T}"/${PN}d${MV}
123 systemd_dounit script/${PN}d.service
124
125 newicon -s 48 desktop/${PN}.png ${MY_PN}.png
126 dodoc ../doc/linux_FAQ_{EN,DE}.txt
127 make_desktop_entry ${MY_PN} TeamViewer ${MY_PN}
128 }
129
130 pkg_preinst() {
131 gnome2_icon_savelist
132 }
133
134 pkg_postinst() {
135 gnome2_icon_cache_update
136
137 if use system-wine ; then
138 echo
139 eerror "IMPORTANT NOTICE!"
140 elog "Using ${PN} with system wine is not supported and experimental."
141 elog "Do not report gentoo bugs while using this version."
142 echo
143 fi
144
145 eerror "STARTUP NOTICE:"
146 elog "You cannot start the daemon via \"teamviewer --daemon start\"."
147 elog "Instead use the provided gentoo initscript:"
148 elog " /etc/init.d/${PN}d${MV} start"
149 elog
150 elog "Logs are written to \"/var/log/teamviewer8\""
151
152 echo
153
154 eerror "UPDATE NOTICE!"
155 ewarn "If you update from teamviewer-8.0.17147"
156 ewarn "then you might have to remove \"~/.config/teamviewer8\", because"
157 ewarn "the install destination changed and the config might be invalid."
158 }
159
160 pkg_postrm() {
161 gnome2_icon_cache_update
162 }

  ViewVC Help
Powered by ViewVC 1.1.20