Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2691 - (hide annotations) (download)
Fri Dec 11 12:48:41 2015 UTC (8 years, 5 months ago) by niro
File size: 3126 byte(s)
-removed hardcoded /usr/sbin pathes
1 niro 2178 include ../../../Makefile.inc
2    
3 niro 2639 SCRIPTS = citrix.client.class citrix.conf query-citrix-browser citrix-session citrix-serverlist storefront-resolver storefront-session storefront.client.class storefront-cron citrix-cron citrix-enumerate.conf storefront.control.class storefront-store citrix.control.class launch-ica
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 2526 MCORE_CITRIX_USER = "enumerate"
15     MCORE_CITRIX_PASS = "enumerate"
16     MCORE_CITRIX_DOMAIN = "mcoredomain.domain"
17 niro 2523 MCORE_STOREFRONT_USER = "enumerate"
18     MCORE_STOREFRONT_PASS = "enumerate"
19     MCORE_STOREFRONT_DOMAIN = "mcoredomain.domain"
20 niro 2259
21     SCRIPT_SED_LINES += \
22 niro 2352 -e "s:@@SYSTEM_ICAROOT@@:$(SYSTEM_ICAROOT):g" \
23 niro 2259 -e "s:@@PNABROWSE_EXECUTABLE@@:$(PNABROWSE_EXECUTABLE):g" \
24     -e "s:@@PNABROWSE_CITRIX_BROWSER@@:$(PNABROWSE_CITRIX_BROWSER):g" \
25     -e "s:@@PNABROWSE_SERVER_EXCLUDE@@:$(PNABROWSE_SERVER_EXCLUDE):g" \
26 niro 2352 -e "s:@@PNABROWSE_SESSION_EXCLUDE@@:$(PNABROWSE_SESSION_EXCLUDE):g" \
27     -e "s:@@STOREBROWSE_EXECUTABLE@@:$(STOREBROWSE_EXECUTABLE):g" \
28 niro 2402 -e "s,@@DEFAULT_STOREFRONT_STORE@@,$(DEFAULT_STOREFRONT_STORE),g" \
29 niro 2523 -e "s:@@STOREFRONT_ADDSTORE_REQUIRED@@:$(STOREFRONT_ADDSTORE_REQUIRED):g" \
30     -e "s:@@STOREFRONT_SUBSCRIBE_APP@@:$(STOREFRONT_SUBSCRIBE_APP):g" \
31 niro 2526 -e "s:@@MCORE_CITRIX_USER@@:$(MCORE_CITRIX_USER):g" \
32     -e "s:@@MCORE_CITRIX_PASS@@:$(MCORE_CITRIX_PASS):g" \
33     -e "s:@@MCORE_CITRIX_DOMAIN@@:$(MCORE_CITRIX_DOMAIN):g" \
34 niro 2523 -e "s:@@MCORE_STOREFRONT_USER@@:$(MCORE_STOREFRONT_USER):g" \
35     -e "s:@@MCORE_STOREFRONT_PASS@@:$(MCORE_STOREFRONT_PASS):g" \
36     -e "s:@@MCORE_STOREFRONT_DOMAIN@@:$(MCORE_STOREFRONT_DOMAIN):g"
37 niro 2259
38 niro 2178 all: $(SCRIPTS)
39    
40 niro 2523 install: install-client install-control all
41    
42     install-client: all
43 niro 2259 $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/mcore
44     $(INSTALL) -m0644 citrix.conf $(DESTDIR)/$(SYSCONFDIR)/mcore
45 niro 2178 $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
46 niro 2523 $(INSTALL) -m0644 *.client.class $(DESTDIR)/$(MCORE_LIBDIR)/include
47 niro 2272 $(INSTALL) -m0755 query-citrix-browser $(DESTDIR)/$(MCORE_LIBDIR)
48     $(INSTALL) -m0755 citrix-session $(DESTDIR)/$(MCORE_LIBDIR)
49     $(INSTALL) -m0755 citrix-serverlist $(DESTDIR)/$(MCORE_LIBDIR)
50 niro 2639 $(INSTALL) -m0755 launch-ica $(DESTDIR)/$(MCORE_LIBDIR)
51 niro 2352 $(INSTALL) -m0755 storefront-resolver $(DESTDIR)/$(MCORE_LIBDIR)
52 niro 2354 $(INSTALL) -m0755 storefront-session $(DESTDIR)/$(MCORE_LIBDIR)
53 niro 2593 $(INSTALL) -m0755 storefront-store $(DESTDIR)/$(MCORE_LIBDIR)
54 niro 2178
55 niro 2523 install-control: all
56     $(INSTALL) -d $(DESTDIR)/$(MCORE_LIBDIR)/include
57     $(INSTALL) -m0644 *.control.class $(DESTDIR)/$(MCORE_LIBDIR)/include
58 niro 2691 $(INSTALL) -d $(DESTDIR)/$(SBINDIR)
59     $(INSTALL) -m0755 storefront-cron $(DESTDIR)/$(SBINDIR)
60     $(INSTALL) -m0755 citrix-cron $(DESTDIR)/$(SBINDIR)
61 niro 2523 $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/mcore
62     $(INSTALL) -m0644 citrix-enumerate.conf $(DESTDIR)/$(SYSCONFDIR)/mcore
63    
64 niro 2178 clean:
65     rm -f $(SCRIPTS)
66    
67 niro 2523 .PHONY: install-client
68     .PHONY: install-control
69 niro 2178 .PHONY: all install clean