Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/modules/citrix/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2523 - (hide annotations) (download)
Mon Sep 14 13:42:57 2015 UTC (8 years, 8 months ago) by niro
File size: 2608 byte(s)
-split install of client and control files and provide citrix-enumerate.conf for citrix storefront and ica enumaration of server provided sessions
1 niro 2178 include ../../../Makefile.inc
2    
3 niro 2523 SCRIPTS = citrix.client.class citrix.control.class citrix.conf query-citrix-browser citrix-session citrix-serverlist storefront-resolver storefront-session storefront.client.class storefront-cron citrix-enumerate.conf
4 niro 2178
5 niro 2352 SYSTEM_ICAROOT = /opt/ica-client
6     PNABROWSE_EXECUTABLE = $(SYSTEM_ICAROOT)/util/pnabrowse
7 niro 2259 PNABROWSE_CITRIX_BROWSER = ica
8     PNABROWSE_SERVER_EXCLUDE =
9     PNABROWSE_SESSION_EXCLUDE =
10 niro 2352 STOREBROWSE_EXECUTABLE = $(SYSTEM_ICAROOT)/util/storebrowse
11 niro 2391 DEFAULT_STOREFRONT_STORE = https://storefront
12 niro 2402 STOREFRONT_ADDSTORE_REQUIRED = 1
13     STOREFRONT_SUBSCRIBE_APP = 1
14 niro 2523 MCORE_STOREFRONT_USER = "enumerate"
15     MCORE_STOREFRONT_PASS = "enumerate"
16     MCORE_STOREFRONT_DOMAIN = "mcoredomain.domain"
17 niro 2259
18     SCRIPT_SED_LINES += \
19 niro 2352 -e "s:@@SYSTEM_ICAROOT@@:$(SYSTEM_ICAROOT):g" \
20 niro 2259 -e "s:@@PNABROWSE_EXECUTABLE@@:$(PNABROWSE_EXECUTABLE):g" \
21     -e "s:@@PNABROWSE_CITRIX_BROWSER@@:$(PNABROWSE_CITRIX_BROWSER):g" \
22     -e "s:@@PNABROWSE_SERVER_EXCLUDE@@:$(PNABROWSE_SERVER_EXCLUDE):g" \
23 niro 2352 -e "s:@@PNABROWSE_SESSION_EXCLUDE@@:$(PNABROWSE_SESSION_EXCLUDE):g" \
24     -e "s:@@STOREBROWSE_EXECUTABLE@@:$(STOREBROWSE_EXECUTABLE):g" \
25 niro 2402 -e "s,@@DEFAULT_STOREFRONT_STORE@@,$(DEFAULT_STOREFRONT_STORE),g" \
26 niro 2523 -e "s:@@STOREFRONT_ADDSTORE_REQUIRED@@:$(STOREFRONT_ADDSTORE_REQUIRED):g" \
27     -e "s:@@STOREFRONT_SUBSCRIBE_APP@@:$(STOREFRONT_SUBSCRIBE_APP):g" \
28     -e "s:@@MCORE_STOREFRONT_USER@@:$(MCORE_STOREFRONT_USER):g" \
29     -e "s:@@MCORE_STOREFRONT_PASS@@:$(MCORE_STOREFRONT_PASS):g" \
30     -e "s:@@MCORE_STOREFRONT_DOMAIN@@:$(MCORE_STOREFRONT_DOMAIN):g"
31 niro 2259
32 niro 2178 all: $(SCRIPTS)
33    
34 niro 2523 install: install-client install-control all
35    
36     install-client: all
37 niro 2259 $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/mcore
38     $(INSTALL) -m0644 citrix.conf $(DESTDIR)/$(SYSCONFDIR)/mcore
39 niro 2178 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
40 niro 2523 $(INSTALL) -m0644 *.client.class $(DESTDIR)/$(MCORE_LIBDIR)/include
41 niro 2272 $(INSTALL) -m0755 query-citrix-browser $(DESTDIR)/$(MCORE_LIBDIR)
42     $(INSTALL) -m0755 citrix-session $(DESTDIR)/$(MCORE_LIBDIR)
43     $(INSTALL) -m0755 citrix-serverlist $(DESTDIR)/$(MCORE_LIBDIR)
44 niro 2352 $(INSTALL) -m0755 storefront-resolver $(DESTDIR)/$(MCORE_LIBDIR)
45 niro 2354 $(INSTALL) -m0755 storefront-session $(DESTDIR)/$(MCORE_LIBDIR)
46 niro 2178
47 niro 2523 install-control: all
48     $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
49     $(INSTALL) -m0644 *.control.class $(DESTDIR)/$(MCORE_LIBDIR)/include
50     $(INSTALL) -d $(DESTDIR)/usr/sbin
51     $(INSTALL) -m0755 storefront-cron $(DESTDIR)/usr/sbin
52     $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/mcore
53     $(INSTALL) -m0644 citrix-enumerate.conf $(DESTDIR)/$(SYSCONFDIR)/mcore
54    
55 niro 2178 clean:
56     rm -f $(SCRIPTS)
57    
58 niro 2523 .PHONY: install-client
59     .PHONY: install-control
60 niro 2178 .PHONY: all install clean