Magellan Linux

Annotation of /smage/trunk/extras/citrix-plugin-speechmike/citrix-plugin-speechmike-0.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4669 - (hide annotations) (download)
Fri Mar 22 12:32:20 2013 UTC (11 years, 2 months ago) by niro
File size: 1556 byte(s)
-start/stop dpmmountd
1 niro 4668 # $Id$
2    
3     PNAME="citrix-plugin-speechmike"
4     PVER="0.3"
5     PBUILD="r1"
6    
7     SPLIT_PACKAGES="speechmike-config-tools citrix-plugin-speechmike"
8    
9     PCAT="net-misc"
10     HOMEPAGE="http://magellan-linux.de"
11    
12     CONFIG_DEPEND=">= virtual/glibc"
13     PLUGIN_DEPEND=">= net-misc/ica-client-12"
14     SDEPEND="${CONFIG_DEPEND}
15     ${PLUGIN_DEPEND}"
16    
17     SRCFILE="${PNAME}-${PVER}.tar.bz2"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     sminclude mbuild mtools
21    
22     SRC_URI=( mirror://${PNAME}/${SRCFILE} )
23    
24     UP2DATE="echo ${PVER}"
25    
26     split_info_speechmike-config-tools()
27     {
28     DESCRIPTION="Philips SpeechMike config helper tools."
29     DEPEND="${CONFIG_DEPEND}"
30     }
31    
32     split_info_citrix-plugin-speechmike()
33     {
34     DESCRIPTION="Philips SpeechMike Driver and SDK for Citrix."
35     DEPEND="== ${PCAT}/speechmike-config-tools-${PVER}
36     ${PLUGIN_DEPEND}"
37     }
38    
39     src_install_speechmike-config-tools()
40     {
41     cd ${SRCDIR}
42     mmake DESTDIR=${BINDIR} install-config-tools || die
43     }
44    
45     src_install_citrix-plugin-speechmike()
46     {
47     cd ${SRCDIR}
48     mmake DESTDIR=${BINDIR} install || die
49    
50     # remove config tools
51     mdelete /usr/bin/nuainitool || die
52     mdelete /usr/bin/speechmike-config || die
53     }
54    
55     postinstall_citrix-plugin-speechmike()
56     {
57     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
58     then
59     [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config install
60     fi
61 niro 4669 mstartunit dpmmountd DPMMountd
62 niro 4668 }
63    
64     postremove_citrix-plugin-speechmike()
65     {
66     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
67     then
68     # do nothing on update
69     [[ -x /usr/sbin/DPMMountd ]] && return
70     [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config remove
71     fi
72 niro 4669 mstopunit dpmmountd DPMMountd
73 niro 4668 }