| 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 |
SYSTEM_ENGINE_ROOT=$(SYSTEM_ROOT)/engine |
|---|
| 34 |
|
|---|
| 35 |
CMD_CHOWN=/bin/chown |
|---|
| 36 |
CMD_RM=/bin/rm -rf |
|---|
| 37 |
CMD_INSTALL=/usr/bin/install -m 0700 -o root -g root |
|---|
| 38 |
CMD_MAIL_INSTALL=/usr/bin/install -m 0700 -o vmail -g mail |
|---|
| 39 |
CMD_DIR_INSTALL=/usr/bin/install -d -o root -g root |
|---|
| 40 |
|
|---|
| 41 |
export |
|---|
| 42 |
|
|---|
| 43 |
install: |
|---|
| 44 |
|
|---|
| 45 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT) |
|---|
| 46 |
$(CMD_DIR_INSTALL) -m 0755 $(SYSTEM_ENGINE_ROOT) |
|---|
| 47 |
|
|---|
| 48 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/awstats |
|---|
| 49 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/awstats |
|---|
| 50 |
|
|---|
| 51 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/backup |
|---|
| 52 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/backup |
|---|
| 53 |
|
|---|
| 54 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/quota |
|---|
| 55 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/quota |
|---|
| 56 |
|
|---|
| 57 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/traffic |
|---|
| 58 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/traffic |
|---|
| 59 |
|
|---|
| 60 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/messager |
|---|
| 61 |
$(CMD_DIR_INSTALL) -m 0755 $(SYSTEM_ENGINE_ROOT)/messager |
|---|
| 62 |
|
|---|
| 63 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 64 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 65 |
|
|---|
| 66 |
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ENGINE_ROOT)/tools |
|---|
| 67 |
$(CMD_DIR_INSTALL) -m 0700 $(SYSTEM_ENGINE_ROOT)/tools |
|---|
| 68 |
|
|---|
| 69 |
cd ./traffic && $(MAKE) install |
|---|
| 70 |
|
|---|
| 71 |
$(CMD_INSTALL) ./ispcp_common_code.pl $(SYSTEM_ENGINE_ROOT) |
|---|
| 72 |
$(CMD_INSTALL) ./ispcp_common_methods.pl $(SYSTEM_ENGINE_ROOT) |
|---|
| 73 |
|
|---|
| 74 |
# keys needed for ispCP engine; |
|---|
| 75 |
$(CMD_INSTALL) ./ispcp-db-keys.pl $(SYSTEM_ENGINE_ROOT) |
|---|
| 76 |
|
|---|
| 77 |
# one more copy for auto replay system; |
|---|
| 78 |
$(CMD_INSTALL) ./ispcp-db-keys.pl $(SYSTEM_ENGINE_ROOT)/messager |
|---|
| 79 |
|
|---|
| 80 |
$(CMD_INSTALL) ./ispcp-apache-logger $(SYSTEM_ENGINE_ROOT) |
|---|
| 81 |
$(CMD_INSTALL) ./ispcp-rqst-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 82 |
$(CMD_INSTALL) ./ispcp-dmn-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 83 |
$(CMD_INSTALL) ./ispcp-sub-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 84 |
$(CMD_INSTALL) ./ispcp-alssub-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 85 |
$(CMD_INSTALL) ./ispcp-als-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 86 |
$(CMD_INSTALL) ./ispcp-htusers-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 87 |
$(CMD_INSTALL) ./ispcp-htaccess-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 88 |
$(CMD_INSTALL) ./ispcp-htgroups-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 89 |
$(CMD_INSTALL) ./ispcp-mbox-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 90 |
$(CMD_INSTALL) ./ispcp-serv-mngr $(SYSTEM_ENGINE_ROOT) |
|---|
| 91 |
$(CMD_INSTALL) ./ispcp-db-passwd $(SYSTEM_ENGINE_ROOT) |
|---|
| 92 |
|
|---|
| 93 |
$(CMD_INSTALL) ./awstats/awstats_buildstaticpages.pl $(SYSTEM_ENGINE_ROOT)/awstats |
|---|
| 94 |
$(CMD_INSTALL) ./awstats/awstats_updateall.pl $(SYSTEM_ENGINE_ROOT)/awstats |
|---|
| 95 |
|
|---|
| 96 |
$(CMD_INSTALL) ./backup/ispcp-bk-task $(SYSTEM_ENGINE_ROOT)/backup |
|---|
| 97 |
$(CMD_INSTALL) ./backup/ispcp-backup-all $(SYSTEM_ENGINE_ROOT)/backup |
|---|
| 98 |
$(CMD_INSTALL) ./backup/ispcp-backup-ispcp $(SYSTEM_ENGINE_ROOT)/backup |
|---|
| 99 |
|
|---|
| 100 |
$(CMD_INSTALL) ./quota/ispcp-dsk-quota $(SYSTEM_ENGINE_ROOT)/quota |
|---|
| 101 |
|
|---|
| 102 |
$(CMD_INSTALL) ./messager/ispcp-arpl-msgr $(SYSTEM_ENGINE_ROOT)/messager |
|---|
| 103 |
|
|---|
| 104 |
$(CMD_INSTALL) ./setup/set-engine-permissions.sh $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 105 |
$(CMD_INSTALL) ./setup/set-gui-permissions.sh $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 106 |
$(CMD_INSTALL) ./setup/reset-setup $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 107 |
$(CMD_INSTALL) ./setup/ispcp-setup $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 108 |
$(CMD_INSTALL) ./setup/ispcp-setup-methods.pl $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 109 |
$(CMD_INSTALL) ./setup/ispcp-update $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 110 |
$(CMD_INSTALL) ./setup/ispcp-uninstall $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 111 |
$(CMD_INSTALL) ./setup/regenerate.sql $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 112 |
$(CMD_INSTALL) ./setup/vhcs2.4.7-ispcp.sql $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 113 |
$(CMD_INSTALL) ./setup/vhcs2.4.8-ispcp.sql $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 114 |
$(CMD_INSTALL) ./setup/ispcp1.0.0rc2-ispcp.sql $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 115 |
$(CMD_INSTALL) ./setup/ispcp1.0.0rc3-ispcp.sql $(SYSTEM_ENGINE_ROOT)/setup |
|---|
| 116 |
|
|---|
| 117 |
$(CMD_INSTALL) ./tools/ispcp-httpd-logs-mngr $(SYSTEM_ENGINE_ROOT)/tools/ispcp-httpd-logs-mngr |
|---|
| 118 |
$(CMD_INSTALL) ./tools/ispcpphptemp.sh $(SYSTEM_ENGINE_ROOT)/tools/ispcpphptemp.sh |
|---|
| 119 |
|
|---|
| 120 |
$(CMD_INSTALL) ./traffic/ispcp-srv-traff $(SYSTEM_ENGINE_ROOT)/traffic |
|---|
| 121 |
$(CMD_INSTALL) ./traffic/ispcp-vrl-traff $(SYSTEM_ENGINE_ROOT)/traffic |
|---|
| 122 |
$(CMD_INSTALL) ./traffic/ispcp-vrl-traff-correction $(SYSTEM_ENGINE_ROOT)/traffic |
|---|
| 123 |
|
|---|
| 124 |
if test $(HOST_OS) = suse ; then \ |
|---|
| 125 |
$(CMD_INSTALL) ./traffic/ispcp-vrl-traff-SUSE $(SYSTEM_ENGINE_ROOT)/traffic; \ |
|---|
| 126 |
elif test $(HOST_OS) = opensuse ; then \ |
|---|
| 127 |
$(CMD_INSTALL) ./traffic/ispcp-vrl-traff-SUSE $(SYSTEM_ENGINE_ROOT)/traffic; \ |
|---|
| 128 |
fi |
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
uninstall: |
|---|
| 132 |
|
|---|
| 133 |
rm -rf $(SYSTEM_ENGINE_ROOT) |
|---|
| 134 |
rm -rf ./*~ |
|---|