Magellan Linux

Contents of /trunk/todo/nsm-client/nsm-client-9.50.01-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2489 - (show annotations) (download)
Thu Jul 9 20:08:41 2009 UTC (14 years, 10 months ago) by niro
File size: 1387 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/nsm-client/nsm-client-9.50.01-r1.smage2,v 1.1 2006/08/30 14:17:15 niro Exp $
2
3 PNAME="nsm-client"
4 PVER="9.50.01"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Netsupport Manager Linux32 Client."
11 HOMEPAGE="http://www.netsupportsoftware.com/"
12
13 DEPEND=">= virtual/x11
14 gnome-base/libglade-2.5.1-r4"
15
16 SRCFILE="linux-installer-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/install"
18
19 # fetch em at https://download.netsupportsoftware.com/Product/nsm/en/linux/installer.tar.gz
20 SRC_URI=(
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/nsmclient.rc
23 )
24
25 src_prepare() {
26 munpack ${SRCFILE} || die
27 cd ${SRCDIR}
28
29 # unpack relevant files from included tarball
30 install -d ${SRCDIR}/nsm || die
31 tar xvzf nsm.tar.gz -C ${SRCDIR}/nsm || die
32 }
33
34 src_install() {
35 cd ${SRCDIR}
36
37 # needed directories
38 install -d ${BINDIR}/etc/rc.d/init.d || die
39 install -d ${BINDIR}/opt/nsm-client || die
40 install -d ${BINDIR}/usr || die
41
42 # copy all files
43 cp -a ${SRCDIR}/nsm/* ${BINDIR}/opt/nsm-client || die
44
45 # install initscript
46 install -m 0755 -o root -g root ${SOURCEDIR}/${PNAME}/nsmclient.rc \
47 ${BINDIR}/etc/rc.d/init.d/nsmclient || die
48
49 # the nsm-client searches all run-times in /usr/nsm
50 # but we want the files in opt -> symlink them
51 ln -snf /opt/nsm-client ${BINDIR}/usr/nsm || die
52
53 # remove uneccessary stuff
54 rm ${BINDIR}/opt/nsm-client/uninstall || die
55 }

Properties

Name Value
svn:keywords Id