root/trunk/Makefile.gentoo

Revision 1335, 2.9 kB (checked in by scitech, 1 month 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 ifndef INST_PREF
33         INST_PREF=/tmp/ispcp
34 endif
35
36 HOST_OS=gentoo
37
38 ROOT_CONF=$(INST_PREF)/etc
39
40 SYSTEM_ROOT=$(INST_PREF)/var/www/ispcp
41 SYSTEM_CONF=$(INST_PREF)/etc/ispcp
42 SYSTEM_LOG=$(INST_PREF)/var/log/ispcp
43 SYSTEM_PROFTPD_LOG=$(INST_PREF)/var/log/proftpd
44 SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/var/log/apache2/backup
45 SYSTEM_APACHE_USERS_LOG=$(INST_PREF)/var/log/apache2/users
46 SYSTEM_VIRTUAL=$(INST_PREF)/var/www/virtual
47 SYSTEM_AWSTATS=$(INST_PREF)/var/www/awstats
48 SYSTEM_FCGI=$(INST_PREF)/var/www/fcgi
49 SYSTEM_SCOREBOARDS=$(INST_PREF)/var/www/scoreboards
50 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/spool/mail/virtual
51 SYSTEM_MAKE_DIRS=/bin/mkdir -p
52 SYSTEM_MAKE_FILE=/bin/touch
53
54 POSTFIX_SASLDB2_DIR=$(INST_PREF)/etc/sasl2
55
56 export
57
58
59 install:
60
61         cd ./tools && $(MAKE) install
62
63         $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
64         $(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
65         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
66         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr
67         $(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
68         $(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
69         $(SYSTEM_MAKE_DIRS) $(SYSTEM_SCOREBOARDS)
70         $(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS)
71         $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
72         $(SYSTEM_MAKE_DIRS) $(SYSTEM_PROFTPD_LOG)
73         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
74         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_USERS_LOG)
75         $(SYSTEM_MAKE_DIRS) $(POSTFIX_SASLDB2_DIR)
76
77         cd ./configs && $(MAKE) install
78         cd ./engine && $(MAKE) install
79         cd ./gui && $(MAKE) install
80         cd ./keys && $(MAKE) install
81
82
83 uninstall:
84
85         cd ./tools && $(MAKE) uninstall
86         cd ./configs && $(MAKE) uninstall
87         cd ./engine && $(MAKE) uninstall
88         cd ./gui && $(MAKE) uninstall
89         cd ./keys && $(MAKE) uninstall
90
91         rm -rf $(SYSTEM_CONF)
92         rm -rf $(SYSTEM_ROOT)
93         rm -rf $(SYSTEM_LOG)
94         rm -rf $(SYSTEM_VIRTUAL)
95         rm -rf $(SYSTEM_FCGI)
96         rm -rf $(SYSTEM_SCOREBOARDS)
97         rm -rf $(SYSTEM_MAIL_VIRTUAL)
98         rm -rf $(SYSTEM_APACHE_BACK_LOG)
99         rm -rf $(POSTFIX_SASLDB2_DIR)
100         rm -rf ./*~
101
102
103 clean:
104
105         cd ./tools/daemon && $(MAKE) clean
106         rm -rf $(INST_PREF)
107
108 .PHONY: install uninstall clean
Note: See TracBrowser for help on using the browser.