root/trunk/Makefile.opensuse

Revision 1335, 2.6 kB (checked in by scitech, 2 months ago)

Fixed #1444: sys_command_rs() | Ending... error when add user

Line 
1 #!/usr/bin/make -f
2 #
3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel
4 # Copyright (c) 2001-2006 by moleSoftware GmbH
5 # http://www.molesoftware.com
6 # Copyright (c) 2006-2008 by isp Control Panel
7 # http://isp-control.net
8 #
9 #
10 # License:
11 #    This program is free software; you can redistribute it and/or
12 #    modify it under the terms of the MPL Mozilla Public License
13 #    as published by the Free Software Foundation; either version 1.1
14 #    of the License, or (at your option) any later version.
15 #
16 #    This program is distributed in the hope that it will be useful,
17 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 #    MPL Mozilla Public License for more details.
20 #
21 #    You may have received a copy of the MPL Mozilla Public License
22 #    along with this program.
23 #
24 #    An on-line copy of the MPL Mozilla Public License can be found
25 #    http://www.mozilla.org/MPL/MPL-1.1.html
26 #
27 #
28 # The ispCP ω Home Page is at:
29 #
30 #    http://isp-control.net
31 #
32
33 ifndef INST_PREF
34         INST_PREF=/tmp/ispcp
35 endif
36
37 HOST_OS=opensuse
38
39 ROOT_CONF=$(INST_PREF)/etc
40
41 SYSTEM_ROOT=$(INST_PREF)/srv/www/ispcp
42 SYSTEM_CONF=$(INST_PREF)/etc/ispcp
43 SYSTEM_LOG=$(INST_PREF)/var/log/ispcp
44 SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/var/log/apache2/backup
45 SYSTEM_VIRTUAL=$(INST_PREF)/srv/www/virtual
46 SYSTEM_AWSTATS=$(INST_PREF)/srv/www/awstats
47 SYSTEM_FCGI=$(INST_PREF)/srv/www/fcgi
48 SYSTEM_SCOREBOARDS=$(INST_PREF)/srv/www/scoreboards
49 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual
50 SYSTEM_MAKE_DIRS=/bin/mkdir -p
51 SYSTEM_MAKE_FILE=/bin/touch
52
53 export
54
55
56 install:
57
58         cd ./tools && $(MAKE) install
59
60         $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
61         $(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
62         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
63         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr
64         $(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
65         $(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
66         $(SYSTEM_MAKE_DIRS) $(SYSTEM_SCOREBOARDS)
67         $(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS)
68         $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
69         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
70
71         cd ./configs && $(MAKE) install
72         cd ./engine && $(MAKE) install
73         cd ./gui && $(MAKE) install
74         cd ./keys && $(MAKE) install
75
76
77 uninstall:
78
79         cd ./tools && $(MAKE) uninstall
80         cd ./configs && $(MAKE) uninstall
81         cd ./engine && $(MAKE) uninstall
82         cd ./gui && $(MAKE) uninstall
83         cd ./keys && $(MAKE) uninstall
84
85         rm -rf $(SYSTEM_CONF)
86         rm -rf $(SYSTEM_ROOT)
87         rm -rf $(SYSTEM_LOG)
88         rm -rf $(SYSTEM_VIRTUAL)
89         rm -rf $(SYSTEM_FCGI)
90         rm -rf $(SYSTEM_SCOREBOARDS)
91         rm -rf $(SYSTEM_MAIL_VIRTUAL)
92         rm -rf $(SYSTEM_APACHE_BACK_LOG)
93         rm -rf ./*~
94
95
96 clean:
97
98         cd ./tools/daemon && $(MAKE) clean
99         rm -rf $(INST_PREF)
100
101 .PHONY: install uninstall clean
Note: See TracBrowser for help on using the browser.