path:
root/
Makefile (
plain)
blob: b1fe18bb217c32d9624afa736fd5809e61967ae9
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
VERSION=$(shell head -1 debian/changelog 2>/dev/null | awk '{gsub(/\(/,"",$$2); gsub(/\)/, "" , $$2); print $$2}' )
all:
cd languages && make
test:
@echo "TCOSPHPMONITOR version="$(VERSION)
clean:
find -type f -name "*~" | xargs rm -f
rm -f build-stamp
rm -f smarty/templates_c/*
rm -f smarty/cache/*
cd languages && make clean
echo:
echo $$(find -type f $(EDIT_FILES) )
gedit: clean
gedit $$(find -type f $(EDIT_FILES) ) &
permisos:
chown -R www-data:www-data smarty/
pot:
cd languages && make pot
install:
install -d $(DESTDIR)/usr/share/tcosphpmonitor/www
install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/css
install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/js
install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/img
install -d $(DESTDIR)/usr/share/tcosphpmonitor/templates
install -d $(DESTDIR)/usr/share/tcosphpmonitor/classes
install -d $(DESTDIR)/usr/share/tcosphpmonitor/modules
install -d $(DESTDIR)/usr/share/tcosphpmonitor/helpers
install -d $(DESTDIR)/var/cache/tcosphpmonitor/
install -m 644 data.inc.php $(DESTDIR)/usr/share/tcosphpmonitor/
install -m 644 config.inc.php $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php
# configure __VERSION__ and DEBUG
sed -i s/'__VERSION__'/'$(VERSION)'/g $(DESTDIR)/usr/share/tcosphpmonitor/data.inc.php
sed -i "/DEBUG/s/"true"/"false"/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php
# empty username and password
sed -i "/USERNAME/s/"admin"/""/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php
sed -i "/PASSWORD/s/"admin"/""/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php
install -m 644 apache.conf $(DESTDIR)/etc/tcosphpmonitor/apache.conf
for i in `find www/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find www/js -type f -name "*.js" -o -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find www/css -type f -name "*.css"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find www/img -type f -name "*.png" -o -name "*.jpg" -o -name "*.gif"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find classes/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find modules/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
for i in `find templates/ -type f -name "*.tpl"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done
install -m 644 helpers/tcos-dbus.py $(DESTDIR)/usr/share/tcosphpmonitor/helpers/tcos-dbus.py
cd languages && make install DESTDIR=$(DESTDIR)
targz: clean
dh_clean
rm -rf ../tmp 2> /dev/null
mkdir ../tmp
cp -ra * ../tmp
rm -rf `find ../tmp/* -type d -name .svn`
mv ../tmp ../tcosphpmonitor-$(VERSION)
tar -czf ../tcosphpmonitor-$(VERSION).tar.gz ../tcosphpmonitor-$(VERSION)
rm -rf ../tcosphpmonitor-$(VERSION)
patch_version:
#nothing to patch
patch_unstable: patch_version
# nothing to patch
patch_testing: patch_version
# nothing to patch
patch_lenny: patch_version
# nothing to patch
patch_hardy: patch_version
# nothing to patch
patch_max: patch_version
# nothing to patch
patch_intrepid: patch_version
# nothing to patch
patch_jaunty: patch_version
# nothing to patch
|