/[gentoo-x86]/net-misc/tightvnc/tightvnc-1.3.8.ebuild
Gentoo

Contents of /net-misc/tightvnc/tightvnc-1.3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Apr 12 21:00:48 2007 UTC (12 years, 9 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Add init scripts, bug 39023 and remove vulnerable version
(Portage version: 2.1.2.3)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-1.3.8.ebuild,v 1.5 2007/02/26 12:39:36 armin76 Exp $
4
5 inherit eutils toolchain-funcs
6
7 IUSE="java tcpd server"
8
9 S="${WORKDIR}/vnc_unixsrc"
10 DESCRIPTION="A great client/server software package allowing remote network access to graphical desktops."
11 SRC_URI="mirror://sourceforge/vnc-tight/${P}_unixsrc.tar.bz2"
12 HOMEPAGE="http://www.tightvnc.com/"
13
14 KEYWORDS="~alpha ~amd64 hppa ~mips ~ppc ~ppc-macos ~sparc ~x86"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 DEPEND="x11-libs/libX11
19 x11-libs/libXaw
20 x11-libs/libXmu
21 x11-libs/libXp
22 x11-libs/libXt
23 x11-proto/xextproto
24 x11-proto/xproto
25 server? (
26 x11-proto/inputproto
27 x11-proto/kbproto
28 x11-proto/printproto
29 )
30 >=x11-misc/imake-1
31 x11-misc/gccmakedep
32 ~media-libs/jpeg-6b
33 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
34 !net-misc/vnc"
35
36 RDEPEND="${DEPEND}
37 server? (
38 media-fonts/font-misc-misc
39 media-fonts/font-cursor-misc
40 x11-apps/rgb
41 x11-apps/xauth
42 x11-apps/xsetroot
43 )
44 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
45
46 src_unpack() {
47
48 if ! use server;
49 then
50 echo
51 einfo "The 'server' USE flag will build tightvnc's server."
52 einfo "If '-server' is chosen only the client is built to save space."
53 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
54 ebeep
55 epause 5
56 fi
57
58 unpack ${A} && cd ${S}
59 epatch "${FILESDIR}/${P}-pathfixes.patch" # fixes bug 78385 and 146099
60 epatch "${FILESDIR}/${P}-imake-tmpdir.patch" # fixes bug 23483
61 epatch "${FILESDIR}/${P}-darwin.patch" # fixes bug 89908
62 use amd64 && epatch "${FILESDIR}/${P}-amd64.patch" # fixes bug 82583
63 use mips && epatch "${FILESDIR}/${P}-mips.patch"
64 }
65
66 src_compile() {
67 xmkmf -a || die "xmkmf failed"
68
69 make CDEBUGFLAGS="${CFLAGS}" World || die
70
71 if use server; then
72 cd Xvnc && ./configure || die "Configure failed."
73 if use tcpd; then
74 local myextra="-lwrap"
75 use userland_Darwin || myextra="${myextra} -lnss_nis"
76 make EXTRA_LIBRARIES="${myextra}" \
77 CDEBUGFLAGS="${CFLAGS}" \
78 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
79 else
80 make CDEBUGFLAGS="${CFLAGS}" || die
81 fi
82 fi
83
84 }
85
86 src_install() {
87 # the web based interface and the java viewer need the java class files
88 if use java; then
89 insinto /usr/share/tightvnc/classes
90 doins classes/*
91 fi
92
93 dodir /usr/share/man/man1 /usr/bin
94 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
95
96 if ! use server; then
97 rm -f ${D}/usr/bin/vncserver
98 rm -f ${D}/usr/share/man/man1/{Xvnc,vncserver}*
99 fi
100
101 doicon ${FILESDIR}/vncviewer.png
102 make_desktop_entry vncviewer vncviewer vncviewer.png Network
103
104 dodoc ChangeLog README WhatsNew
105 use java && dodoc ${FILESDIR}/README.JavaViewer
106 newdoc vncviewer/README README.vncviewer
107 }

  ViewVC Help
Powered by ViewVC 1.1.20