Annotation of /trunk/deprecated/vnc/vnc-4.1.3-r1.smage2
Parent Directory | Revision Log
Revision 1706 -
(hide annotations)
(download)
Tue May 19 16:10:52 2009 UTC (15 years, 1 month ago) by niro
Original Path: trunk/extras/vnc/vnc-4.1.3-r1.smage2
File size: 8415 byte(s)
Tue May 19 16:10:52 2009 UTC (15 years, 1 month ago) by niro
Original Path: trunk/extras/vnc/vnc-4.1.3-r1.smage2
File size: 8415 byte(s)
-added patch to fix issues with libtool2.2 (missing AC_PROG_CXX statement in configure.ac)
1 | niro | 1704 | # $Id$ |
2 | |||
3 | PNAME="vnc" | ||
4 | PVER="4.1.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="RealVNC vnc server and client utilities." | ||
11 | HOMEPAGE="http://www.realvnc.com/" | ||
12 | |||
13 | sminclude xorg xdg | ||
14 | |||
15 | DEPEND=">= x11-libs/libSM-1 | ||
16 | >= x11-libs/libXtst-1 | ||
17 | >= x11-libs/libXi-1 | ||
18 | >= x11-libs/libXmu-1 | ||
19 | >= x11-libs/libXrender-1 | ||
20 | >= sys-libs/zlib-1.2.3 | ||
21 | >= media-libs/freetype-2.3.9" | ||
22 | |||
23 | SDEPEND=">= dev-util/desktop-file-utils-0.15 | ||
24 | >= x11-proto/xextproto-7" | ||
25 | |||
26 | SRCFILE="${PNAME}-$(echo ${PVER} | sed "s:\.:_:g")-unixsrc.tar.gz" | ||
27 | SRCDIR="${BUILDDIR}/${PNAME}-$(echo ${PVER} | sed "s:\.:_:g")-unixsrc" | ||
28 | |||
29 | XORG_PVER="1.6.1" | ||
30 | XORG="xorg-server-${XORG_PVER}.tar.bz2" | ||
31 | XORGSDIR="${BUILDDIR}/xorg-server-${XORG_PVER}" | ||
32 | XORGDDIR="${SRCDIR}/unix/xorg-x11-server-source" | ||
33 | |||
34 | sminclude mtools xdg | ||
35 | |||
36 | SRC_URI=( | ||
37 | mirror://${PNAME}/${SRCFILE} | ||
38 | http://ftp.x.org/pub/individual/xserver/${XORG} | ||
39 | mirror://xorg-server/${XORG} | ||
40 | mirror://${PNAME}/vnc-48x48.png | ||
41 | mirror://${PNAME}/vnc-cookie.patch | ||
42 | mirror://${PNAME}/vnc-gcc4.patch | ||
43 | mirror://${PNAME}/vnc-via.patch | ||
44 | mirror://${PNAME}/vnc-idle.patch | ||
45 | mirror://${PNAME}/vnc-fPIC.patch | ||
46 | mirror://${PNAME}/vnc-restart.patch | ||
47 | mirror://${PNAME}/vnc-use-fb.patch | ||
48 | mirror://${PNAME}/vnc-xclients.patch | ||
49 | mirror://${PNAME}/vnc-render-2.patch | ||
50 | mirror://${PNAME}/vnc-nohttpd.patch | ||
51 | mirror://${PNAME}/vnc-vncpasswd.patch | ||
52 | mirror://${PNAME}/vnc-server-modular-xorg-2.patch | ||
53 | niro | 1705 | mirror://${PNAME}/vnc-server-xorg-3.patch |
54 | niro | 1704 | mirror://${PNAME}/vnc-viewer-reparent.patch |
55 | mirror://${PNAME}/vnc-64bit.patch | ||
56 | mirror://${PNAME}/vnc-select.patch | ||
57 | mirror://${PNAME}/vnc-newfbsize.patch | ||
58 | mirror://${PNAME}/vnc-gnome-mouse-locale.patch | ||
59 | mirror://${PNAME}/vnc-ipv6-2.patch | ||
60 | mirror://${PNAME}/vnc-password-stdin.patch | ||
61 | mirror://${PNAME}/vnc-config.patch | ||
62 | mirror://${PNAME}/vnc-render.patch | ||
63 | mirror://${PNAME}/vnc-autotools-2.patch | ||
64 | mirror://${PNAME}/vnc-autotools-compile.patch | ||
65 | mirror://${PNAME}/vnc-server-always-use-fb-2.patch | ||
66 | mirror://${PNAME}/vnc-vsnprintf.patch | ||
67 | mirror://${PNAME}/vnc-manminor.patch | ||
68 | mirror://${PNAME}/vnc-scrollbars.patch | ||
69 | mirror://${PNAME}/vnc-24bit.patch | ||
70 | mirror://${PNAME}/vnc-clipboard.patch | ||
71 | mirror://${PNAME}/vnc-server-allocate.patch | ||
72 | mirror://${PNAME}/vnc-server-bounds.patch | ||
73 | mirror://${PNAME}/vnc-server-includes.patch | ||
74 | mirror://${PNAME}/vnc-server-mieq.patch | ||
75 | mirror://${PNAME}/vnc-server-noxkb.patch | ||
76 | mirror://${PNAME}/vnc-server-paint.patch | ||
77 | mirror://${PNAME}/vnc-server-privates.patch | ||
78 | mirror://${PNAME}/vnc-server-selections.patch | ||
79 | niro | 1706 | mirror://${PNAME}/vnc-server-libtool-2.2.patch |
80 | niro | 1704 | mirror://${PNAME}/Makefile.am |
81 | ) | ||
82 | |||
83 | src_prepare() | ||
84 | { | ||
85 | munpack ${SRCFILE} || die | ||
86 | munpack ${XORG} || die | ||
87 | mv ${XORGSDIR} ${XORGDDIR} || die | ||
88 | cd ${SRCDIR} | ||
89 | |||
90 | # client patches | ||
91 | mpatch vnc-cookie.patch || die | ||
92 | mpatch vnc-gcc4.patch || die | ||
93 | mpatch vnc-via.patch || die | ||
94 | mpatch vnc-idle.patch || die | ||
95 | mpatch vnc-fPIC.patch || die | ||
96 | mpatch vnc-restart.patch || die | ||
97 | mpatch vnc-viewer-reparent.patch || die | ||
98 | mpatch vnc-newfbsize.patch || die | ||
99 | mpatch vnc-gnome-mouse-locale.patch || die | ||
100 | # must use -Np1 here, patch create new files | ||
101 | mpatch -Np1 vnc-autotools-2.patch || die | ||
102 | mpatch vnc-ipv6-2.patch || die | ||
103 | mpatch vnc-password-stdin.patch || die | ||
104 | mpatch vnc-vsnprintf.patch || die | ||
105 | mpatch vnc-manminor.patch || die | ||
106 | mpatch vnc-scrollbars.patch || die | ||
107 | |||
108 | # x11 module and server patches | ||
109 | mpatch vnc-use-fb.patch || die | ||
110 | mpatch vnc-xclients.patch || die | ||
111 | mpatch vnc-render-2.patch || die | ||
112 | mpatch vnc-64bit.patch || die | ||
113 | mpatch vnc-select.patch || die | ||
114 | mpatch vnc-config.patch || die | ||
115 | mpatch vnc-autotools-compile.patch || die | ||
116 | mpatch vnc-clipboard.patch || die | ||
117 | |||
118 | # adds -nohttpd option to vncserver | ||
119 | mpatch vnc-nohttpd.patch || die | ||
120 | |||
121 | # fix crashes | ||
122 | mpatch vnc-vncpasswd.patch || die | ||
123 | |||
124 | # patches for the server module to xvnc.cc, before we copy it | ||
125 | mpatch vnc-server-modular-xorg-2.patch || die | ||
126 | mpatch vnc-server-always-use-fb-2.patch || die | ||
127 | mpatch vnc-24bit.patch || die | ||
128 | |||
129 | # needed files for xorg | ||
130 | cd ${SRCDIR}/unix | ||
131 | install -d ${XORGDDIR}/hw/vnc || die | ||
132 | # copy missing makefile | ||
133 | cp ${SOURCEDIR}/${PNAME}/Makefile.am ${XORGDDIR}/hw/vnc || die | ||
134 | cp -a xc/programs/Xserver/vnc/Xvnc/xvnc.cc ${XORGDDIR}/hw/vnc || die | ||
135 | cp -a xc/programs/Xserver/Xvnc.man ${XORGDDIR}/hw/vnc || die | ||
136 | cp -a xc/programs/Xserver/vnc/*.{h,cc} ${XORGDDIR}/hw/vnc || die | ||
137 | |||
138 | # patches for xorg-src | ||
139 | cd ${XORGDDIR} | ||
140 | niro | 1705 | mpatch vnc-server-xorg-3.patch || die |
141 | niro | 1704 | cd ${SRCDIR} |
142 | mpatch vnc-server-allocate.patch || die | ||
143 | mpatch vnc-server-bounds.patch || die | ||
144 | mpatch vnc-server-mieq.patch || die | ||
145 | mpatch vnc-server-noxkb.patch || die | ||
146 | mpatch vnc-server-paint.patch || die | ||
147 | cd ${XORGDDIR}/hw/vnc | ||
148 | mpatch vnc-server-privates.patch || die | ||
149 | cd ${SRCDIR} | ||
150 | mpatch vnc-server-selections.patch || die | ||
151 | mpatch vnc-server-includes.patch || die | ||
152 | niro | 1706 | mpatch vnc-server-libtool-2.2.patch || die |
153 | niro | 1704 | |
154 | cd ${XORGDDIR} | ||
155 | # this fixes errors like: | ||
156 | # hw/dmx/doc/Makefile.am:24: BUILD_LINUXDOC does not appear in AM_CONDITIONAL | ||
157 | # hw/dmx/doc/Makefile.am:27: BUILD_PDFDOC does not appear in AM_CONDITIONAL | ||
158 | # !!remove this one with the next xorg-server dump!! | ||
159 | echo 'AM_CONDITIONAL([BUILD_PDFDOC], [ test x = y ])' >> configure.ac || die | ||
160 | echo 'AM_CONDITIONAL([BUILD_LINUXDOC], [ test x = y ])' >> configure.ac || die | ||
161 | autoreconf --verbose --install --force || die | ||
162 | |||
163 | # vnc-use-fb.patch patches the configure.in | ||
164 | cd ${SRCDIR}/unix | ||
165 | autoreconf --verbose --install --force || die | ||
166 | |||
167 | cd ${SRCDIR}/common | ||
168 | autoreconf --verbose --install --force || die | ||
169 | } | ||
170 | |||
171 | src_compile() | ||
172 | { | ||
173 | cd ${SRCDIR}/common | ||
174 | mconfigure || die | ||
175 | mmake || die | ||
176 | |||
177 | cd ${SRCDIR}/unix | ||
178 | mconfigure || die | ||
179 | mmake || die | ||
180 | |||
181 | # fixed build issues | ||
182 | export CFLAGS="${CFLAGS} -I/usr/include/drm" | ||
183 | export CXXFLAGS="${CXXFLAGS} -I/usr/include/drm" | ||
184 | |||
185 | # build the x11 module | ||
186 | cd ${XORGDDIR} | ||
187 | mconfigure \ | ||
188 | --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ | ||
189 | --with-rgb-path=/usr/share/X11/rgb.txt \ | ||
190 | --with-xkb-output=/usr/share/X11/xkb \ | ||
191 | --with-pic \ | ||
192 | --disable-xorg \ | ||
193 | --disable-composite \ | ||
194 | --enable-xtrap \ | ||
195 | --enable-xcsecurity \ | ||
196 | --enable-glx \ | ||
197 | --disable-xnest \ | ||
198 | --disable-xvfb \ | ||
199 | --disable-dmx \ | ||
200 | --disable-xwin \ | ||
201 | --disable-xephyr \ | ||
202 | --disable-kdrive \ | ||
203 | --disable-xorgcfg \ | ||
204 | --disable-xprint \ | ||
205 | --disable-static \ | ||
206 | --disable-xevie \ | ||
207 | --disable-dri \ | ||
208 | --disable-dri2 \ | ||
209 | --disable-config-dbus \ | ||
210 | --disable-config-hal \ | ||
211 | --enable-install-libxf86config \ | ||
212 | || die | ||
213 | |||
214 | mmake || die | ||
215 | } | ||
216 | |||
217 | src_install() | ||
218 | { | ||
219 | cd ${SRCDIR}/common | ||
220 | make DESTDIR=${BINDIR} install || die | ||
221 | |||
222 | cd ${SRCDIR}/unix | ||
223 | make DESTDIR=${BINDIR} install || die | ||
224 | |||
225 | # install server binaries | ||
226 | minstallexec vncserver || die | ||
227 | |||
228 | # install server module and binaries | ||
229 | cd ${XORGDDIR}/hw/vnc | ||
230 | make DESTDIR=${BINDIR} install || die | ||
231 | |||
232 | # not needed | ||
233 | rm ${BINDIR}/usr/$(mlibdir)/xorg/modules/extensions/libvnc.la || die | ||
234 | rm ${BINDIR}/usr/$(mlibdir)/librfb.{a,la,so} || die | ||
235 | |||
236 | # install man pages | ||
237 | mv ${SRCDIR}/unix/vncviewer/vncviewer.{man,1} || die | ||
238 | mv ${SRCDIR}/unix/vncpasswd/vncpasswd.{man,1} || die | ||
239 | mv ${SRCDIR}/unix/vncconfig/vncconfig.{man,1} || die | ||
240 | mv ${SRCDIR}/unix/vncserver.{man,1} || die | ||
241 | mv ${SRCDIR}/unix/x0vncserver/x0vncserver.{man,1} || die | ||
242 | mv ${XORGDDIR}/hw/vnc/Xvnc.{man,1} || die | ||
243 | minstallman ${SRCDIR}/unix/vncviewer/vncviewer.1 || die | ||
244 | minstallman ${SRCDIR}/unix/vncpasswd/vncpasswd.1 || die | ||
245 | minstallman ${SRCDIR}/unix/vncconfig/vncconfig.1 || die | ||
246 | minstallman ${SRCDIR}/unix/vncserver.1 || die | ||
247 | minstallman ${SRCDIR}/unix/x0vncserver/x0vncserver.1 || die | ||
248 | minstallman ${XORGDDIR}/hw/vnc/Xvnc.1 || die | ||
249 | |||
250 | # desktop icon | ||
251 | minstallpixmap vnc-48x48.png vncviewer.png || die | ||
252 | minstall_desktop_icon \ | ||
253 | --name "VNC Viewer" \ | ||
254 | --file "vncviewer" \ | ||
255 | --comment "VNC client application" \ | ||
256 | --exec /usr/bin/vncviewer \ | ||
257 | --icon vncviewer.png \ | ||
258 | --categories "Utility,Network" \ | ||
259 | || die | ||
260 | |||
261 | # docs | ||
262 | cd ${SRCDIR} | ||
263 | minstalldocs README LICENCE.TXT || die | ||
264 | } | ||
265 | |||
266 | postinstall() | ||
267 | { | ||
268 | echo | ||
269 | echo "Add following to /etc/X11/xorg.conf for native X display support:" | ||
270 | echo ' Section "Module"' | ||
271 | echo " ..." | ||
272 | echo ' Load "vnc"' | ||
273 | echo " EndSection" | ||
274 | echo | ||
275 | echo "To enable VNC password authentification use the vncpasswd program:" | ||
276 | echo " 'vncpasswd'" | ||
277 | echo | ||
278 | echo "You will also need to tell the VNC module where the password is stored:" | ||
279 | echo ' Section "Screen"' | ||
280 | echo " ..." | ||
281 | echo ' Option "SecurityTypes" "VncAuth"' | ||
282 | echo ' Option "UserPasswdVerifier" "VncAuth"' | ||
283 | echo ' Option "PasswordFile" "/root/.vnc/passwd"' | ||
284 | echo " EndSection" | ||
285 | echo | ||
286 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |