-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
61 lines (53 loc) · 2.44 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
INSTALLDIR = $(DESTDIR)
ARCH ?= $(shell uname -m|sed 's/i.86/i386/'|sed 's/^arm.*/arm/')
all:
@echo "all"
clean:
@echo "clean"
install:
@echo "Make directory"
mkdir -p $(INSTALLDIR)/etc/serf
mkdir -p $(INSTALLDIR)/etc/serf/handlers
mkdir -p $(INSTALLDIR)/var/local/cDistro/plug/resources/monitor-aas/
mkdir -p $(INSTALLDIR)/var/local/cDistro/plug/resources/peerstreamer/
mkdir -p $(INSTALLDIR)/var/local/cDistro/plug/controllers/
mkdir -p $(INSTALLDIR)/var/local/cDistro/plug/menus/
mkdir -p $(INSTALLDIR)/var/local/cDistro/lang/
mkdir -p $(INSTALLDIR)/var/local/cDistro/config/
mkdir -p $(INSTALLDIR)/etc/init.d/
mkdir -p $(INSTALLDIR)/usr/share/avahi-ps/plugs/
mkdir -p $(INSTALLDIR)/usr/share/avahi-service/files/
@echo "Install files"
### SERF update
install -m 0755 etc/init.d/serf $(INSTALLDIR)/etc/init.d/
@echo "SERF updated"
# adding handlers
install -m 0755 etc/serf/handlers/handle $(INSTALLDIR)/etc/serf/handlers/
install -m 0755 etc/serf/handlers/user-* $(INSTALLDIR)/etc/serf/handlers/
@echo "SERF handlers updated"
###
### Avahi-ps update
install -m 0755 usr/share/avahi-ps/plugs/avahi-ps-serf $(INSTALLDIR)/usr/share/avahi-ps/plugs/
install -m 0755 usr/share/avahi-service/files/*.service $(INSTALLDIR)/usr/share/avahi-service/files/
@echo "Avahi-ps updated"
###
### Other services
install -m 0755 var/local/cDistro/plug/resources/peerstreamer/* $(INSTALLDIR)/var/local/cDistro/plug/resources/peerstreamer/
@echo "Updated other services"
###
### Cloudy update
# new monitor-aas scripts
install -m 0755 var/local/cDistro/plug/resources/monitor-aas/common.sh $(INSTALLDIR)/var/local/cDistro/plug/resources/monitor-aas/
install -m 0755 var/local/cDistro/plug/controllers/monitor-aas.php $(INSTALLDIR)/var/local/cDistro/plug/controllers/
# adding menus, and other updates
install -m 0755 var/local/cDistro/plug/controllers/cloudyupdate.php $(INSTALLDIR)/var/local/cDistro/plug/controllers/
install -m 0755 var/local/cDistro/plug/menus/cloudy.menu.php $(INSTALLDIR)/var/local/cDistro/plug/menus/
install -m 0755 var/local/cDistro/lang/*.menus.php $(INSTALLDIR)/var/local/cDistro/lang/
install -m 0755 var/local/cDistro/config/global.php $(INSTALLDIR)/var/local/cDistro/config/
@echo "Cloudy updated"
@echo "Restarting SERF"
/etc/init.d/serf stop
/etc/init.d/serf start
/bin/bash /var/local/cDistro/plug/resources/monitor-aas/common.sh install-cron
@echo "Cron job created for auto-update monitor"
.PHONY: all clean install