Changeset 3881
- Timestamp:
- 07/23/11 00:39:13 (10 months ago)
- Location:
- branches/domain-disable/configs
- Files:
-
- 92 deleted
- 10 edited
-
archlinux/Makefile (modified) (3 diffs)
-
centos/Makefile (modified) (3 diffs)
-
centos/apache/Makefile (deleted)
-
centos/awstats (deleted)
-
centos/bind (deleted)
-
centos/courier (deleted)
-
centos/cron.d (deleted)
-
centos/fcgi (deleted)
-
centos/init.d/Makefile (deleted)
-
centos/logrotate/Makefile (deleted)
-
centos/postfix/Makefile (deleted)
-
centos/proftpd/Makefile (deleted)
-
debian/Makefile (modified) (3 diffs)
-
debian/apache/Makefile (deleted)
-
debian/awstats (deleted)
-
debian/bind (deleted)
-
debian/courier (deleted)
-
debian/cron.d (deleted)
-
debian/fcgi (deleted)
-
debian/init.d/Makefile (deleted)
-
debian/logrotate (deleted)
-
debian/postfix (deleted)
-
debian/proftpd (deleted)
-
fedora/Makefile (modified) (3 diffs)
-
fedora/apache (deleted)
-
fedora/awstats (deleted)
-
fedora/bind (deleted)
-
fedora/courier (deleted)
-
fedora/cron.d (deleted)
-
fedora/fcgi (deleted)
-
fedora/init.d/Makefile (deleted)
-
fedora/logrotate/Makefile (deleted)
-
fedora/postfix/Makefile (deleted)
-
fedora/proftpd/Makefile (deleted)
-
fedora/sysconfig/Makefile (deleted)
-
freebsd/BSDmakefile (modified) (3 diffs)
-
freebsd/apache/BSDmakefile (deleted)
-
freebsd/apache/working (deleted)
-
freebsd/awstats (deleted)
-
freebsd/bind/BSDmakefile (deleted)
-
freebsd/courier/BSDmakefile (deleted)
-
freebsd/cron.d/BSDmakefile (deleted)
-
freebsd/fcgi/BSDmakefile (deleted)
-
freebsd/init.d/BSDmakefile (deleted)
-
freebsd/logrotate/BSDmakefile (deleted)
-
freebsd/postfix/BSDmakefile (deleted)
-
freebsd/proftpd/BSDmakefile (deleted)
-
gentoo/Makefile (modified) (3 diffs)
-
gentoo/apache/Makefile (deleted)
-
gentoo/awstats (deleted)
-
gentoo/bind (deleted)
-
gentoo/courier (deleted)
-
gentoo/cron.d (deleted)
-
gentoo/fcgi (deleted)
-
gentoo/init.d/Makefile (deleted)
-
gentoo/logrotate (deleted)
-
gentoo/postfix/Makefile (deleted)
-
gentoo/proftpd/Makefile (deleted)
-
openbsd/BSDmakefile (modified) (3 diffs)
-
openbsd/apache/BSDmakefile (deleted)
-
openbsd/awstats (deleted)
-
openbsd/bind/BSDmakefile (deleted)
-
openbsd/courier/BSDmakefile (deleted)
-
openbsd/cron.d/BSDmakefile (deleted)
-
openbsd/fcgi (deleted)
-
openbsd/init.d/BSDmakefile (deleted)
-
openbsd/logrotate (deleted)
-
openbsd/postfix/BSDmakefile (deleted)
-
openbsd/proftpd/BSDmakefile (deleted)
-
opensuse/Makefile (modified) (3 diffs)
-
opensuse/apache/01_awstats.conf (deleted)
-
opensuse/apache/Makefile (deleted)
-
opensuse/awstats (deleted)
-
opensuse/bind (deleted)
-
opensuse/courier (deleted)
-
opensuse/fcgi (deleted)
-
opensuse/init.d/Makefile (deleted)
-
opensuse/logrotate/Makefile (deleted)
-
opensuse/postfix/Makefile (deleted)
-
opensuse/proftpd/Makefile (deleted)
-
redhat/Makefile (modified) (3 diffs)
-
redhat/apache/Makefile (deleted)
-
redhat/awstats (deleted)
-
redhat/bind (deleted)
-
redhat/courier (deleted)
-
redhat/cron.d (deleted)
-
redhat/fcgi (deleted)
-
redhat/init.d/Makefile (deleted)
-
redhat/logrotate/Makefile (deleted)
-
redhat/postfix (deleted)
-
redhat/proftpd/Makefile (deleted)
-
ubuntu/Makefile (modified) (3 diffs)
-
ubuntu/apache/Makefile (deleted)
-
ubuntu/awstats (deleted)
-
ubuntu/bind (deleted)
-
ubuntu/courier (deleted)
-
ubuntu/cron.d (deleted)
-
ubuntu/fcgi (deleted)
-
ubuntu/init.d (deleted)
-
ubuntu/logrotate/Makefile (deleted)
-
ubuntu/postfix/Makefile (deleted)
-
ubuntu/proftpd (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/domain-disable/configs/archlinux/Makefile
r3880 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is " VHCS - Virtual Hosting Control System".18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 20 19 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 if test $(HOST_OS) = archlinux ; then \ 36 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 41 ifneq($(HOST_OS),archlinux) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(REMOTE_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(REMOTE_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(REMOTE_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(REMOTE_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 # Prepare logrotate configuration files 118 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 119 120 cp $(REMOTE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 121 122 # Prepare postfix configuration files 123 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 124 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 125 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 126 127 cp $(REMOTE_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 128 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 129 130 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 131 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 132 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 133 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 134 135 # Prepare proftpd configuration files 136 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 137 138 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 139 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 140 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 141 142 if test ! -d $(ROOT_CONF)/proftpd 143 then 144 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 37 145 fi 38 146 147 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 148 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 149 150 if test -e /etc/proftpd.conf 151 then 152 mv /etc/proftpd.conf /etc/proftpd.conf.bak 153 fi 154 155 cp $(REMOTE_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 156 39 157 uninstall: 40 if test $(HOST_OS) = archlinux ; then \ 41 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 42 fi 158 ifneq($(HOST_OS),archlinux) 159 $(error Makefile is invalid for OS $(HOST_OS)) 160 endif 161 162 # Remove apache configuration files 163 rm -rf $(SYSTEM_CONF)/apache 164 165 # Remove awstats configuration files 166 rm -rf $(SYSTEM_CONF)/awstats 167 168 # Remove bind configuration files 169 rm -rf $(SYSTEM_CONF)/bind 170 171 # Remove courier configuration files 172 rm -rf $(SYSTEM_CONF)/courier 173 174 # Remove cron.d configuration files 175 rm -rf $(SYSTEM_CONF)/cron.d 176 177 # Remove fcgi configuration files 178 rm -rf $(SYSTEM_CONF)/fcgi 179 180 # Remove init.d configuration files 181 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 182 rm -f $(ROOT_CONF)/init.d/ispcp_network 183 184 # Remove logrotate configuration files 185 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 186 187 # Remove postfix configuration files 188 rm -rf $(SYSTEM_CONF)/postfix 189 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 190 191 # Remove proftpd configuration files 192 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/centos/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is " VHCS - Virtual Hosting Control System".18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 20 19 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 if test $(HOST_OS) = centos ; then \ 36 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 37 (cd ./apache && $(MAKE) install &); \ 38 (cd ./awstats && $(MAKE) install &); \ 39 (cd ./bind && $(MAKE) install &); \ 40 (cd ./cron.d && $(MAKE) install &); \ 41 (cd ./fcgi && $(MAKE) install &); \ 42 (cd ./init.d && $(MAKE) install &); \ 43 (cd ./postfix && $(MAKE) install &); \ 44 (cd ./courier && $(MAKE) install &); \ 45 (cd ./proftpd && $(MAKE) install &); \ 46 (cd ./logrotate && $(MAKE) install); \ 41 ifneq($(HOST_OS),centos) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(REMOTE_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 # Prepare logrotate configuration files 118 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 119 120 cp $(LOCAL_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 121 122 # Prepare postfix configuration files 123 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 124 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 125 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 126 127 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 128 cp $(LOCAL_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 129 130 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 131 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 132 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 133 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 134 135 # Prepare proftpd configuration files 136 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 137 138 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 139 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 140 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 141 142 if test ! -d $(ROOT_CONF)/proftpd 143 then 144 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 47 145 fi 48 146 147 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 148 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 149 150 if test -e /etc/proftpd.conf 151 then 152 mv /etc/proftpd.conf /etc/proftpd.conf.bak 153 fi 154 155 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 156 49 157 uninstall: 50 if test $(HOST_OS) = centos ; then \ 51 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 52 (cd ./apache && $(MAKE) uninstall &); \ 53 (cd ./awstats && $(MAKE) uninstall &); \ 54 (cd ./bind && $(MAKE) uninstall &); \ 55 (cd ./cron.d && $(MAKE) uninstall &); \ 56 (cd ./init.d && $(MAKE) uninstall &); \ 57 (cd ./postfix && $(MAKE) uninstall &); \ 58 (cd ./courier && $(MAKE) uninstall &); \ 59 (cd ./proftpd && $(MAKE) uninstall &); \ 60 (cd ./logrotate && $(MAKE) uninstall &); \ 61 fi 158 ifneq($(HOST_OS),centos) 159 $(error Makefile is invalid for OS $(HOST_OS)) 160 endif 161 162 # Remove apache configuration files 163 rm -rf $(SYSTEM_CONF)/apache 164 165 # Remove awstats configuration files 166 rm -rf $(SYSTEM_CONF)/awstats 167 168 # Remove bind configuration files 169 rm -rf $(SYSTEM_CONF)/bind 170 171 # Remove courier configuration files 172 rm -rf $(SYSTEM_CONF)/courier 173 174 # Remove cron.d configuration files 175 rm -rf $(SYSTEM_CONF)/cron.d 176 177 # Remove fcgi configuration files 178 rm -rf $(SYSTEM_CONF)/fcgi 179 180 # Remove init.d configuration files 181 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 182 rm -f $(ROOT_CONF)/init.d/ispcp_network 183 184 # Remove logrotate configuration files 185 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 186 187 # Remove postfix configuration files 188 rm -rf $(SYSTEM_CONF)/postfix 189 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 190 191 # Remove proftpd configuration files 192 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/debian/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is " VHCS - Virtual Hosting Control System".18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 20 19 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 if test $(HOST_OS) = debian ; then \ 36 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 37 (cd ./apache && $(MAKE) install &); \ 38 (cd ./awstats && $(MAKE) install &); \ 39 (cd ./bind && $(MAKE) install &); \ 40 (cd ./cron.d && $(MAKE) install &); \ 41 (cd ./fcgi && $(MAKE) install &); \ 42 (cd ./init.d && $(MAKE) install &); \ 43 (cd ./postfix && $(MAKE) install &); \ 44 (cd ./courier && $(MAKE) install &); \ 45 (cd ./proftpd && $(MAKE) install &); \ 46 (cd ./logrotate && $(MAKE) install); \ 41 ifneq($(HOST_OS),debian) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(REMOTE_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 # Prepare logrotate configuration files 118 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 119 120 cp $(REMOTE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 121 122 # Prepare postfix configuration files 123 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 124 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 125 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 126 127 cp $(REMOTE_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 128 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 129 130 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 131 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 132 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 133 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 134 135 # Prepare proftpd configuration files 136 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 137 138 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 139 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 140 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 141 142 if test ! -d $(ROOT_CONF)/proftpd 143 then 144 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 47 145 fi 48 146 147 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 148 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 149 150 if test -e /etc/proftpd.conf 151 then 152 mv /etc/proftpd.conf /etc/proftpd.conf.bak 153 fi 154 155 cp $(REMOTE_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 156 49 157 uninstall: 50 if test $(HOST_OS) = debian ; then \ 51 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 52 (cd ./apache && $(MAKE) uninstall &); \ 53 (cd ./awstats && $(MAKE) uninstall &); \ 54 (cd ./bind && $(MAKE) uninstall &); \ 55 (cd ./cron.d && $(MAKE) uninstall &); \ 56 (cd ./init.d && $(MAKE) uninstall &); \ 57 (cd ./postfix && $(MAKE) uninstall &); \ 58 (cd ./courier && $(MAKE) uninstall &); \ 59 (cd ./proftpd && $(MAKE) uninstall &); \ 60 (cd ./logrotate && $(MAKE) uninstall &); \ 61 fi 158 ifneq($(HOST_OS),debian) 159 $(error Makefile is invalid for OS $(HOST_OS)) 160 endif 161 162 # Remove apache configuration files 163 rm -rf $(SYSTEM_CONF)/apache 164 165 # Remove awstats configuration files 166 rm -rf $(SYSTEM_CONF)/awstats 167 168 # Remove bind configuration files 169 rm -rf $(SYSTEM_CONF)/bind 170 171 # Remove courier configuration files 172 rm -rf $(SYSTEM_CONF)/courier 173 174 # Remove cron.d configuration files 175 rm -rf $(SYSTEM_CONF)/cron.d 176 177 # Remove fcgi configuration files 178 rm -rf $(SYSTEM_CONF)/fcgi 179 180 # Remove init.d configuration files 181 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 182 rm -f $(ROOT_CONF)/init.d/ispcp_network 183 184 # Remove logrotate configuration files 185 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 186 187 # Remove postfix configuration files 188 rm -rf $(SYSTEM_CONF)/postfix 189 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 190 191 # Remove proftpd configuration files 192 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/fedora/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix-ispcp 37 32 38 export 33 39 34 40 install: 35 if test $(HOST_OS) = fedora ; then \ 36 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 37 (cd ./apache && $(MAKE) install &); \ 38 (cd ./awstats && $(MAKE) install &); \ 39 (cd ./bind && $(MAKE) install &); \ 40 (cd ./cron.d && $(MAKE) install &); \ 41 (cd ./fcgi && $(MAKE) install &); \ 42 (cd ./init.d && $(MAKE) install &); \ 43 (cd ./postfix && $(MAKE) install &); \ 44 (cd ./courier && $(MAKE) install &); \ 45 (cd ./proftpd && $(MAKE) install &); \ 46 (cd ./logrotate && $(MAKE) install &); \ 47 (cd ./sysconfig && $(MAKE) install &); \ 48 fi 41 ifneq($(HOST_OS),fedora) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(REMOTE_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(REMOTE_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 cp $(LOCAL_FOLDER)/init.d/proftpd-ispcp $(ROOT_CONF)/init.d 114 cp $(LOCAL_FOLDER)/init.d/postfix-ispcp $(ROOT_CONF)/init.d 115 116 chown root:root $(ROOT_CONF)/init.d/ispcp_network \ 117 $(ROOT_CONF)/init.d/ispcp_daemon \ 118 $(ROOT_CONF)/init.d/proftpd-ispcp \ 119 $(ROOT_CONF)/init.d/postfix-ispcp 120 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network \ 121 $(ROOT_CONF)/init.d/ispcp_daemon \ 122 $(ROOT_CONF)/init.d/proftpd-ispcp \ 123 $(ROOT_CONF)/init.d/postfix-ispcp 124 125 if test -f $(LOCAL_FOLDER)/init.d/ispcp_daemon.default ; then \ 126 cp -p $(LOCAL_FOLDER)/init.d/ispcp_daemon.default $(ROOT_CONF)/default/ispcp_daemon ; \ 127 fi 128 129 if test -f $(LOCAL_FOLDER)/init.d/ispcp_network.default ; then \ 130 cp -p $(LOCAL_FOLDER)/init.d/ispcp_network.default $(ROOT_CONF)/default/ispcp_network ; \ 131 fi 132 133 # Prepare logrotate configuration files 134 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 135 136 cp $(LOCAL_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 137 138 # Prepare postfix configuration files 139 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 140 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 141 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 142 143 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 144 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 145 146 cp $(LOCAL_FOLDER)/postfix/access $(ROOT_POSTFIX_CONF)/access 147 cp $(LOCAL_FOLDER)/postfix/canonical $(ROOT_POSTFIX_CONF)/canonical 148 cp $(LOCAL_FOLDER)/postfix/generic $(ROOT_POSTFIX_CONF)/generic 149 cp $(LOCAL_FOLDER)/postfix/header_checks $(ROOT_POSTFIX_CONF)/header_checks 150 cp $(LOCAL_FOLDER)/postfix/relocated $(ROOT_POSTFIX_CONF)/relocated 151 cp $(LOCAL_FOLDER)/postfix/virtual $(ROOT_POSTFIX_CONF)/virtual 152 153 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 154 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 155 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 156 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 157 158 # Prepare proftpd configuration files 159 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 160 161 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 162 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 163 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 164 165 if test ! -d $(ROOT_CONF)/proftpd 166 then 167 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 168 fi 169 170 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 171 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 172 173 if test -e /etc/proftpd.conf 174 then 175 mv /etc/proftpd.conf /etc/proftpd.conf.bak 176 fi 177 178 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 179 180 # Prepare sysconfig 181 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/sysconfig 182 183 cp $(LOCAL_FOLDER)/sysconfig/proftpd-ispcp $(ROOT_CONF)/sysconfig/ 49 184 50 185 uninstall: 51 if test $(HOST_OS) = fedora ; then \ 52 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 53 (cd ./apache && $(MAKE) uninstall &); \ 54 (cd ./awstats && $(MAKE) uninstall &); \ 55 (cd ./bind && $(MAKE) uninstall &); \ 56 (cd ./cron.d && $(MAKE) uninstall &); \ 57 (cd ./init.d && $(MAKE) uninstall &); \ 58 (cd ./postfix && $(MAKE) uninstall &); \ 59 (cd ./courier && $(MAKE) uninstall &); \ 60 (cd ./proftpd && $(MAKE) uninstall &); \ 61 (cd ./logrotate && $(MAKE) uninstall &); \ 62 (cd ./sysconfig && $(MAKE) uninstall &); \ 63 fi 64 186 ifneq($(HOST_OS),fedora) 187 $(error Makefile is invalid for OS $(HOST_OS)) 188 endif 189 190 # Remove apache configuration files 191 rm -rf $(SYSTEM_CONF)/apache 192 193 # Remove awstats configuration files 194 rm -rf $(SYSTEM_CONF)/awstats 195 196 # Remove bind configuration files 197 rm -rf $(SYSTEM_CONF)/bind 198 199 # Remove courier configuration files 200 rm -rf $(SYSTEM_CONF)/courier 201 202 # Remove cron.d configuration files 203 rm -rf $(SYSTEM_CONF)/cron.d 204 205 # Remove fcgi configuration files 206 rm -rf $(SYSTEM_CONF)/fcgi 207 208 # Remove init.d configuration files 209 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 210 rm -f $(ROOT_CONF)/init.d/ispcp_network 211 rm -f $(ROOT_CONF)/init.d/proftpd-ispcp 212 rm -f $(ROOT_CONF)/init.d/postfix-ispcp 213 rm -f $(ROOT_CONF)/default/ispcp_daemon 214 rm -f $(ROOT_CONF)/default/ispcp_network 215 216 # Remove logrotate configuration files 217 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 218 219 # Remove postfix configuration files 220 rm -rf $(SYSTEM_CONF)/postfix 221 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 222 223 # Remove proftpd configuration files 224 rm -rf $(SYSTEM_CONF)/proftpd 225 226 # Remove sysconfig 227 rm -f $(ROOT_CONF)/sysconfig/proftpd-ispcp -
branches/domain-disable/configs/freebsd/BSDmakefile
r3801 r3881 1 #!/usr/bin/make -f2 3 1 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 2 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 3 # … … 17 14 # under the License. 18 15 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 16 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 17 # 18 # The Initial Developer of the Original Code is the ispCP Team. 24 19 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 20 # isp Control Panel. All Rights Reserved. … … 32 27 .include <../../Makefile.fbsd> 33 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier-imap 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 ROOT_SASL2_CONF=/usr/local/lib/sasl2 38 APACHE_EXT_CONF=$(INST_PREF)/usr/local/etc/apache22/Includes 39 APACHE_MOD_CONF=$(INST_PREF)/usr/local/etc/apache22/extra 40 41 export 42 34 43 install: 35 cp ./ispcp.conf $(SYSTEM_CONF) ; cd .. 36 cd ./apache && $(MAKE) install ; cd .. 37 cd ./awstats && $(MAKE) install ; cd .. 38 cd ./bind && $(MAKE) install ; cd .. 39 cd ./cron.d && $(MAKE) install ; cd .. 40 cd ./fcgi && $(MAKE) install ; cd .. 41 cd ./init.d && $(MAKE) install ; cd .. 42 cd ./postfix && $(MAKE) install ; cd .. 43 cd ./courier && $(MAKE) install ; cd .. 44 cd ./proftpd && $(MAKE) install ; cd .. 45 cd ./logrotate && $(MAKE) install ; cd .. 44 ifneq($(HOST_OS),freebsd) 45 $(error Makefile is invalid for OS $(HOST_OS)) 46 endif 47 48 # prepare ispcp.conf file 49 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 50 51 # Prepare apache configuration files 52 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 54 $(SYSTEM_MAKE_DIRS) $(APACHE_EXT_CONF) 55 $(SYSTEM_MAKE_DIRS) $(APACHE_MOD_CONF) 56 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 57 58 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 59 cp $(LOCAL_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 60 cp $(LOCAL_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 61 62 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 63 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 64 cp -R $(LOCAL_FOLDER)/apache/parts/sub_entry $(SYSTEM_CONF)/apache/parts 65 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 66 67 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 68 69 cp $(LOCAL_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 70 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 71 72 # Prepare awstats configuration files 73 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 74 75 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 76 77 # Prepare bind configuration files 78 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 79 80 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 81 cp $(LOCAL_FOLDER)/bind/named.rc $(SYSTEM_CONF)/init.d 82 83 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 84 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 85 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 86 87 # Prepare courier configuration files 88 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 89 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 90 91 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 92 cp $(LOCAL_FOLDER)/courier/sasldb2 $(ROOT_COURIER_CONF) 93 94 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 95 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 96 97 # Prepare cron.d configurations files 98 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 99 100 cp $(LOCALE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 101 cp $(LOCALE_FOLDER)/cron.d/ispcp.phptemp $(SYSTEM_CONF)/cron.d 102 103 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 104 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 105 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 106 107 # Prepare fcgi configuration files 108 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 109 110 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 111 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 112 cp -R $(REMOTE_FOLDER)/fcgi/parts/master/php5/php.ini $(SYSTEM_CONF)/fcgi/parts/master/php5 113 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 114 115 # Prepare init.d configuration files 116 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/rc.d 117 118 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/rc.d 119 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/rc.d 120 121 chown root:wheel $(ROOT_CONF)/rc.d/ispcp_network $(ROOT_CONF)/rc.d/ispcp_daemon 122 chmod 0755 $(ROOT_CONF)/rc.d/ispcp_network $(ROOT_CONF)/rc.d/ispcp_daemon 123 124 # Prepare logrotate configuration files 125 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 126 127 cp $(REMOTE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.conf 128 129 # Prepare postfix configuration files 130 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 131 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 132 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 133 134 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 135 cp $(LOCAL_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 136 cp $(LOCAL_FOLDER)/postfix/smtpd.conf $(SYSTEM_CONF)/postfix/smtpd.conf 137 138 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 139 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 140 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 141 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 142 cp $(LOCAL_FOLDER)/postfix/smtpd.conf $(ROOT_SASL2_CONF) 143 144 # Prepare proftpd configuration files 145 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 146 147 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 148 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 149 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 150 151 if test ! -d $(ROOT_CONF)/proftpd 152 then 153 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 154 fi 155 156 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 157 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 158 159 if test -e /etc/proftpd.conf 160 then 161 mv /etc/proftpd.conf /etc/proftpd.conf.bak 162 fi 163 164 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 46 165 47 166 uninstall: 48 rm -rf $(SYSTEM_CONF)/ispcp.conf ; 49 cd ./apache && $(MAKE) uninstall ; cd .. 50 cd ./awstats && $(MAKE) uninstall ; cd .. 51 cd ./bind && $(MAKE) uninstall ; cd .. 52 cd ./cron.d && $(MAKE) uninstall ; cd .. 53 cd ./fcgi && $(MAKE) install ; cd .. 54 cd ./init.d && $(MAKE) uninstall ; cd .. 55 cd ./postfix && $(MAKE) uninstall ; cd .. 56 cd ./courier && $(MAKE) uninstall ; cd .. 57 cd ./proftpd && $(MAKE) uninstall ; cd .. 58 cd ./logrotate && $(MAKE) uninstall ; cd .. 59 60 167 ifneq($(HOST_OS),freebsd) 168 $(error Makefile is invalid for OS $(HOST_OS)) 169 endif 170 171 # Remove apache configuration files 172 rm -rf $(SYSTEM_CONF)/apache 173 174 # Remove awstats configuration files 175 rm -rf $(SYSTEM_CONF)/awstats 176 177 # Remove bind configuration files 178 rm -rf $(SYSTEM_CONF)/bind 179 180 # Remove courier configuration files 181 rm -rf $(SYSTEM_CONF)/courier 182 183 # Remove cron.d configuration files 184 rm -rf $(SYSTEM_CONF)/cron.d 185 186 # Remove fcgi configuration files 187 rm -rf $(SYSTEM_CONF)/fcgi 188 189 # Remove init.d configuration files 190 rm -f $(ROOT_CONF)/rc.d/ispcp_daemon 191 rm -f $(ROOT_CONF)/rc.d/ispcp_network 192 193 # Remove logrotate configuration files 194 rm -rf $(ROOT_CONF)/logrotate.conf 195 196 # Remove postfix configuration files 197 rm -rf $(SYSTEM_CONF)/postfix 198 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 199 200 # Remove proftpd configuration files 201 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/gentoo/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 36 if test $(HOST_OS) = gentoo ; then \ 37 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 38 cd ./apache && $(MAKE) install ; cd .. ; \ 39 cd ./awstats && $(MAKE) install ; cd .. ; \ 40 cd ./bind && $(MAKE) install ; cd .. ; \ 41 cd ./cron.d && $(MAKE) install ; cd .. ; \ 42 cd ./fcgi && $(MAKE) install ; cd .. ; \ 43 cd ./init.d && $(MAKE) install ; cd .. ; \ 44 cd ./postfix && $(MAKE) install ; cd .. ; \ 45 cd ./courier && $(MAKE) install ; cd .. ; \ 46 cd ./proftpd && $(MAKE) install ; cd .. ; \ 47 cd ./logrotate && $(MAKE) install ; cd .. ; \ 48 fi 41 ifneq($(HOST_OS),gentoo) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(REMOTE_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 if test -f conf.d/ispcp_daemon ; then \ 118 cp -p $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/conf.d/ispcp_daemon ; \ 119 fi 120 121 if test -f conf.d/ispcp_network ; then \ 122 cp -p $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/conf.d/ispcp_network ; \ 123 fi 124 125 # Prepare logrotate configuration files 126 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 127 128 cp $(REMOTE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 129 130 # Prepare postfix configuration files 131 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 132 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 133 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 134 135 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 136 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 137 138 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 139 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 140 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 141 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 142 143 # Prepare proftpd configuration files 144 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 145 146 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 147 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 148 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 149 150 if test ! -d $(ROOT_CONF)/proftpd 151 then 152 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 153 fi 154 155 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 156 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 157 158 if test -e /etc/proftpd.conf 159 then 160 mv /etc/proftpd.conf /etc/proftpd.conf.bak 161 fi 162 163 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 49 164 50 165 uninstall: 51 52 if test $(HOST_OS) = gentoo ; then \ 53 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 54 cd ./apache && $(MAKE) uninstall ; cd .. ; \ 55 cd ./awstats && $(MAKE) uninstall ; cd .. ; \ 56 cd ./bind && $(MAKE) uninstall ; cd .. ; \ 57 cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 58 cd ./init.d && $(MAKE) uninstall ; cd .. ; \ 59 cd ./postfix && $(MAKE) uninstall ; cd .. ; \ 60 cd ./courier && $(MAKE) uninstall ; cd .. ; \ 61 cd ./proftpd && $(MAKE) uninstall ; cd .. ; \ 62 cd ./logrotate && $(MAKE) uninstall ; cd .. ; \ 63 fi 166 ifneq($(HOST_OS),gentoo) 167 $(error Makefile is invalid for OS $(HOST_OS)) 168 endif 169 170 # Remove apache configuration files 171 rm -rf $(SYSTEM_CONF)/apache 172 173 # Remove awstats configuration files 174 rm -rf $(SYSTEM_CONF)/awstats 175 176 # Remove bind configuration files 177 rm -rf $(SYSTEM_CONF)/bind 178 179 # Remove courier configuration files 180 rm -rf $(SYSTEM_CONF)/courier 181 182 # Remove cron.d configuration files 183 rm -rf $(SYSTEM_CONF)/cron.d 184 185 # Remove fcgi configuration files 186 rm -rf $(SYSTEM_CONF)/fcgi 187 188 # Remove init.d configuration files 189 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 190 rm -f $(ROOT_CONF)/init.d/ispcp_network 191 192 # Remove logrotate configuration files 193 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 194 195 # Remove postfix configuration files 196 rm -rf $(SYSTEM_CONF)/postfix 197 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 198 199 # Remove proftpd configuration files 200 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/openbsd/BSDmakefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 36 33 .endif 37 34 35 36 # Global folders 37 LOCAL_FOLDER=. 38 REMOTE_FOLDER=../common 39 40 # Configuration specific folders 41 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 42 ROOT_COURIER_CONF=$(ROOT_CONF)/courier-imap 43 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 44 APACHE_EXT_CONF=$(INST_PREF)/var/www/conf 45 APACHE_MOD_CONF=$(INST_PREF)/usr/local/etc/apache22/extra/ 46 47 export 48 38 49 install: 39 cp ./ispcp.conf $(SYSTEM_CONF) ; cd .. 40 cd ./apache && $(MAKE) install ; cd .. 41 cd ./awstats && $(MAKE) install ; cd .. 42 cd ./bind && $(MAKE) install ; cd .. 43 cd ./cron.d && $(MAKE) install ; cd .. 44 cd ./fcgi && $(MAKE) install ; cd .. 45 cd ./init.d && $(MAKE) install ; cd .. 46 cd ./postfix && $(MAKE) install ; cd .. 47 cd ./courier && $(MAKE) install ; cd .. 48 cd ./proftpd && $(MAKE) install ; cd .. 49 cd ./logrotate && $(MAKE) install ; cd .. 50 ifneq($(HOST_OS),debian) 51 $(error Makefile is invalid for OS $(HOST_OS)) 52 endif 53 54 # prepare ispcp.conf file 55 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 56 57 # Prepare apache configuration files 58 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 59 $(SYSTEM_MAKE_DIRS) $(APACHE_EXT_CONF) 60 $(SYSTEM_MAKE_DIRS) $(APACHE_MOD_CONF) 61 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 64 cp $(LOCAL_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 65 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 66 67 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 68 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 69 cp -R $(LOCAL_FOLDER)/apache/parts/sub_entry.tpl $(SYSTEM_CONF)/apache/parts 70 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 71 72 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 73 74 cp $(LOCAL_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 75 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 76 77 # Prepare awstats configuration files 78 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 79 80 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 81 82 # Prepare bind configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 84 85 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 86 87 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 88 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 89 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 90 91 cp $(LOCAL_FOLDER)/bind/named.rc $(ROOT_CONF)/named.rc 92 chmod 700 $(ROOT_CONF)/named.rc 93 chown root:wheel $(ROOT_CONF)/named.rc 94 95 # Prepare courier configuration files 96 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 97 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 98 99 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 100 cp $(LOCAL_FOLDER)/courier/sasldb2 $(ROOT_CONF) 101 102 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 103 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 104 105 # Prepare cron.d configurations files 106 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 107 108 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 109 110 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 111 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 112 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 113 114 cp $(LOCAL_FOLDER)/cron.d/ispcp.phptemp $(ROOT_CONF)/cron.d 115 116 # Prepare fcgi configuration files 117 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 118 119 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 120 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 121 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 122 123 # Prepare init.d configuration files 124 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/ispcp_daemon.rc 125 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/ispcp_network.rc 126 127 chown root:wheel $(ROOT_CONF)/ispcp_network.rc $(ROOT_CONF)/ispcp_daemon.rc 128 chmod 0755 $(ROOT_CONF)/ispcp_network.rc $(ROOT_CONF)/ispcp_daemon.rc 129 130 # Prepare logrotate configuration files 131 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 132 133 cp $(REMOTE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 134 135 # Prepare postfix configuration files 136 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 137 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 138 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 139 140 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 141 cp $(LOCAL_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 142 143 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 144 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 145 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 146 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 147 148 cp $(LOCAL_CONF)/postfix/postfix.rc $(ROOT_CONF)/postfix.rc 149 150 chmod 700 $(ROOT_CONF)/postfix.rc 151 chown root:wheel $(ROOT_CONF)/postfix.rc 152 153 # Prepare proftpd configuration files 154 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 155 156 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 157 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 158 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 159 160 if test ! -d $(ROOT_CONF)/proftpd 161 then 162 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 163 fi 164 165 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 166 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 167 168 if test -e /etc/proftpd.conf 169 then 170 mv /etc/proftpd.conf /etc/proftpd.conf.bak 171 fi 172 173 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 174 175 cp $(LOCAL_FOLDER)/proftpd/proftpd.rc $(ROOT_CONF)/proftpd.rc 176 chmod 700 $(ROOT_CONF)/proftpd.rc 177 chown root:wheel $(ROOT_CONF)/proftpd.rc 178 50 179 51 180 uninstall: 52 rm -rf $(SYSTEM_CONF)/ispcp.conf ; 53 cd ./apache && $(MAKE) uninstall ; cd .. 54 cd ./awstats && $(MAKE) uninstall ; cd .. 55 cd ./bind && $(MAKE) uninstall ; cd .. 56 cd ./cron.d && $(MAKE) uninstall ; cd .. 57 cd ./fcgi && $(MAKE) install ; cd .. 58 cd ./init.d && $(MAKE) uninstall ; cd .. 59 cd ./postfix && $(MAKE) uninstall ; cd .. 60 cd ./courier && $(MAKE) uninstall ; cd .. 61 cd ./proftpd && $(MAKE) uninstall ; cd .. 62 cd ./logrotate && $(MAKE) uninstall ; cd .. 63 64 181 ifneq($(HOST_OS),debian) 182 $(error Makefile is invalid for OS $(HOST_OS)) 183 endif 184 185 # Remove apache configuration files 186 rm -rf $(SYSTEM_CONF)/apache 187 188 # Remove awstats configuration files 189 rm -rf $(SYSTEM_CONF)/awstats 190 191 # Remove bind configuration files 192 rm -rf $(SYSTEM_CONF)/bind 193 194 # Remove courier configuration files 195 rm -rf $(SYSTEM_CONF)/courier 196 197 # Remove cron.d configuration files 198 rm -rf $(SYSTEM_CONF)/cron.d 199 200 # Remove fcgi configuration files 201 rm -rf $(SYSTEM_CONF)/fcgi 202 203 # Remove init.d configuration files 204 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 205 rm -f $(ROOT_CONF)/init.d/ispcp_network 206 207 # Remove logrotate configuration files 208 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 209 210 # Remove postfix configuration files 211 rm -rf $(SYSTEM_CONF)/postfix 212 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 213 214 # Remove proftpd configuration files 215 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/opensuse/Makefile
r3877 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 36 if test $(HOST_OS) = opensuse ; then \ 37 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 38 cd ./apache && $(MAKE) install ; cd .. ; \ 39 cd ./awstats && $(MAKE) install ; cd .. ; \ 40 cd ./bind && $(MAKE) install ; cd .. ; \ 41 cd ./courier && $(MAKE) install ; cd .. ; \ 42 cd ./cron.d && $(MAKE) install ; cd .. ; \ 43 cd ./fcgi && $(MAKE) install ; cd .. ; \ 44 cd ./init.d && $(MAKE) install ; cd .. ; \ 45 cd ./logrotate && $(MAKE) install ; cd .. ; \ 46 cd ./postfix && $(MAKE) install ; cd .. ; \ 47 cd ./proftpd && $(MAKE) install ; cd .. ; \ 48 fi 41 ifneq($(HOST_OS),opensuse) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(LOCAL_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(LOCAL_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 if test -f $(LOCAL_FOLDER)/init.d/ispcp_daemon.default ; then \ 118 cp -p $(LOCAL_FOLDER)/init.d/ispcp_daemon.default $(ROOT_CONF)/default/ispcp_daemon ; \ 119 fi 120 121 if test -f $(LOCAL_FOLDER)/init.d/ispcp_network.default ; then \ 122 cp -p $(LOCAL_FOLDER)/init.d/ispcp_network.default $(ROOT_CONF)/default/ispcp_network ; \ 123 fi 124 125 # Prepare logrotate configuration files 126 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 127 128 cp $(LOCAL_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 129 130 # Prepare postfix configuration files 131 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 132 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 133 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 134 135 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 136 cp $(LOCAL_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 137 cp $(LOCAL_FOLDER)/postfix/smtpd.conf $(SYSTEM_CONF)/postfix/smtpd.conf 138 139 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 140 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 141 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 142 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 143 144 # Prepare proftpd configuration files 145 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 146 147 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 148 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 149 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 150 151 if test ! -d $(ROOT_CONF)/proftpd 152 then 153 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 154 fi 155 156 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 157 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 158 159 if test -e /etc/proftpd.conf 160 then 161 mv /etc/proftpd.conf /etc/proftpd.conf.bak 162 fi 163 164 cp $(LOCAL_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 49 165 50 166 uninstall: 51 52 if test $(HOST_OS) = opensuse ; then \ 53 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 54 cd ./apache && $(MAKE) uninstall ; cd .. ; \ 55 cd ./awstats && $(MAKE) uninstall ; cd .. ; \ 56 cd ./bind && $(MAKE) uninstall ; cd .. ; \ 57 cd ./courier && $(MAKE) uninstall ; cd .. ; \ 58 cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 59 cd ./fcgi && $(MAKE) uninstall ; cd .. ; \ 60 cd ./init.d && $(MAKE) uninstall ; cd .. ; \ 61 cd ./logrotate && $(MAKE) uninstall ; cd .. ; \ 62 cd ./postfix && $(MAKE) uninstall ; cd .. ; \ 63 cd ./proftpd && $(MAKE) uninstall ; cd .. ; \ 64 fi 167 ifneq($(HOST_OS),opensuse) 168 $(error Makefile is invalid for OS $(HOST_OS)) 169 endif 170 171 # Remove apache configuration files 172 rm -rf $(SYSTEM_CONF)/apache 173 174 # Remove awstats configuration files 175 rm -rf $(SYSTEM_CONF)/awstats 176 177 # Remove bind configuration files 178 rm -rf $(SYSTEM_CONF)/bind 179 180 # Remove courier configuration files 181 rm -rf $(SYSTEM_CONF)/courier 182 183 # Remove cron.d configuration files 184 rm -rf $(SYSTEM_CONF)/cron.d 185 186 # Remove fcgi configuration files 187 rm -rf $(SYSTEM_CONF)/fcgi 188 189 # Remove init.d configuration files 190 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 191 rm -f $(ROOT_CONF)/init.d/ispcp_network 192 193 # Remove logrotate configuration files 194 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 195 196 # Remove postfix configuration files 197 rm -rf $(SYSTEM_CONF)/postfix 198 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 199 200 # Remove proftpd configuration files 201 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/redhat/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 32 38 export 33 39 34 40 install: 35 36 if test $(HOST_OS) = redhat ; then \ 37 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 38 cd ./apache && $(MAKE) install ; cd .. ; \ 39 cd ./awstats && $(MAKE) install ; cd .. ; \ 40 cd ./bind && $(MAKE) install ; cd .. ; \ 41 cd ./cron.d && $(MAKE) install ; cd .. ; \ 42 cd ./fcgi && $(MAKE) install ; cd .. ; \ 43 cd ./init.d && $(MAKE) install ; cd .. ; \ 44 cd ./postfix && $(MAKE) install ; cd .. ; \ 45 cd ./courier && $(MAKE) install ; cd .. ; \ 46 cd ./proftpd && $(MAKE) install ; cd .. ; \ 47 cd ./logrotate && $(MAKE) install ; cd .. ; \ 48 fi 41 ifneq($(HOST_OS),redhat) 42 $(error Makefile is invalid for OS $(HOST_OS)) 43 endif 44 45 # prepare ispcp.conf file 46 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 47 48 # Prepare apache configuration files 49 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 50 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 51 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 54 55 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 56 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 57 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 58 59 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 60 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 61 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 62 63 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 64 65 cp $(LOCAL_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 66 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 67 68 # Prepare awstats configuration files 69 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 70 71 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 72 73 # Prepare bind configuration files 74 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 75 76 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 77 78 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 79 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 80 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 81 82 # Prepare courier configuration files 83 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 84 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 85 86 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 87 88 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 89 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 90 91 # Prepare cron.d configurations files 92 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 93 94 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 95 96 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 97 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 98 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 99 100 # Prepare fcgi configuration files 101 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 102 103 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 104 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 105 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 106 107 # Prepare init.d configuration files 108 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 109 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 110 111 cp $(LOCAL_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 112 cp $(LOCAL_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 113 114 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 115 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 116 117 if test -f $(LOCAL_FOLDER)/init.d/ispcp_daemon.default ; then \ 118 cp -p $(LOCAL_FOLDER)/init.d/ispcp_daemon.default $(ROOT_CONF)/default/ispcp_daemon ; \ 119 fi 120 121 if test -f $(LOCAL_FOLDER)/init.d/ispcp_network.default ; then \ 122 cp -p $(LOCAL_FOLDER)/init.d/ispcp_network.default $(ROOT_CONF)/default/ispcp_network ; \ 123 fi 124 125 # Prepare logrotate configuration files 126 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 127 128 cp $(LOCAL_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 129 130 # Prepare postfix configuration files 131 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 132 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 133 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 134 135 cp $(REMOTE_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 136 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 137 138 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 139 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 140 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 141 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 142 143 # Prepare proftpd configuration files 144 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 145 146 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 147 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 148 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 149 150 if test ! -d $(ROOT_CONF)/proftpd 151 then 152 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 153 fi 154 155 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 156 cp $(LOCAL_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 157 158 if test -e /etc/proftpd.conf 159 then 160 mv /etc/proftpd.conf /etc/proftpd.conf.bak 161 fi 162 163 cp $(REMOTE_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 49 164 50 165 uninstall: 51 52 if test $(HOST_OS) = redhat ; then \ 53 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 54 cd ./apache && $(MAKE) uninstall ; cd .. ; \ 55 cd ./awstats && $(MAKE) uninstall ; cd .. ; \ 56 cd ./bind && $(MAKE) uninstall ; cd .. ; \ 57 cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 58 cd ./fcgi && $(MAKE) uninstall ; cd .. ; \ 59 cd ./init.d && $(MAKE) uninstall ; cd .. ; \ 60 cd ./postfix && $(MAKE) uninstall ; cd .. ; \ 61 cd ./courier && $(MAKE) uninstall ; cd .. ; \ 62 cd ./proftpd && $(MAKE) uninstall ; cd .. ; \ 63 cd ./logrotate && $(MAKE) uninstall ; cd .. ; \ 64 fi 166 ifneq($(HOST_OS),redhat) 167 $(error Makefile is invalid for OS $(HOST_OS)) 168 endif 169 170 # Remove apache configuration files 171 rm -rf $(SYSTEM_CONF)/apache 172 173 # Remove awstats configuration files 174 rm -rf $(SYSTEM_CONF)/awstats 175 176 # Remove bind configuration files 177 rm -rf $(SYSTEM_CONF)/bind 178 179 # Remove courier configuration files 180 rm -rf $(SYSTEM_CONF)/courier 181 182 # Remove cron.d configuration files 183 rm -rf $(SYSTEM_CONF)/cron.d 184 185 # Remove fcgi configuration files 186 rm -rf $(SYSTEM_CONF)/fcgi 187 188 # Remove init.d configuration files 189 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 190 rm -f $(ROOT_CONF)/init.d/ispcp_network 191 192 # Remove logrotate configuration files 193 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 194 195 # Remove postfix configuration files 196 rm -rf $(SYSTEM_CONF)/postfix 197 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 198 199 # Remove proftpd configuration files 200 rm -rf $(SYSTEM_CONF)/proftpd -
branches/domain-disable/configs/ubuntu/Makefile
r3801 r3881 2 2 3 3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 4 # Copyright (C) 2001-2006 by moleSoftware GmbH - http://www.molesoftware.com5 4 # Copyright (C) 2006-2011 by ispCP | http://ispcp.net 6 5 # … … 17 16 # under the License. 18 17 # 19 # The Original Code is "VHCS - Virtual Hosting Control System". 20 # 21 # The Initial Developer of the Original Code is moleSoftware GmbH. 22 # Portions created by Initial Developer are Copyright (C) 2001-2006 23 # by moleSoftware GmbH. All Rights Reserved. 18 # The Original Code is "The Original Code is "ispCP - ISP Control Panel". 19 # 20 # The Initial Developer of the Original Code is the ispCP Team. 24 21 # Portions created by the ispCP Team are Copyright (C) 2006-2011 by 25 22 # isp Control Panel. All Rights Reserved. … … 30 27 # 31 28 29 # Global folders 30 LOCAL_FOLDER=. 31 REMOTE_FOLDER=../common 32 33 # Configuration specific folders 34 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 35 ROOT_COURIER_CONF=$(ROOT_CONF)/courier 36 ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix 37 38 RELEASE:=`lsb_release -c | awk '{print $$2}' | tr -d "\n"` 39 32 40 export 33 41 34 42 install: 35 36 if test $(HOST_OS) = ubuntu ; then \ 37 cp ./ispcp.conf $(SYSTEM_CONF) ; \ 38 (cd ./apache && $(MAKE) install &); \ 39 (cd ./awstats && $(MAKE) install &); \ 40 (cd ./bind && $(MAKE) install &); \ 41 (cd ./cron.d && $(MAKE) install &); \ 42 (cd ./fcgi && $(MAKE) install &); \ 43 (cd ./init.d && $(MAKE) install &); \ 44 (cd ./postfix && $(MAKE) install &); \ 45 (cd ./courier && $(MAKE) install &); \ 46 (cd ./proftpd && $(MAKE) install &); \ 47 (cd ./logrotate && $(MAKE) install); \ 48 fi 43 ifneq($(HOST_OS),ubuntu) 44 $(error Makefile is invalid for OS $(HOST_OS)) 45 endif 46 47 # prepare ispcp.conf file 48 cp $(LOCAL_FOLDER)/ispcp.conf $(SYSTEM_CONF) 49 50 # Prepare apache configuration files 51 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 52 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 53 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 54 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 55 $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 56 57 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache 58 cp $(REMOTE_FOLDER)/apache/00_master.conf $(SYSTEM_CONF)/apache 59 cp $(REMOTE_FOLDER)/apache/01_awstats.conf $(SYSTEM_CONF)/apache 60 61 cp -R $(REMOTE_FOLDER)/apache/backup $(SYSTEM_CONF)/apache 62 cp -R $(REMOTE_FOLDER)/apache/parts $(SYSTEM_CONF)/apache 63 cp -R $(REMOTE_FOLDER)/apache/working $(SYSTEM_CONF)/apache 64 65 cp $(REMOTE_FOLDER)/apache/httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 66 67 cp $(LOCAL_FOLDER)/apache/fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/fastcgi_ispcp.conf 68 cp $(LOCAL_FOLDER)/apache/fcgid_ispcp.conf $(SYSTEM_CONF)/apache/fcgid_ispcp.conf 69 70 # Prepare awstats configuration files 71 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats 72 73 cp $(REMOTE_FOLDER)/awstats/awstats.ispcp_tpl.conf $(SYSTEM_CONF)/awstats 74 75 # Prepare bind configuration files 76 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/bind 77 78 cp $(REMOTE_FOLDER)/bind/named.conf $(SYSTEM_CONF)/bind 79 80 cp -R $(REMOTE_FOLDER)/bind/backup $(SYSTEM_CONF)/bind 81 cp -R $(REMOTE_FOLDER)/bind/parts $(SYSTEM_CONF)/bind 82 cp -R $(REMOTE_FOLDER)/bind/working $(SYSTEM_CONF)/bind 83 84 # Prepare courier configuration files 85 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier 86 $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF) 87 88 cp $(REMOTE_FOLDER)/courier/userdb $(SYSTEM_CONF)/courier 89 90 cp -R $(REMOTE_FOLDER)/courier/backup $(SYSTEM_CONF)/courier 91 cp -R $(REMOTE_FOLDER)/courier/working $(SYSTEM_CONF)/courier 92 93 # Prepare cron.d configurations files 94 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 95 96 cp $(REMOTE_FOLDER)/cron.d/ispcp $(SYSTEM_CONF)/cron.d 97 98 cp -R $(REMOTE_FOLDER)/cron.d/backup $(SYSTEM_CONF)/cron.d 99 cp -R $(REMOTE_FOLDER)/cron.d/parts $(SYSTEM_CONF)/cron.d 100 cp -R $(REMOTE_FOLDER)/cron.d/working $(SYSTEM_CONF)/cron.d 101 102 # Prepare fcgi configuration files 103 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/fcgi 104 105 cp -R $(REMOTE_FOLDER)/fcgi/backup $(SYSTEM_CONF)/fcgi 106 cp -R $(REMOTE_FOLDER)/fcgi/parts $(SYSTEM_CONF)/fcgi 107 cp -R $(REMOTE_FOLDER)/fcgi/working $(SYSTEM_CONF)/fcgi 108 109 # Prepare init.d configuration files 110 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 111 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 112 113 cp $(REMOTE_FOLDER)/init.d/ispcp_daemon $(ROOT_CONF)/init.d 114 cp $(REMOTE_FOLDER)/init.d/ispcp_network $(ROOT_CONF)/init.d 115 116 chown root:root $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 117 chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 118 119 if test -f $(REMOTE_FOLDER)/init.d/ispcp_daemon.default ; then \ 120 cp -p $(REMOTE_FOLDER)/init.d/ispcp_daemon.default $(ROOT_CONF)/default/ispcp_daemon ; \ 121 fi 122 123 if test -f $(REMOTE_FOLDER)/init.d/ispcp_network.default ; then \ 124 cp -p $(REMOTE_FOLDER)/init.d/ispcp_network.default $(ROOT_CONF)/default/ispcp_network ; \ 125 fi 126 127 # Prepare logrotate configuration files 128 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/logrotate.d 129 130 cp $(LOCALE_FOLDER)/logrotate/ispcp $(ROOT_CONF)/logrotate.d 131 132 # Prepare postfix configuration files 133 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/postfix 134 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF) 135 $(SYSTEM_MAKE_DIRS) $(ROOT_POSTFIX_CONF)/ispcp 136 137 cp $(LOCAL_FOLDER)/postfix/main.cf $(SYSTEM_CONF)/postfix/main.cf 138 cp $(REMOTE_FOLDER)/postfix/master.cf $(SYSTEM_CONF)/postfix/master.cf 139 140 cp -R $(REMOTE_FOLDER)/postfix/backup $(SYSTEM_CONF)/postfix 141 cp -R $(REMOTE_FOLDER)/postfix/parts $(SYSTEM_CONF)/postfix 142 cp -R $(REMOTE_FOLDER)/postfix/working $(SYSTEM_CONF)/postfix 143 cp -R $(REMOTE_FOLDER)/postfix/ispcp $(SYSTEM_CONF)/postfix 144 145 # Prepare proftpd configuration files 146 $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 147 148 cp -R $(REMOTE_FOLDER)/proftpd/backup $(SYSTEM_CONF)/proftpd 149 cp -R $(REMOTE_FOLDER)/proftpd/parts $(SYSTEM_CONF)/proftpd 150 cp -R $(REMOTE_FOLDER)/proftpd/working $(SYSTEM_CONF)/proftpd 151 152 if test ! -d $(ROOT_CONF)/proftpd 153 then 154 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd 155 fi 156 157 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd/ispcp 158 cp $(REMOTE_FOLDER)/proftpd/root_domain.conf $(ROOT_CONF)/proftpd/ispcp 159 160 if test -e /etc/proftpd.conf 161 then 162 mv /etc/proftpd.conf /etc/proftpd.conf.bak 163 fi 164 165 cp $(REMOTE_FOLDER)/proftpd/proftpd.conf $(SYSTEM_CONF)/proftpd/proftpd.conf 49 166 50 167 uninstall: 51 52 if test $(HOST_OS) = ubuntu ; then \ 53 rm -rf $(SYSTEM_CONF)/ispcp.conf ; \ 54 (cd ./apache && $(MAKE) uninstall &); \ 55 (cd ./awstats && $(MAKE) uninstall &); \ 56 (cd ./bind && $(MAKE) uninstall &); \ 57 (cd ./cron.d && $(MAKE) uninstall &); \ 58 (cd ./init.d && $(MAKE) uninstall &); \ 59 (cd ./postfix && $(MAKE) uninstall &); \ 60 (cd ./courier && $(MAKE) uninstall &); \ 61 (cd ./proftpd && $(MAKE) uninstall &); \ 62 (cd ./logrotate && $(MAKE) uninstall &); \ 63 fi 168 ifneq($(HOST_OS),ubuntu) 169 $(error Makefile is invalid for OS $(HOST_OS)) 170 endif 171 172 # Remove apache configuration files 173 rm -rf $(SYSTEM_CONF)/apache 174 175 # Remove awstats configuration files 176 rm -rf $(SYSTEM_CONF)/awstats 177 178 # Remove bind configuration files 179 rm -rf $(SYSTEM_CONF)/bind 180 181 # Remove courier configuration files 182 rm -rf $(SYSTEM_CONF)/courier 183 184 # Remove cron.d configuration files 185 rm -rf $(SYSTEM_CONF)/cron.d 186 187 # Remove fcgi configuration files 188 rm -rf $(SYSTEM_CONF)/fcgi 189 190 # Remove init.d configuration files 191 rm -f $(ROOT_CONF)/init.d/ispcp_daemon 192 rm -f $(ROOT_CONF)/init.d/ispcp_network 193 194 # Remove logrotate configuration files 195 rm -rf $(ROOT_CONF)/logrotate.d/ispcp 196 197 # Remove postfix configuration files 198 rm -rf $(SYSTEM_CONF)/postfix 199 rm -rf $(ROOT_POSTFIX_CONF)/ispcp 200 201 # Remove proftpd configuration files 202 rm -rf $(SYSTEM_CONF)/proftpd
Note: See TracChangeset
for help on using the changeset viewer.
