root/trunk/Makefile.ubuntu

Revision 1123, 2.5 kB (checked in by zothos, 4 months ago)

* Corrected gentoo postfix main.cnf
* Fixed #1204: wrong configs-Path in Makefile.ubuntu (Install doesn't work)

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=ubuntu
38
39 ROOT_CONF=$(INST_PREF)/etc
40
41 SYSTEM_ROOT=$(INST_PREF)/var/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)/var/www/virtual
46 SYSTEM_AWSTATS=$(INST_PREF)/var/www/awstats
47 SYSTEM_FCGI=$(INST_PREF)/var/www/fcgi
48 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual
49 SYSTEM_MAKE_DIRS=/bin/mkdir -p
50 SYSTEM_MAKE_FILE=/bin/touch
51
52 export
53
54
55 install:
56
57         cd ./tools && $(MAKE) install
58
59         $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
60         $(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
61         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
62         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr
63         $(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
64         $(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
65         $(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS)
66         $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
67         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
68
69         cd ./configs && $(MAKE) install
70         cd ./engine && $(MAKE) install
71         cd ./gui && $(MAKE) install
72         cd ./keys && $(MAKE) install
73
74
75 uninstall:
76
77         cd ./tools && $(MAKE) uninstall
78         cd ./configs && $(MAKE) uninstall
79         cd ./engine && $(MAKE) uninstall
80         cd ./gui && $(MAKE) uninstall
81         cd ./keys && $(MAKE) uninstall
82
83         rm -rf $(SYSTEM_CONF)
84         rm -rf $(SYSTEM_ROOT)
85         rm -rf $(SYSTEM_LOG)
86         rm -rf $(SYSTEM_VIRTUAL)
87         rm -rf $(SYSTEM_FCGI)
88         rm -rf $(SYSTEM_MAIL_VIRTUAL)
89         rm -rf $(SYSTEM_APACHE_BACK_LOG)
90         rm -rf ./*~
91
92
93 clean:
94
95         cd ./tools/daemon && $(MAKE) clean
96
97 .PHONY: install uninstall clean
Note: See TracBrowser for help on using the browser.