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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Mar 25 16:13:57 2008 UTC (11 years, 8 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 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.9.ebuild,v 1.14 2008/02/29 20:18:18 carlo 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 sparc x86 ~x86-fbsd"
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}/${PN}-1.3.8-pathfixes.patch" # fixes bug 78385 and 146099
60 epatch "${FILESDIR}/${PN}-1.3.8-imake-tmpdir.patch" # fixes bug 23483
61 epatch "${FILESDIR}/${PN}-1.3.8-darwin.patch" # fixes bug 89908
62 use mips && epatch "${FILESDIR}/${PN}-1.3.8-mips.patch"
63 epatch "${FILESDIR}"/server-CVE-2007-1003.patch
64 epatch "${FILESDIR}"/server-CVE-2007-1351-1352.patch
65 epatch "${FILESDIR}"/${PV}-fbsd.patch
66
67 }
68
69 src_compile() {
70 xmkmf -a || die "xmkmf failed"
71
72 make CDEBUGFLAGS="${CFLAGS}" World || die
73
74 if use server; then
75 cd Xvnc && ./configure || die "Configure failed."
76 if use tcpd; then
77 local myextra="-lwrap"
78 make EXTRA_LIBRARIES="${myextra}" \
79 CDEBUGFLAGS="${CFLAGS}" \
80 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
81 else
82 make CDEBUGFLAGS="${CFLAGS}" || die
83 fi
84 fi
85
86 }
87
88 src_install() {
89 # the web based interface and the java viewer need the java class files
90 if use java; then
91 insinto /usr/share/tightvnc/classes
92 doins classes/*
93 fi
94
95 dodir /usr/share/man/man1 /usr/bin
96 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
97
98 if use server; then
99 newconfd "${FILESDIR}"/tightvnc.confd vnc
100 newinitd "${FILESDIR}"/tightvnc.initd vnc
101 else
102 rm -f ${D}/usr/bin/vncserver
103 rm -f ${D}/usr/share/man/man1/{Xvnc,vncserver}*
104 fi
105
106 doicon ${FILESDIR}/vncviewer.png
107 make_desktop_entry vncviewer vncviewer vncviewer Network
108
109 dodoc ChangeLog README WhatsNew
110 use java && dodoc ${FILESDIR}/README.JavaViewer
111 newdoc vncviewer/README README.vncviewer
112 }

  ViewVC Help
Powered by ViewVC 1.1.20