Magellan Linux

Annotation of /smage/trunk/core/mcore-tools/mcore-tools-0.1_svn2718-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8023 - (hide annotations) (download)
Fri Dec 18 08:18:58 2015 UTC (8 years, 5 months ago) by niro
File size: 1787 byte(s)
auto added: ver bump to 0.1_svn2718-r1
1 niro 8023 # $Id$
2    
3     PNAME="mcore-tools"
4     PVER="0.1_svn2718"
5     PBUILD="r1"
6    
7     PCAT="app-mage"
8    
9     DESCRIPTION="mcore client daemon."
10     HOMEPAGE="http://www.magellan-linux.net/"
11    
12     DEPEND=">= net-misc/sslsvd-1
13     >= net-misc/nssl-005
14     >= sys-apps/hwinfo-20
15     >= x11-libs/libX11-1.6"
16    
17     # storefront-cron requires xfvb-run -> xorg-server-dev
18     # mcore-controld requires xml -> xmlstartlet
19    
20     SDEPEND=">= dev-util/pkgconfig-0.25
21     >= x11-libs/libX11-dev-1.6
22     >= x11-proto/xproto-7"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.bz2"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude systemd
28    
29     SRC_URI=( mirror://${PNAME}/${SRCFILE} )
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # use package version and build
37     echo "${PVER}-${PBUILD}" > VERSION || die
38     }
39    
40     src_compile()
41     {
42     cd ${SRCDIR}
43     mmake \
44     MCORE_UNPRIV_USER=station \
45     MCORE_DISTRIBUTION=ALX \
46     MCORE_DEFAULT_HOSTNAME=alx-unconfigured \
47     MCORE_DEFAULT_DOMAIN=dom-aka-nt.intern \
48     SYSTEM_ICAROOT=/opt/Citrix/ICAClient \
49     PNABROWSE_CITRIX_BROWSER=ica.dom-aka-nt.intern \
50     PNABROWSE_SERVER_EXCLUDE=ESA-TS-CLEAN \
51     DEFAULT_STOREFRONT_STORE="https://storefront.dom-aka-nt.intern/Citrix/ALX/PNAgent/config.xml" \
52     STOREFRONT_ADDSTORE_REQUIRED=0 \
53     STOREFRONT_SUBSCRIBE_APP=0 \
54     MCORE_CONTROL_SERVER="alx-control.dom-aka-nt.intern" \
55     MCORE_SQL_HOST="localhost" \
56     MCORE_SQL_DB="mcore" \
57     MCORE_SQL_USER="alx_install" \
58     MCORE_SQL_PASS="@lx" \
59     HELPDESK_UNIT="EDV-Abteilung" \
60     HELPDESK_PHONE="-1236" \
61     || die
62     }
63    
64     src_install()
65     {
66     cd ${SRCDIR}
67     make DESTDIR=${BINDIR} install || die
68    
69     # needed directory
70     mkeepdir /var/lib/mcored || die
71     }
72    
73     postinstall()
74     {
75     mstartunit mcored
76     mstartunit mcore-register-client
77     mstartunit mcore-request-configuration
78     }
79    
80     postremove()
81     {
82     mstopunit mcored
83     mstopunit mcore-register-client
84     mstopunit mcore-request-configuration
85     }