root/tags/omega-1.0.0-rc4/Makefile.gentoo

Revision 1050, 2.7 kB (checked in by rats, 9 months ago)

Fixed #1106: BSDmakefile Setup not copy some of its file & Updated: a lot of Makefiles

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_APACHE_BACK_LOG=$(INST_PREF)/var/log/apache2/backup
44 SYSTEM_VIRTUAL=$(INST_PREF)/var/www/virtual
45 SYSTEM_AWSTATS=$(INST_PREF)/var/www/awstats
46 SYSTEM_FCGI=$(INST_PREF)/var/www/fcgi
47 SYSTEM_SCOREBOARDS=$(INST_PREF)/var/www/scoreboards
48 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual
49 SYSTEM_MAKE_DIRS=/bin/mkdir -p
50
51 POSTFIX_SASLDB2_DIR=$(INST_PREF)/var/spool/postfix/etc
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         $(SYSTEM_MAKE_DIRS) $(POSTFIX_SASLDB2_DIR)
71
72         cd ./configs && $(MAKE) install
73         cd ./engine && $(MAKE) install
74         cd ./gui && $(MAKE) install
75         cd ./keys && $(MAKE) install
76
77
78 uninstall:
79
80         cd ./tools && $(MAKE) uninstall
81         cd ./configs && $(MAKE) uninstall
82         cd ./engine && $(MAKE) uninstall
83         cd ./gui && $(MAKE) uninstall
84         cd ./keys && $(MAKE) uninstall
85
86         rm -rf $(SYSTEM_CONF)
87         rm -rf $(SYSTEM_ROOT)
88         rm -rf $(SYSTEM_LOG)
89         rm -rf $(SYSTEM_VIRTUAL)
90         rm -rf $(SYSTEM_FCGI)
91         rm -rf $(SYSTEM_SCOREBOARDS)
92         rm -rf $(SYSTEM_MAIL_VIRTUAL)
93         rm -rf $(SYSTEM_APACHE_BACK_LOG)
94         rm -rf $(POSTFIX_SASLDB2_DIR)
95         rm -rf ./*~
96
97
98 clean:
99
100         cd ./tools/daemon && $(MAKE) clean
101
102 .PHONY: install uninstall clean
Note: See TracBrowser for help on using the browser.