Annotation of /trunk/extras/nxclient/nxclient-3.4.0-r1.smage2
Parent Directory | Revision Log
Revision 4073 -
(hide annotations)
(download)
Tue Nov 17 22:23:07 2009 UTC (14 years, 7 months ago) by niro
File size: 3636 byte(s)
Tue Nov 17 22:23:07 2009 UTC (14 years, 7 months ago) by niro
File size: 3636 byte(s)
auto added: ver bump to 3.4.0-r1
1 | niro | 4073 | # $Id$ |
2 | |||
3 | PNAME="nxclient" | ||
4 | PVER="3.4.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="A client for NX servers." | ||
11 | HOMEPAGE="http://www.nomachine.com/" | ||
12 | |||
13 | DEPEND=">= dev-libs/expat-2 | ||
14 | >= media-libs/freetype-2 | ||
15 | >= media-libs/fontconfig-2 | ||
16 | >= x11-libs/libXft-1 | ||
17 | >= x11-libs/libX11-1 | ||
18 | >= x11-libs/libXdmcp-1 | ||
19 | >= x11-libs/libXrender-0.9 | ||
20 | >= x11-libs/libXau-1 | ||
21 | >= x11-libs/libXext-1 | ||
22 | >= sys-libs/zlib-1.2 | ||
23 | >= media-libs/libjpeg-7 | ||
24 | >= media-libs/libpng-1.2.40 | ||
25 | >= dev-libs/openssl-0.9.8k | ||
26 | >= media-libs/audiofile-0.2.6 | ||
27 | >= net-print/cups-1.4" | ||
28 | |||
29 | SDEPEND=">= dev-util/desktop-file-utils-0.15" | ||
30 | |||
31 | NXPVER="${PVER}-5" | ||
32 | NXPVER64="${NXPVER}" | ||
33 | # both files must be fetch or our md5-logic breaks | ||
34 | SRCFILE_x86="${PNAME}-${NXPVER}.i386.tar.gz" | ||
35 | SRCFILE_x86_64="${PNAME}-${NXPVER64}.x86_64.tar.gz" | ||
36 | # decide between x86 and x86_64 arch | ||
37 | SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})" | ||
38 | SRCDIR="${BUILDDIR}/NX" | ||
39 | |||
40 | NXSSH_PVER="${PVER}-1" | ||
41 | NXSSH_SRCFILE="nxssh-${NXSSH_PVER}.tar.gz" | ||
42 | NXSSH_SRCDIR="${BUILDDIR}/nxssh" | ||
43 | |||
44 | NXCOMP_PVER="${PVER}-1" | ||
45 | NXCOMP_SRCFILE="nxcomp-${NXCOMP_PVER}.tar.gz" | ||
46 | NXCOMP_SRCDIR="${BUILDDIR}/nxcomp" | ||
47 | |||
48 | sminclude mtools xdg | ||
49 | |||
50 | SRC_URI=( | ||
51 | http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86} | ||
52 | http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86_64} | ||
53 | http://web04.nomachine.com/download/${PVER}/sources/${NXSSH_SRCFILE} | ||
54 | http://web04.nomachine.com/download/${PVER}/sources/${NXCOMP_SRCFILE} | ||
55 | mirror://${PNAME}/${SRCFILE_x86} | ||
56 | mirror://${PNAME}/${SRCFILE_x86_64} | ||
57 | mirror://${PNAME}/${NXSSH_SRCFILE} | ||
58 | mirror://${PNAME}/${NXCOMP_SRCFILE} | ||
59 | mirror://${PNAME}/nxclient-wrapper | ||
60 | ) | ||
61 | |||
62 | UP2DATE="updatecmd ${HOMEPAGE}/sources.php | grep nx-X11 | sed 's/.*nx-X11-\(.*\)-.*/\1/;q'" | ||
63 | |||
64 | src_prepare() | ||
65 | { | ||
66 | munpack ${SRCFILE} || die | ||
67 | munpack ${NXCOMP_SRCFILE} || die | ||
68 | munpack ${NXSSH_SRCFILE} || die | ||
69 | } | ||
70 | |||
71 | src_compile() | ||
72 | { | ||
73 | # nxcomp is needed to successfully compile nxssh | ||
74 | cd ${NXCOMP_SRCDIR} | ||
75 | ./configure || die | ||
76 | mmake || die | ||
77 | |||
78 | # we rebuild nxssh to be compatible with our openssl version | ||
79 | cd ${NXSSH_SRCDIR} | ||
80 | ./configure --prefix=/usr/NX || die | ||
81 | mmake || die | ||
82 | } | ||
83 | |||
84 | src_install() | ||
85 | { | ||
86 | cd ${SRCDIR} | ||
87 | |||
88 | # needed directories | ||
89 | minstalldir /usr/bin || die | ||
90 | minstalldir /usr/NX/bin || die | ||
91 | minstalldir /usr/NX/lib || die | ||
92 | minstalldir /usr/NX/share || die | ||
93 | |||
94 | local i | ||
95 | for i in nxclient nxesd nxkill nxprint nxservice | ||
96 | do | ||
97 | minstallexec -s nxclient-wrapper /usr/bin/${i} || die | ||
98 | minstallexec ${SRCDIR}/bin/${i} /usr/NX/bin || die | ||
99 | done | ||
100 | |||
101 | # install our rebuilded nxssh | ||
102 | minstallexec -s nxclient-wrapper /usr/bin/nxssh || die | ||
103 | minstallexec ${NXSSH_SRCDIR}/nxssh /usr/NX/bin || die | ||
104 | |||
105 | # install libs | ||
106 | cp -a ${SRCDIR}/lib/libXcomp.so* ${BINDIR}/usr/NX/lib || die | ||
107 | cp -a ${SRCDIR}/lib/libXcompsh.so* ${BINDIR}/usr/NX/lib || die | ||
108 | |||
109 | # share data | ||
110 | cp -a ${SRCDIR}/share/* ${BINDIR}/usr/NX/share || die | ||
111 | |||
112 | # install some desktop icons | ||
113 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-icon.png nxclient.png | ||
114 | minstall_desktop_icon \ | ||
115 | --name NXClient \ | ||
116 | --comment "NoMachine NX Client" \ | ||
117 | --file "nxclient" \ | ||
118 | --exec "nxclient" \ | ||
119 | --icon "nxclient.png" \ | ||
120 | --categories Network \ | ||
121 | || die | ||
122 | |||
123 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-admin.png nxadmin.png | ||
124 | minstall_desktop_icon \ | ||
125 | --name NXAdmin \ | ||
126 | --comment "NoMachine NX Administration Console" \ | ||
127 | --file "nxadmin" \ | ||
128 | --exec "nxclient --admin" \ | ||
129 | --icon "nxadmin.png" \ | ||
130 | --categories Network \ | ||
131 | || die | ||
132 | |||
133 | minstallpixmap ${SRCDIR}/share/icons/48x48/nxclient-wizard.png nxwizard.png | ||
134 | minstall_desktop_icon \ | ||
135 | --name NXWizard \ | ||
136 | --comment "NoMachine NX Configuration Wizard" \ | ||
137 | --file "nxwizard" \ | ||
138 | --exec "nxclient --wizard" \ | ||
139 | --icon "nxwizard.png" \ | ||
140 | --categories Network \ | ||
141 | || die | ||
142 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |