Contents of /mcore-src/trunk/mcore-tools/Makefile
Parent Directory
|
Revision Log
Revision 1301 -
(show annotations)
(download)
Sun Feb 6 23:42:50 2011 UTC (13 years, 4 months ago) by niro
File size: 1978 byte(s)
Sun Feb 6 23:42:50 2011 UTC (13 years, 4 months ago) by niro
File size: 1978 byte(s)
-install default certificates
1 | # $Id$ |
2 | |
3 | DESTDIR = |
4 | PREFIX = /usr |
5 | ETCDIR = /etc |
6 | BINDIR = $(PREFIX)/bin |
7 | SBINDIR = $(PREFIX)/sbin |
8 | LIBDIR = $(PREFIX)/lib |
9 | MCLIBDIR = $(LIBDIR)/mcored |
10 | RCINITDIR = $(ETCDIR)/rc.d/init.d |
11 | CERTDIR = ${ETCDIR}/ssl |
12 | |
13 | INSTALL = install |
14 | LN = ln -snf |
15 | SED = sed -i |
16 | |
17 | GLOBAL_CLASSES = daemon hwdetection sessionauth |
18 | CLIENT_CLASSES = citrix fluxbox graphic input mage network printing system vnc |
19 | |
20 | install: |
21 | $(INSTALL) -d $(DESTDIR)/$(ETCDIR)/mcore |
22 | $(INSTALL) -d $(DESTDIR)/$(ETCDIR)/conf.d |
23 | $(INSTALL) -d $(DESTDIR)/$(RCINITDIR) |
24 | $(INSTALL) -d $(DESTDIR)/$(MCLIBDIR)/include |
25 | $(INSTALL) -d $(DESTDIR)/$(BINDIR) |
26 | $(INSTALL) -d $(DESTDIR)/$(SBINDIR) |
27 | $(INSTALL) -d $(DESTDIR)/$(CERTDIR)/certs |
28 | $(INSTALL) -m0700 -d $(DESTDIR)/$(CERTDIR)/private |
29 | |
30 | $(INSTALL) -m0644 conf/config.rc $(DESTDIR)/$(ETCDIR)/mcore/ |
31 | $(INSTALL) -m0644 daemon/client/mcored.confd $(DESTDIR)/$(ETCDIR)/conf.d/mcored |
32 | $(INSTALL) -m0755 daemon/client/mcored.rc $(DESTDIR)/$(RCINITDIR)/mcored |
33 | $(INSTALL) -m0644 daemon/certs/mcored.pem $(DESTDIR)/$(CERTDIR)/certs |
34 | $(INSTALL) -m0400 daemon/certs/mcored.key $(DESTDIR)/$(CERTDIR)/private |
35 | |
36 | $(INSTALL) -m0755 daemon/mcorepasswd.sh $(DESTDIR)/${MCLIBDIR}/mcorepasswd |
37 | $(INSTALL) -m0755 daemon/generate-certificate.sh $(DESTDIR)/${MCLIBDIR}/mcore-generate-certificate |
38 | $(INSTALL) -m0755 daemon/client/mcored.sh $(DESTDIR)/$(MCLIBDIR)/mcored |
39 | $(SED) "s:^\(MCLIBDIR=\).*:\1\"$(MCLIBDIR)\":" \ |
40 | $(DESTDIR)/${MCLIBDIR}/mcorepasswd \ |
41 | $(DESTDIR)/$(MCLIBDIR)/mcored |
42 | $(LN) $(MCLIBDIR)/mcorepasswd $(DESTDIR)/$(BINDIR)/mcorepasswd |
43 | $(LN) $(MCLIBDIR)/mcore-generate-certificate $(DESTDIR)/$(BINDIR)/mcore-generate-certificate |
44 | $(LN) $(MCLIBDIR)/mcored $(DESTDIR)/$(SBINDIR)/mcored |
45 | |
46 | for class in $(GLOBAL_CLASSES); \ |
47 | do \ |
48 | $(INSTALL) -m0644 \ |
49 | daemon/include/$${class}.global.class \ |
50 | $(DESTDIR)/$(MCLIBDIR)/include/; \ |
51 | done |
52 | for class in $(CLIENT_CLASSES); \ |
53 | do \ |
54 | $(INSTALL) -m0644 \ |
55 | daemon/client/include/$${class}.client.class \ |
56 | $(DESTDIR)/$(MCLIBDIR)/include/; \ |
57 | done |