| 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 |
.ifdef $(OSTYPE)==FreeBSD |
|---|
| 34 |
.include <Makefile.fbsd> |
|---|
| 35 |
.else |
|---|
| 36 |
.include <Makefile.inc> |
|---|
| 37 |
.endif |
|---|
| 38 |
|
|---|
| 39 |
install: |
|---|
| 40 |
|
|---|
| 41 |
cd ./tools && $(MAKE) install |
|---|
| 42 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF) |
|---|
| 43 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT) |
|---|
| 44 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG) |
|---|
| 45 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr |
|---|
| 46 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL) |
|---|
| 47 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI) |
|---|
| 48 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL) |
|---|
| 49 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG) |
|---|
| 50 |
cd ./configs && $(MAKE) install |
|---|
| 51 |
cd ./engine && $(MAKE) install |
|---|
| 52 |
cd ./gui && $(MAKE) install |
|---|
| 53 |
cd ./keys && $(MAKE) install |
|---|
| 54 |
|
|---|
| 55 |
# Patch some variable |
|---|
| 56 |
/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 |
|---|
| 57 |
/usr/bin/sed s/"\/apache\"\;"/"\/apache22\"\;"/g ./engine/setup/ispcp-setup-methods.pl > $(SYSTEM_ROOT)/engine/setup/ispcp-setup-methods.pl |
|---|
| 58 |
|
|---|
| 59 |
cd ${INST_PREF} && cp -R * / |
|---|
| 60 |
rm -rf ${INST_PREF} |
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
uninstall: |
|---|
| 64 |
|
|---|
| 65 |
cd ./tools && $(MAKE) uninstall |
|---|
| 66 |
cd ./configs && $(MAKE) uninstall |
|---|
| 67 |
cd ./engine && $(MAKE) uninstall |
|---|
| 68 |
cd ./gui && $(MAKE) uninstall |
|---|
| 69 |
cd ./keys && $(MAKE) uninstall |
|---|
| 70 |
rm -rf $(SYSTEM_CONF) |
|---|
| 71 |
rm -rf $(SYSTEM_ROOT) |
|---|
| 72 |
rm -rf $(SYSTEM_LOG) |
|---|
| 73 |
rm -rf $(SYSTEM_VIRTUAL) |
|---|
| 74 |
rm -rf $(SYSTEM_FCGI) |
|---|
| 75 |
rm -rf $(SYSTEM_MAIL_VIRTUAL) |
|---|
| 76 |
rm -rf $(SYSTEM_APACHE_BACK_LOG) |
|---|
| 77 |
rm -rf ./*~ |
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 |
clean: |
|---|
| 81 |
|
|---|
| 82 |
cd ./tools/daemon && $(MAKE) clean |
|---|