Magellan Linux

Contents of /trunk/extras/nxnode/nxnode-3.3.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2093 - (show annotations) (download)
Wed Jun 17 21:14:06 2009 UTC (15 years, 4 months ago) by niro
File size: 2444 byte(s)
auto added: ver bump to 3.3.0-r1
1 # $Id$
2
3 PNAME="nxnode"
4 PVER="3.3.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Shared NX components for several NX Server Editions."
11 HOMEPAGE="http://www.nomachine.com"
12
13 DEPEND="== net-misc/nxclient-${PVER}
14 >= x11-libs/libICE-1
15 >= x11-libs/libXmu-1
16 >= x11-libs/libSM-1
17 >= x11-libs/libXt-1
18 >= x11-libs/libXaw-1
19 >= x11-libs/libXpm-3
20 >= x11-apps/xrdb-1
21 >= net-misc/rdesktop-1
22 >= virtual/vnc"
23
24 NXPVER="${PVER}-17"
25 # both files must be fetch or our md5-logic breaks
26 SRCFILE_x86="${PNAME}-${NXPVER}.i386.tar.gz"
27 SRCFILE_x86_64="${PNAME}-${NXPVER}.x86_64.tar.gz"
28 # decide between x86 and x86_64 arch
29 SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})"
30 SRCDIR="${BUILDDIR}/NX"
31
32 sminclude mtools
33
34 SRC_URI=(
35 http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86}
36 http://web04.nomachine.com/download/${PVER}/Linux/${SRCFILE_x86_64}
37 mirror://${PNAME}/${SRCFILE_x86}
38 mirror://${PNAME}/${SRCFILE_x86_64}
39 mirror://${PNAME}/${PNAME}-3.0.0-magellan.patch
40 )
41
42 UP2DATE="updatecmd ${HOMEPAGE}/sources.php | grep nx-X11 | sed 's/.*nx-X11-\(.*\)-.*/\1/;q"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 cd ${SRCDIR}
48
49 # fixes the setup script on magellan
50 mpatch ${PNAME}-3.0.0-magellan.patch || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56
57 # needed directories
58 minstalldir /usr/NX/bin || die
59 minstalldir /usr/NX/etc || die
60
61 local i
62 for i in nxagent nxnode nxsensor nxspool nxuexec
63 do
64 minstallexec bin/${i} /usr/NX/bin/${i} || die
65 done
66 for i in lib scripts share var
67 do
68 cp -R ${i} ${BINDIR}/usr/NX || die
69 done
70
71 minstallfile etc/node-debian.cfg.sample /usr/NX/etc/node-magellan.cfg.sample || die
72 minstallfile etc/node.lic.sample /usr/NX/etc/node.lic.sample || die
73
74 # fix fuser command
75 sed -i 's:COMMAND_FUSER = .*:COMMAND_FUSER = "/usr/bin/fuser":;' ${BINDIR}/usr/NX/etc/node-magellan.cfg.sample || die
76
77 # set default dpi to 75 instead of 96dpi
78 sed -i 's:#DefaultXDPI = .*:DefaultXDPI = "75":;' ${BINDIR}/usr/NX/etc/node-magellan.cfg.sample || die
79 }
80
81 postinstall()
82 {
83 if [[ ! -f /usr/NX/etc/node.lic ]]
84 then
85 cp ${MROOT}/usr/NX/etc/node.lic.sample ${MROOT}/usr/NX/etc/node.lic || die
86 chmod 0400 ${MROOT}/usr/NX/etc/node.lic
87 chown nx:root ${MROOT}/usr/NX/etc/node.lic
88 fi
89
90 if [[ -f /usr/NX/etc/node.cfg ]]
91 then
92 echo "Running NoMachine's update script"
93 ${MROOT}/usr/NX/scripts/setup/nxnode --update
94 else
95 echo "Running NoMachine's setup script"
96 ${MROOT}/usr/NX/scripts/setup/nxnode --install
97 fi
98 }

Properties

Name Value
svn:keywords Id