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

Contents of /net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Sat Jun 13 09:34:25 2015 UTC (4 years, 7 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

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/tightvnc/tightvnc-1.3.10-r1.ebuild,v 1.19 2014/08/10 20:48:18 slyfox Exp $
4
5 EAPI=3
6 inherit eutils toolchain-funcs java-pkg-opt-2
7
8 IUSE="java tcpd server"
9
10 S="${WORKDIR}/vnc_unixsrc"
11 DESCRIPTION="A great client/server software package allowing remote network access to graphical desktops"
12 SRC_URI="mirror://sourceforge/vnc-tight/${P}_unixsrc.tar.bz2
13 mirror://gentoo/${PN}.png
14 java? ( mirror://sourceforge/vnc-tight/${P}_javasrc.tar.gz )"
15 HOMEPAGE="http://www.tightvnc.com/"
16
17 KEYWORDS="alpha amd64 arm ~mips ppc sh sparc x86 ~x86-fbsd ~arm-linux ~x86-linux"
18 LICENSE="GPL-2"
19 SLOT="0"
20
21 CDEPEND="media-fonts/font-misc-misc
22 virtual/jpeg
23 server? (
24 media-fonts/font-cursor-misc
25 x11-apps/rgb
26 x11-apps/xauth
27 x11-apps/xsetroot
28 )
29 x11-libs/libX11
30 x11-libs/libXaw
31 x11-libs/libXmu
32 x11-libs/libXp
33 x11-libs/libXt
34 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )"
35 RDEPEND="${CDEPEND}
36 java? ( >=virtual/jre-1.4 )"
37 DEPEND="${CDEPEND}
38 java? ( >=virtual/jdk-1.4 )
39 x11-proto/xextproto
40 x11-proto/xproto
41 server? (
42 x11-proto/inputproto
43 x11-proto/kbproto
44 x11-proto/printproto
45 )
46 >=x11-misc/imake-1
47 x11-misc/gccmakedep
48 x11-misc/makedepend
49 !net-misc/tigervnc"
50
51 src_unpack() {
52
53 if ! use server;
54 then
55 echo
56 einfo "The 'server' USE flag will build tightvnc's server."
57 einfo "If '-server' is chosen only the client is built to save space."
58 einfo "Stop the build now if you need to add 'server' to USE flags.\n"
59 fi
60
61 unpack ${A}
62 }
63
64 src_prepare() {
65 epatch "${FILESDIR}/${PN}-1.3.10-pathfixes.patch" # fixes bug 78385 and 146099
66 epatch "${FILESDIR}/${PN}-1.3.8-imake-tmpdir.patch" # fixes bug 23483
67 epatch "${FILESDIR}/${PN}-1.3.8-darwin.patch" # fixes bug 89908
68 epatch "${FILESDIR}/${PN}-1.3.8-mips.patch"
69 epatch "${FILESDIR}"/server-CVE-2007-1003.patch
70 epatch "${FILESDIR}"/server-CVE-2007-1351-1352.patch
71 epatch "${FILESDIR}"/1.3.9-fbsd.patch
72 epatch "${FILESDIR}"/1.3.9-arm.patch
73 epatch "${FILESDIR}"/1.3.9-sh.patch
74 epatch "${FILESDIR}"/${PV}-sparc.patch
75 sed -e "s:\\(/etc/\\|/usr/share/\\):${EPREFIX}\\1:g" -i vncserver || die
76
77 if use java; then
78 cd "${WORKDIR}"
79 epatch "${FILESDIR}/${PN}-1.3.10-java-build.patch"
80 fi
81 }
82
83 src_compile() {
84 xmkmf -a || die "xmkmf failed"
85
86 make CDEBUGFLAGS="${CFLAGS}" World || die
87
88 if use server; then
89 cd Xvnc && ./configure || die "Configure failed."
90 if use tcpd; then
91 local myextra="-lwrap"
92 make EXTRA_LIBRARIES="${myextra}" \
93 CDEBUGFLAGS="${CFLAGS}" \
94 EXTRA_DEFINES="-DUSE_LIBWRAP=1" || die
95 else
96 make CDEBUGFLAGS="${CFLAGS}" || die
97 fi
98 fi
99 if use java; then
100 cd "${WORKDIR}/vnc_javasrc" || die
101 make JAVACFLAGS="$(java-pkg_javac-args)" all || die
102 fi
103
104 }
105
106 src_install() {
107 # the web based interface and the java viewer need the java class files
108 if use java; then
109 java-pkg_newjar "${WORKDIR}/vnc_javasrc/VncViewer.jar"
110 java-pkg_dolauncher "${PN}-java"
111 insinto /usr/share/${PN}/classes
112 doins "${WORKDIR}"/vnc_javasrc/*.vnc || die
113 dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/${PN}/classes/VncViewer.jar
114
115 fi
116
117 dodir /usr/share/man/man1 /usr/bin
118 ./vncinstall "${ED}"/usr/bin "${ED}"/usr/share/man || die "vncinstall failed"
119
120 if use server; then
121 newconfd "${FILESDIR}"/tightvnc.confd vnc
122 newinitd "${FILESDIR}"/tightvnc.initd vnc
123 else
124 rm -f "${ED}"/usr/bin/vncserver
125 rm -f "${ED}"/usr/share/man/man1/{Xvnc,vncserver}*
126 fi
127
128 newicon "${DISTDIR}"/tightvnc.png vncviewer.png
129 make_desktop_entry vncviewer vncviewer vncviewer Network
130
131 dodoc ChangeLog README WhatsNew
132 use java && dodoc "${FILESDIR}"/README.JavaViewer
133 newdoc vncviewer/README README.vncviewer
134 }

  ViewVC Help
Powered by ViewVC 1.1.20