Annotation of /smage/trunk/core/mcore-tools/mcore-tools-0.1_svn2753-r1.smage2
Parent Directory | Revision Log
Revision 8471 -
(hide annotations)
(download)
Tue Feb 2 12:36:01 2016 UTC (8 years, 3 months ago) by niro
File size: 2656 byte(s)
Tue Feb 2 12:36:01 2016 UTC (8 years, 3 months ago) by niro
File size: 2656 byte(s)
auto added: ver bump to 0.1_svn2753-r1
1 | niro | 8471 | # $Id$ |
2 | |||
3 | PNAME="mcore-tools" | ||
4 | PVER="0.1_svn2753" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | SPLIT_PACKAGES="mcore-tools-common mcore-tools mcore-controld" | ||
8 | |||
9 | PCAT="app-mage" | ||
10 | HOMEPAGE="http://www.magellan-linux.net/" | ||
11 | |||
12 | COMMON_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="${COMMON_DEPEND} | ||
21 | >= dev-util/pkgconfig-0.25 | ||
22 | >= x11-libs/libX11-dev-1.6 | ||
23 | >= x11-proto/xproto-7" | ||
24 | |||
25 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | sminclude systemd | ||
29 | |||
30 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) | ||
31 | |||
32 | split_info_mcore-tools-common() | ||
33 | { | ||
34 | DESCRIPTION="mcore common files." | ||
35 | DEPEND="" | ||
36 | } | ||
37 | |||
38 | split_info_mcore-tools() | ||
39 | { | ||
40 | DESCRIPTION="mcore client daemon." | ||
41 | DEPEND="${COMMON_DEPEND} | ||
42 | == app-mage/mcore-tools-common-${PVER}" | ||
43 | } | ||
44 | |||
45 | split_info_mcore-controld() | ||
46 | { | ||
47 | DESCRIPTION="mcore control daemon." | ||
48 | DEPEND="${COMMON_DEPEND} | ||
49 | == app-mage/mcore-tools-common-${PVER} | ||
50 | == app-mage/mcore-tools-${PVER}" | ||
51 | } | ||
52 | |||
53 | src_prepare() | ||
54 | { | ||
55 | munpack ${SRCFILE} || die | ||
56 | cd ${SRCDIR} | ||
57 | |||
58 | # use package version and build | ||
59 | echo "${PVER}-${PBUILD}" > VERSION || die | ||
60 | } | ||
61 | |||
62 | src_compile() | ||
63 | { | ||
64 | cd ${SRCDIR} | ||
65 | mmake \ | ||
66 | MCORE_UNPRIV_USER=station \ | ||
67 | MCORE_DISTRIBUTION=ALX \ | ||
68 | MCORE_DEFAULT_HOSTNAME=alx-unconfigured \ | ||
69 | MCORE_DEFAULT_DOMAIN=dom-aka-nt.intern \ | ||
70 | SYSTEM_ICAROOT=/opt/Citrix/ICAClient \ | ||
71 | PNABROWSE_CITRIX_BROWSER=ica.dom-aka-nt.intern \ | ||
72 | PNABROWSE_SERVER_EXCLUDE=ESA-TS-CLEAN \ | ||
73 | DEFAULT_STOREFRONT_STORE="https://storefront.dom-aka-nt.intern/Citrix/ALX/PNAgent/config.xml" \ | ||
74 | STOREFRONT_ADDSTORE_REQUIRED=0 \ | ||
75 | STOREFRONT_SUBSCRIBE_APP=0 \ | ||
76 | MCORE_CONTROL_SERVER="alx-control.dom-aka-nt.intern" \ | ||
77 | MCORE_SQL_HOST="localhost" \ | ||
78 | MCORE_SQL_DB="mcore" \ | ||
79 | MCORE_SQL_USER="alx_install" \ | ||
80 | MCORE_SQL_PASS="@lx" \ | ||
81 | || die | ||
82 | } | ||
83 | |||
84 | src_install_mcore-tools-common() | ||
85 | { | ||
86 | cd ${SRCDIR} | ||
87 | make DESTDIR=${BINDIR} install-common || die | ||
88 | |||
89 | # needed directory | ||
90 | mkeepdir /var/lib/mcored || die | ||
91 | } | ||
92 | |||
93 | src_install_mcore-tools() | ||
94 | { | ||
95 | cd ${SRCDIR} | ||
96 | make DESTDIR=${BINDIR} install-client || die | ||
97 | } | ||
98 | |||
99 | src_install_mcore-controld() | ||
100 | { | ||
101 | cd ${SRCDIR} | ||
102 | make DESTDIR=${BINDIR} install-control || die | ||
103 | } | ||
104 | |||
105 | postinstall_mcore-tools() | ||
106 | { | ||
107 | mstartunit mcored | ||
108 | mstartunit mcore-register-client | ||
109 | mstartunit mcore-request-configuration | ||
110 | } | ||
111 | |||
112 | postremove_mcore-tools() | ||
113 | { | ||
114 | mstopunit mcored | ||
115 | mstopunit mcore-register-client | ||
116 | mstopunit mcore-request-configuration | ||
117 | } | ||
118 | |||
119 | postinstall_mcore-controld() | ||
120 | { | ||
121 | # remove mcored | ||
122 | mstopunit mcored | ||
123 | mstopunit mcore-register-client | ||
124 | mstopunit mcore-request-configuration | ||
125 | |||
126 | # start mcore-controld | ||
127 | mstartunit mcore-controld | ||
128 | } | ||
129 | |||
130 | postremove_mcore-controld() | ||
131 | { | ||
132 | mstopunit mcore-controld | ||
133 | } |