root/trunk/BSDmakefile

Revision 1192, 3.2 kB (checked in by rats, 1 month ago)

* Fixed #1322: (german) updated german language file
* Fixed #1324: (freebsd) fix freebsd awstats and cronjob

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 # This is a TODO list:
34 # CLOSE:        there is no /etc/cron.d/ispcp is freebsd
35 # CLOSE:        wrong path and format awstats cronjob
36 # OPEN:         scoreboard dir not created
37 # OPEN:         Under jail, system still in heavy testing
38
39 .ifdef $(OSTYPE)==FreeBSD
40 .include <Makefile.fbsd>
41 .else
42 .include <Makefile.inc>
43 .endif
44
45 install:
46         #
47         # Preparing ISPCP System Directory and files   
48         #
49         cd ./tools && $(MAKE) install
50         $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
51         $(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
52         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
53         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr
54         $(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
55         $(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
56         $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
57         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
58         cd ./configs && $(MAKE) install
59         cd ./engine && $(MAKE) install
60         cd ./gui && $(MAKE) install
61         cd ./keys && $(MAKE) install
62
63         #
64         # Patch some variable
65         #
66         /usr/bin/sed s/"\/etc\/ispcp\/ispcp.conf"/"\/usr\/local\/etc\/ispcp\/ispcp.conf"/g ./engine/ispcp_common_code.pl > $(SYSTEM_ROOT)/engine/ispcp_common_code.pl
67
68 .if exists ($(SYSTEM_WEB)/ispcp/engine/ispcp-db-keys.pl)
69         #
70         # Previous database key detected, assuming being perform Upgrade Procedure
71         #       
72         cp $(SYSTEM_WEB)/ispcp/engine/ispcp-db-keys.pl $(SYSTEM_ROOT)/engine/
73         cp $(SYSTEM_WEB)/ispcp/engine/messager/ispcp-db-keys.pl $(SYSTEM_ROOT)/engine/messager/
74         cp $(SYSTEM_WEB)/ispcp/gui/include/ispcp-db-keys.php $(SYSTEM_ROOT)/gui/include/
75         cp $(SYSTEM_WEB)/ispcp/gui/tools/pma/config.inc.php $(SYSTEM_ROOT)/gui/tools/pma/
76 .endif
77
78         cd ${INST_PREF} && cp -R * /
79         rm -rf ${INST_PREF}
80
81         #
82         #
83         # If Some error occured please read FAQ first and search at forum in http://www.isp-control.net
84         # Go to $(SYSTEM_WEB)/ispcp/engine/setup and type "ispcp-setup" to configure or "ispcp-upgrade"
85         # to complete upgrade process
86
87 uninstall:
88
89         cd ./tools && $(MAKE) uninstall
90         cd ./configs && $(MAKE) uninstall
91         cd ./engine && $(MAKE) uninstall
92         cd ./gui && $(MAKE) uninstall
93         cd ./keys && $(MAKE) uninstall
94         rm -rf $(SYSTEM_CONF)
95         rm -rf $(SYSTEM_ROOT)
96         rm -rf $(SYSTEM_LOG)
97         rm -rf $(SYSTEM_VIRTUAL)
98         rm -rf $(SYSTEM_FCGI)
99         rm -rf $(SYSTEM_MAIL_VIRTUAL)
100         rm -rf $(SYSTEM_APACHE_BACK_LOG)
101         rm -rf ./*~
102
103
104 clean:
105
106         cd ./tools/daemon && $(MAKE) clean
107
108
Note: See TracBrowser for help on using the browser.