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

Contents of /net-misc/tightvnc/tightvnc-1.2.9-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Jun 26 17:33:04 2007 UTC (12 years, 7 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
drop old, yay
(Portage version: 2.1.3_rc5)

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.2.9-r4.ebuild,v 1.8 2007/04/16 23:17:00 kloeri 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 ppc 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}-gentoo.security.patch"
60 epatch "${FILESDIR}/${P}-imake-tmpdir.patch"
61 [[ "$(gcc-version)" == "3.4" ]] || [[ "$(gcc-major-version)" == "4" ]] && epatch ${FILESDIR}/${P}-gcc34.patch
62 epatch "${FILESDIR}/x86.patch"
63 epatch "${FILESDIR}/${P}-amd64.patch"
64 epatch "${FILESDIR}/${PN}-ppcsparc-server.patch"
65 epatch "${FILESDIR}/${P}-pathfixes.patch" # fixes bug 78385 and 146099
66 epatch "${FILESDIR}"/server-CVE-2007-1003.patch
67 epatch "${FILESDIR}"/server-CVE-2007-1351-1352.patch
68 }
69
70 src_compile() {
71 xmkmf -a || die "xmkmf failed"
72
73 make CDEBUGFLAGS="${CFLAGS}" World || die
74
75 if use server; then
76 cd Xvnc && ./configure || die "Configure failed."
77 if use tcpd; then
78 local myextra="-lwrap"
79 use userland_Darwin || myextra="${myextra} -lnss_nis"
80 make EXTRA_LIBRARIES="${myextra}" \
81 CDEBUGFLAGS="${CFLAGS}" \
82 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
83 else
84 make CDEBUGFLAGS="${CFLAGS}" || die
85 fi
86 fi
87
88 }
89
90 src_install() {
91 # the web based interface and the java viewer need the java class files
92 if use java; then
93 insinto /usr/share/tightvnc/classes
94 doins classes/*
95 fi
96
97 dodir /usr/share/man/man1 /usr/bin
98 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
99
100 if use server; then
101 newconfd "${FILESDIR}"/tightvnc.confd vnc
102 newinitd "${FILESDIR}"/tightvnc.initd vnc
103 else
104 rm -f ${D}/usr/bin/vncserver
105 rm -f ${D}/usr/share/man/man1/{Xvnc,vncserver}*
106 fi
107
108 doicon ${FILESDIR}/vncviewer.png
109 make_desktop_entry vncviewer vncviewer vncviewer.png Network
110
111
112 dodoc ChangeLog README WhatsNew
113 use java && dodoc ${FILESDIR}/README.JavaViewer
114 newdoc vncviewer/README README.vncviewer
115 }

  ViewVC Help
Powered by ViewVC 1.1.20