| 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 |
export |
|---|
| 34 |
|
|---|
| 35 |
install: |
|---|
| 36 |
|
|---|
| 37 |
if test $(HOST_OS) = ubuntu ; then \ |
|---|
| 38 |
cp ./ispcp.conf $(SYSTEM_CONF) ; \ |
|---|
| 39 |
(cd ./apache && $(MAKE) install &); \ |
|---|
| 40 |
(cd ./awstats && $(MAKE) install &); \ |
|---|
| 41 |
(cd ./bind && $(MAKE) install &); \ |
|---|
| 42 |
(cd ./cron.d && $(MAKE) install &); \ |
|---|
| 43 |
(cd ./database && $(MAKE) install &); \ |
|---|
| 44 |
(cd ./fcgi && $(MAKE) install &); \ |
|---|
| 45 |
(cd ./init.d && $(MAKE) install &); \ |
|---|
| 46 |
(cd ./postfix && $(MAKE) install &); \ |
|---|
| 47 |
(cd ./courier && $(MAKE) install &); \ |
|---|
| 48 |
(cd ./proftpd && $(MAKE) install &); \ |
|---|
| 49 |
(cd ./logrotate && $(MAKE) install); \ |
|---|
| 50 |
fi |
|---|
| 51 |
|
|---|
| 52 |
uninstall: |
|---|
| 53 |
|
|---|
| 54 |
if test $(HOST_OS) = ubuntu ; then \ |
|---|
| 55 |
rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ |
|---|
| 56 |
(cd ./apache && $(MAKE) uninstall &); \ |
|---|
| 57 |
(cd ./awstats && $(MAKE) uninstall &); \ |
|---|
| 58 |
(cd ./bind && $(MAKE) uninstall &); \ |
|---|
| 59 |
(cd ./cron.d && $(MAKE) uninstall &); \ |
|---|
| 60 |
(cd ./database && $(MAKE) uninstall &); \ |
|---|
| 61 |
(cd ./init.d && $(MAKE) uninstall &); \ |
|---|
| 62 |
(cd ./postfix && $(MAKE) uninstall &); \ |
|---|
| 63 |
(cd ./courier && $(MAKE) uninstall &); \ |
|---|
| 64 |
(cd ./proftpd && $(MAKE) uninstall &); \ |
|---|
| 65 |
(cd ./logrotate && $(MAKE) uninstall &); \ |
|---|
| 66 |
fi |
|---|