| 1 |
Index: docs/FreeBSD/INSTALL |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- docs/FreeBSD/INSTALL (revision 1093) |
|---|
| 4 |
+++ docs/FreeBSD/INSTALL (working copy) |
|---|
| 5 |
@@ -16,11 +16,11 @@ |
|---|
| 6 |
================================================================================ |
|---|
| 7 |
1) Version Info |
|---|
| 8 |
--------------- |
|---|
| 9 |
-ispCP ω Version: 1.0.0 RC4 |
|---|
| 10 |
-INSTALL Script: 2.0 |
|---|
| 11 |
-Maintainer: |
|---|
| 12 |
-Homepage: http://www.isp-contol.net |
|---|
| 13 |
-Linux Distros: FreeBSD |
|---|
| 14 |
+ispCP ω Versio : 1.0.0 RC4 |
|---|
| 15 |
+INSTALL Script : 2.0 |
|---|
| 16 |
+Maintainer : |
|---|
| 17 |
+Homepage : http://www.isp-contol.net |
|---|
| 18 |
+Distros : FreeBSD |
|---|
| 19 |
|
|---|
| 20 |
================================================================================ |
|---|
| 21 |
2) Requirements |
|---|
| 22 |
@@ -32,10 +32,9 @@ |
|---|
| 23 |
100 MB disk space (only for install of ispCP ω) |
|---|
| 24 |
Debian (or even any other *NIX-Distribution) |
|---|
| 25 |
|
|---|
| 26 |
-All FreeBSD required packages are listed in |
|---|
| 27 |
-./docs/FreeBSD/freebsd-packages |
|---|
| 28 |
+All FreeBSD required packages are listed in docs/FreeBSD/freebsd-packages |
|---|
| 29 |
|
|---|
| 30 |
-The configuration is costumised for use with apache 2.2.x version using suexec |
|---|
| 31 |
+The configuration is customised for use with apache 2.2.x version using suexec |
|---|
| 32 |
module enable. |
|---|
| 33 |
================================================================================ |
|---|
| 34 |
3) Introduction |
|---|
| 35 |
@@ -63,7 +62,7 @@ |
|---|
| 36 |
# cd ./ispcp-omega-1.0.0 |
|---|
| 37 |
|
|---|
| 38 |
3. Install the required modules |
|---|
| 39 |
- see: ./docs/FreeBSD/freebsd-packages |
|---|
| 40 |
+ see: docs/FreeBSD/freebsd-packages |
|---|
| 41 |
|
|---|
| 42 |
4. (optional) Check the ispcp.conf and adapt it to your requirements. |
|---|
| 43 |
An overview over the variables you can find in the FAQ on |
|---|
| 44 |
Index: docs/FreeBSD/freebsd-packages |
|---|
| 45 |
=================================================================== |
|---|
| 46 |
--- docs/FreeBSD/freebsd-packages (revision 1093) |
|---|
| 47 |
+++ docs/FreeBSD/freebsd-packages (working copy) |
|---|
| 48 |
@@ -1,80 +1,72 @@ |
|---|
| 49 |
-apr |
|---|
| 50 |
-apr-util |
|---|
| 51 |
-bash |
|---|
| 52 |
-bzip2 |
|---|
| 53 |
-c-client |
|---|
| 54 |
-courier-imap |
|---|
| 55 |
-courier-pop3 |
|---|
| 56 |
-courier-utils |
|---|
| 57 |
-curl |
|---|
| 58 |
-cyrus-sasl-2.1.21p3 |
|---|
| 59 |
-db-4.2.52p11 |
|---|
| 60 |
-expat |
|---|
| 61 |
-freetype |
|---|
| 62 |
-gdbm |
|---|
| 63 |
-gettext |
|---|
| 64 |
-gmp |
|---|
| 65 |
-jpeg-6bp3 |
|---|
| 66 |
-libghttp |
|---|
| 67 |
-libiconv |
|---|
| 68 |
-libltdl |
|---|
| 69 |
-libmcrypt |
|---|
| 70 |
-libxml |
|---|
| 71 |
-mhash |
|---|
| 72 |
-mtr-0.72-no_x11 |
|---|
| 73 |
-mysql-client |
|---|
| 74 |
-mysql-server |
|---|
| 75 |
-neon |
|---|
| 76 |
-p5-Compress-Zlib |
|---|
| 77 |
-p5-Crypt-Blowfish |
|---|
| 78 |
-p5-Crypt-CBC |
|---|
| 79 |
-p5-Crypt-DES |
|---|
| 80 |
-p5-Crypt-PasswdMD5 |
|---|
| 81 |
-p5-Crypt-SSLeay |
|---|
| 82 |
-p5-DBD-mysql |
|---|
| 83 |
-p5-DBI |
|---|
| 84 |
-p5-Digest-HMAC |
|---|
| 85 |
-p5-Digest-SHA1 |
|---|
| 86 |
-p5-HTML-Parser |
|---|
| 87 |
-p5-HTML-Tagset |
|---|
| 88 |
-p5-HTTP-GHTTP |
|---|
| 89 |
-p5-IO-stringy |
|---|
| 90 |
-p5-MIME-tools |
|---|
| 91 |
-p5-Mail-SpamAssassin-3.1.8 |
|---|
| 92 |
-p5-Mail-Tools |
|---|
| 93 |
-p5-Net-DNS |
|---|
| 94 |
-p5-Net-Daemon |
|---|
| 95 |
-p5-Net-IP |
|---|
| 96 |
-p5-PlRPC |
|---|
| 97 |
-p5-URI |
|---|
| 98 |
-p5-libwww |
|---|
| 99 |
-p5-Term-ReadPassword |
|---|
| 100 |
-pcre |
|---|
| 101 |
-pdflib |
|---|
| 102 |
-php4-bz2 |
|---|
| 103 |
-php4-core |
|---|
| 104 |
-php4-curl |
|---|
| 105 |
-php4-dbx |
|---|
| 106 |
-php4-domxml |
|---|
| 107 |
-php4-extensions |
|---|
| 108 |
-php4-filepro |
|---|
| 109 |
-php4-gd-4.4.1p5-no_x11 |
|---|
| 110 |
-php4-gmp |
|---|
| 111 |
-php4-imap |
|---|
| 112 |
-php4-mcrypt |
|---|
| 113 |
-php4-mhash |
|---|
| 114 |
-php4-mysql |
|---|
| 115 |
-php4-pdf |
|---|
| 116 |
-php4-pear |
|---|
| 117 |
-php4-shmop |
|---|
| 118 |
-php4-xmlrpc |
|---|
| 119 |
-php4-xslt |
|---|
| 120 |
-png |
|---|
| 121 |
-postfix-2.3.7-sasl2 |
|---|
| 122 |
-recode |
|---|
| 123 |
-sablotron |
|---|
| 124 |
-subversion |
|---|
| 125 |
-t1lib |
|---|
| 126 |
-tiff |
|---|
| 127 |
-unzip |
|---|
| 128 |
-wget |
|---|
| 129 |
+=-=-=-= BASIC REQUIRED PACKAGE/PORTS =-=-=-= last update 20080331 |
|---|
| 130 |
+ |
|---|
| 131 |
+Apache 2.2.x Web System |
|---|
| 132 |
+ x suexec ( Recomended ) |
|---|
| 133 |
+ + mod_cband for bandwitdh management |
|---|
| 134 |
+ o mod_php WARNING: security risk for hosting |
|---|
| 135 |
+ + mod_fastcgi ( Recomended ) |
|---|
| 136 |
+Proftpd FTP System |
|---|
| 137 |
+ x IPV6 IP v6 support ( but disable by ispcp ) |
|---|
| 138 |
+ x mysql Database module |
|---|
| 139 |
+ x quota quota module |
|---|
| 140 |
+ x ratio ratio module |
|---|
| 141 |
+ x ctrls control module |
|---|
| 142 |
+ - delay Not Available in ports |
|---|
| 143 |
+ - ctrls_admin Not Available in ports |
|---|
| 144 |
+Postfix Email System |
|---|
| 145 |
+Bash Shell compatibility with Main Version |
|---|
| 146 |
+courier-imap IMAP system |
|---|
| 147 |
+ x userdb For use with userdb ( ispcp default ) |
|---|
| 148 |
+ x mysql For use with mysql |
|---|
| 149 |
+courier-pop3 IMAP POP3 system |
|---|
| 150 |
+mysql-client Database system |
|---|
| 151 |
+mysql-server Database system |
|---|
| 152 |
+Perl =-=-=-= PERL MODULE =-=-=-= |
|---|
| 153 |
+ + Compress-Zlib |
|---|
| 154 |
+ + Crypt-Blowfish |
|---|
| 155 |
+ + Crypt-CBC |
|---|
| 156 |
+ + Crypt-DES |
|---|
| 157 |
+ + Crypt-PasswdMD5 |
|---|
| 158 |
+ + Crypt-SSLeay |
|---|
| 159 |
+ + DBD-mysql |
|---|
| 160 |
+ + DBI |
|---|
| 161 |
+ + Digest-HMAC |
|---|
| 162 |
+ + Digest-SHA1 |
|---|
| 163 |
+ + HTML-Parser |
|---|
| 164 |
+ + HTML-Tagset |
|---|
| 165 |
+ + HTTP-GHTTP |
|---|
| 166 |
+ + IO-stringy |
|---|
| 167 |
+ + MIME-tools |
|---|
| 168 |
+ + Mail-Tools |
|---|
| 169 |
+ + Net-DNS |
|---|
| 170 |
+ + Net-Daemon |
|---|
| 171 |
+ + Net-IP |
|---|
| 172 |
+ + PlRPC |
|---|
| 173 |
+ + URI |
|---|
| 174 |
+ + libwww |
|---|
| 175 |
+ + Term-ReadPassword |
|---|
| 176 |
+PHP =-=-=-= PHP PACKAGE =-=-=-= |
|---|
| 177 |
+ x apache Build Apache module |
|---|
| 178 |
+ x CLI |
|---|
| 179 |
+ x CGI |
|---|
| 180 |
+ x suhosin |
|---|
| 181 |
+ x fastcgi |
|---|
| 182 |
+PHP-Extensions |
|---|
| 183 |
+ x pcre |
|---|
| 184 |
+ x bz2 |
|---|
| 185 |
+ x core |
|---|
| 186 |
+ x curl |
|---|
| 187 |
+ x dbx |
|---|
| 188 |
+ x domxml |
|---|
| 189 |
+ x filepro |
|---|
| 190 |
+ x gd |
|---|
| 191 |
+ x imap |
|---|
| 192 |
+ x mcrypt |
|---|
| 193 |
+ x mhash |
|---|
| 194 |
+ x mysql |
|---|
| 195 |
+ x pear |
|---|
| 196 |
+ x shmop |
|---|
| 197 |
+ x xmlrpc |
|---|
| 198 |
+ x xslt |
|---|
| 199 |
+ x session |
|---|
| 200 |
+awstats |
|---|
| 201 |
Index: configs/freebsd/logrotate/BSDmakefile |
|---|
| 202 |
=================================================================== |
|---|
| 203 |
--- configs/freebsd/logrotate/BSDmakefile (revision 1093) |
|---|
| 204 |
+++ configs/freebsd/logrotate/BSDmakefile (working copy) |
|---|
| 205 |
@@ -1,4 +1,4 @@ |
|---|
| 206 |
-.include <../../../../Makefile.fbsd> |
|---|
| 207 |
+.include <../../../Makefile.fbsd> |
|---|
| 208 |
|
|---|
| 209 |
install: |
|---|
| 210 |
|
|---|
| 211 |
Index: configs/freebsd/apache/fastcgi.conf |
|---|
| 212 |
=================================================================== |
|---|
| 213 |
--- configs/freebsd/apache/fastcgi.conf (revision 1093) |
|---|
| 214 |
+++ configs/freebsd/apache/fastcgi.conf (working copy) |
|---|
| 215 |
@@ -19,7 +19,7 @@ |
|---|
| 216 |
|
|---|
| 217 |
<IfModule mod_fastcgi.c> |
|---|
| 218 |
FastCgiWrapper On |
|---|
| 219 |
- FastCgiIpcDir /var/lib/apache2/fastcgi |
|---|
| 220 |
+ FastCgiIpcDir /var/run/fastcgi |
|---|
| 221 |
|
|---|
| 222 |
FastCgiConfig -minProcesses 1 \ |
|---|
| 223 |
-maxProcesses 400 \ |
|---|
| 224 |
@@ -46,4 +46,4 @@ |
|---|
| 225 |
|
|---|
| 226 |
Action php-fastcgi /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter |
|---|
| 227 |
AddType application/x-httpd-php .php .php{PHP_VERSION} |
|---|
| 228 |
-</IfModule> |
|---|
| 229 |
\ No newline at end of file |
|---|
| 230 |
+</IfModule> |
|---|
| 231 |
Index: configs/freebsd/apache/BSDmakefile |
|---|
| 232 |
=================================================================== |
|---|
| 233 |
--- configs/freebsd/apache/BSDmakefile (revision 1093) |
|---|
| 234 |
+++ configs/freebsd/apache/BSDmakefile (working copy) |
|---|
| 235 |
@@ -1,4 +1,4 @@ |
|---|
| 236 |
-.include <../../../../Makefile.fbsd> |
|---|
| 237 |
+.include <../../../Makefile.fbsd> |
|---|
| 238 |
|
|---|
| 239 |
APACHE_EXT_CONF=$(INST_PREF)/usr/local/etc/apache22/Includes |
|---|
| 240 |
APACHE_MOD_CONF=$(INST_PREF)/usr/local/etc/apache22/extra |
|---|
| 241 |
@@ -12,7 +12,7 @@ |
|---|
| 242 |
$(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp |
|---|
| 243 |
|
|---|
| 244 |
cp ./httpd.conf ./working/ispcp.conf |
|---|
| 245 |
- cp ./fastcgi.conf ./working/fastcgi_ispcp.conf |
|---|
| 246 |
+ #cp ./fastcgi.conf ./working/fastcgi_ispcp.conf |
|---|
| 247 |
cp ./00_master.conf $(SYSTEM_CONF)/apache22 |
|---|
| 248 |
cp ./01_awstats.conf $(SYSTEM_CONF)/apache22 |
|---|
| 249 |
cp ./httpd.conf $(SYSTEM_CONF)/apache22 |
|---|
| 250 |
Index: configs/freebsd/ispcp.conf |
|---|
| 251 |
=================================================================== |
|---|
| 252 |
--- configs/freebsd/ispcp.conf (revision 1093) |
|---|
| 253 |
+++ configs/freebsd/ispcp.conf (working copy) |
|---|
| 254 |
@@ -8,7 +8,7 @@ |
|---|
| 255 |
# Misc config variables |
|---|
| 256 |
# |
|---|
| 257 |
|
|---|
| 258 |
-BuildDate = 20080331 |
|---|
| 259 |
+BuildDate = 20080401 |
|---|
| 260 |
|
|---|
| 261 |
Version = 1.0.0 RC5 OMEGA |
|---|
| 262 |
|
|---|
| 263 |
@@ -74,7 +74,7 @@ |
|---|
| 264 |
|
|---|
| 265 |
CMD_RM = /bin/rm |
|---|
| 266 |
|
|---|
| 267 |
-CMD_SHELL = /bin/bash |
|---|
| 268 |
+CMD_SHELL = /usr/local/bin/bash |
|---|
| 269 |
|
|---|
| 270 |
CMD_TAR = /bin/tar |
|---|
| 271 |
|
|---|
| 272 |
@@ -105,7 +105,7 @@ |
|---|
| 273 |
|
|---|
| 274 |
DATABASE_DIR = /var/db/mysql |
|---|
| 275 |
|
|---|
| 276 |
-CMD_MYSQLDUMP = /usr/bin/mysqldump |
|---|
| 277 |
+CMD_MYSQLDUMP = /usr/local/bin/mysqldump |
|---|
| 278 |
|
|---|
| 279 |
DATABASE_UTF8 = yes |
|---|
| 280 |
|
|---|
| 281 |
@@ -117,7 +117,7 @@ |
|---|
| 282 |
|
|---|
| 283 |
LOG_DIR = /var/log/ispcp |
|---|
| 284 |
|
|---|
| 285 |
-PHP_STARTER_DIR = /usr/local/www/fcgi |
|---|
| 286 |
+PHP_STARTER_DIR = /usr/local/www/data/fcgi |
|---|
| 287 |
|
|---|
| 288 |
ROOT_DIR = /usr/local/www/ispcp |
|---|
| 289 |
|
|---|
| 290 |
@@ -129,7 +129,7 @@ |
|---|
| 291 |
|
|---|
| 292 |
APACHE_WWW_DIR = /usr/local/www/data |
|---|
| 293 |
|
|---|
| 294 |
-SCOREBOARDS_DIR = /var/www/scoreboards |
|---|
| 295 |
+SCOREBOARDS_DIR = /usr/local/www/scoreboards |
|---|
| 296 |
|
|---|
| 297 |
# Select Zipping Algorithm for Backups |
|---|
| 298 |
# Supported: gzip, bzip2 |
|---|
| 299 |
Index: configs/freebsd/cron.d/BSDmakefile |
|---|
| 300 |
=================================================================== |
|---|
| 301 |
--- configs/freebsd/cron.d/BSDmakefile (revision 1093) |
|---|
| 302 |
+++ configs/freebsd/cron.d/BSDmakefile (working copy) |
|---|
| 303 |
@@ -27,7 +27,7 @@ |
|---|
| 304 |
# |
|---|
| 305 |
# http://isp-control.net |
|---|
| 306 |
# |
|---|
| 307 |
-.include <../../../../Makefile.fbsd> |
|---|
| 308 |
+.include <../../../Makefile.fbsd> |
|---|
| 309 |
|
|---|
| 310 |
install: |
|---|
| 311 |
|
|---|
| 312 |
Index: configs/freebsd/database/BSDmakefile |
|---|
| 313 |
=================================================================== |
|---|
| 314 |
--- configs/freebsd/database/BSDmakefile (revision 1093) |
|---|
| 315 |
+++ configs/freebsd/database/BSDmakefile (working copy) |
|---|
| 316 |
@@ -1,4 +1,4 @@ |
|---|
| 317 |
-.include <../../../../Makefile.fbsd> |
|---|
| 318 |
+.include <../../../Makefile.fbsd> |
|---|
| 319 |
|
|---|
| 320 |
install: |
|---|
| 321 |
|
|---|
| 322 |
Index: configs/freebsd/init.d/ispcp_daemon |
|---|
| 323 |
=================================================================== |
|---|
| 324 |
--- configs/freebsd/init.d/ispcp_daemon (revision 1093) |
|---|
| 325 |
+++ configs/freebsd/init.d/ispcp_daemon (working copy) |
|---|
| 326 |
@@ -39,7 +39,7 @@ |
|---|
| 327 |
# Note: do not modify any of these vars here, use /etc/default/$NAME instead |
|---|
| 328 |
|
|---|
| 329 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin |
|---|
| 330 |
-DAEMON=/var/www/ispcp/daemon/ispcp_daemon |
|---|
| 331 |
+DAEMON=/usr/local/www/ispcp/daemon/ispcp_daemon |
|---|
| 332 |
PID=/var/run/ispcp-daemon.pid |
|---|
| 333 |
NAME=ispcp_daemon |
|---|
| 334 |
DESC=ispcp_daemon |
|---|
| 335 |
Index: configs/freebsd/init.d/BSDmakefile |
|---|
| 336 |
=================================================================== |
|---|
| 337 |
--- configs/freebsd/init.d/BSDmakefile (revision 1093) |
|---|
| 338 |
+++ configs/freebsd/init.d/BSDmakefile (working copy) |
|---|
| 339 |
@@ -1,16 +1,16 @@ |
|---|
| 340 |
-.include <../../../../Makefile.fbsd> |
|---|
| 341 |
+.include <../../../Makefile.fbsd> |
|---|
| 342 |
|
|---|
| 343 |
install: |
|---|
| 344 |
|
|---|
| 345 |
$(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/rc.d |
|---|
| 346 |
|
|---|
| 347 |
- cp ispcp_daemon $(ROOT_CONF)/rc.d/ispcp_daemon.sh |
|---|
| 348 |
- cp ispcp_network $(ROOT_CONF)/rc.d/ispcp_network.sh |
|---|
| 349 |
+ cp ispcp_daemon $(ROOT_CONF)/rc.d |
|---|
| 350 |
+ cp ispcp_network $(ROOT_CONF)/rc.d |
|---|
| 351 |
|
|---|
| 352 |
- chown root:wheel $(ROOT_CONF)/rc.d/ispcp_network.sh $(ROOT_CONF)/rc.d/ispcp_daemon.sh |
|---|
| 353 |
- chmod 0755 $(ROOT_CONF)/rc.d/ispcp_network.sh $(ROOT_CONF)/rc.d/ispcp_daemon.sh |
|---|
| 354 |
+ chown root:wheel $(ROOT_CONF)/rc.d/ispcp_network $(ROOT_CONF)/rc.d/ispcp_daemon |
|---|
| 355 |
+ chmod 0755 $(ROOT_CONF)/rc.d/ispcp_network $(ROOT_CONF)/rc.d/ispcp_daemon |
|---|
| 356 |
|
|---|
| 357 |
uninstall: |
|---|
| 358 |
|
|---|
| 359 |
- rm -f $(ROOT_CONF)/rc.d/ispcp_daemon.sh |
|---|
| 360 |
- rm -f $(ROOT_CONF)/rc.d/ispcp_network.sh |
|---|
| 361 |
+ rm -f $(ROOT_CONF)/rc.d/ispcp_daemon |
|---|
| 362 |
+ rm -f $(ROOT_CONF)/rc.d/ispcp_network |
|---|
| 363 |
Index: configs/freebsd/init.d/ispcp_network |
|---|
| 364 |
=================================================================== |
|---|
| 365 |
--- configs/freebsd/init.d/ispcp_network (revision 1093) |
|---|
| 366 |
+++ configs/freebsd/init.d/ispcp_network (working copy) |
|---|
| 367 |
@@ -1,4 +1,4 @@ |
|---|
| 368 |
-#!/bin/bash |
|---|
| 369 |
+#!/usr/local/bin/bash |
|---|
| 370 |
|
|---|
| 371 |
echo "currently not ported to BSD" |
|---|
| 372 |
exit 0 |
|---|
| 373 |
Index: configs/freebsd/awstats/BSDmakefile |
|---|
| 374 |
=================================================================== |
|---|
| 375 |
--- configs/freebsd/awstats/BSDmakefile (revision 1093) |
|---|
| 376 |
+++ configs/freebsd/awstats/BSDmakefile (working copy) |
|---|
| 377 |
@@ -1,4 +1,4 @@ |
|---|
| 378 |
-.include <../../../../Makefile.fbsd> |
|---|
| 379 |
+.include <../../../Makefile.fbsd> |
|---|
| 380 |
|
|---|
| 381 |
install: |
|---|
| 382 |
|
|---|
| 383 |
Index: configs/freebsd/BSDmakefile |
|---|
| 384 |
=================================================================== |
|---|
| 385 |
--- configs/freebsd/BSDmakefile (revision 1093) |
|---|
| 386 |
+++ configs/freebsd/BSDmakefile (working copy) |
|---|
| 387 |
@@ -1,4 +1,4 @@ |
|---|
| 388 |
-.include <../../../Makefile.fbsd> |
|---|
| 389 |
+.include <../../Makefile.fbsd> |
|---|
| 390 |
|
|---|
| 391 |
install: |
|---|
| 392 |
cp ./ispcp.conf $(SYSTEM_CONF) ; cd .. |
|---|
| 393 |
Index: configs/freebsd/courier/BSDmakefile |
|---|
| 394 |
=================================================================== |
|---|
| 395 |
--- configs/freebsd/courier/BSDmakefile (revision 1093) |
|---|
| 396 |
+++ configs/freebsd/courier/BSDmakefile (working copy) |
|---|
| 397 |
@@ -1,4 +1,4 @@ |
|---|
| 398 |
-.include <../../../../Makefile.fbsd> |
|---|
| 399 |
+.include <../../../Makefile.fbsd> |
|---|
| 400 |
|
|---|
| 401 |
ROOT_COURIER_CONF=$(ROOT_CONF)/courier-imap |
|---|
| 402 |
|
|---|
| 403 |
Index: configs/freebsd/fcgi/BSDmakefile |
|---|
| 404 |
=================================================================== |
|---|
| 405 |
--- configs/freebsd/fcgi/BSDmakefile (revision 1093) |
|---|
| 406 |
+++ configs/freebsd/fcgi/BSDmakefile (working copy) |
|---|
| 407 |
@@ -1,4 +1,4 @@ |
|---|
| 408 |
-.include <../../../../Makefile.fbsd> |
|---|
| 409 |
+.include <../../../Makefile.fbsd> |
|---|
| 410 |
|
|---|
| 411 |
install: |
|---|
| 412 |
|
|---|
| 413 |
Index: configs/freebsd/bind/BSDmakefile |
|---|
| 414 |
=================================================================== |
|---|
| 415 |
--- configs/freebsd/bind/BSDmakefile (revision 1093) |
|---|
| 416 |
+++ configs/freebsd/bind/BSDmakefile (working copy) |
|---|
| 417 |
@@ -1,4 +1,4 @@ |
|---|
| 418 |
-.include <../../../../Makefile.fbsd> |
|---|
| 419 |
+.include <../../../Makefile.fbsd> |
|---|
| 420 |
|
|---|
| 421 |
install: |
|---|
| 422 |
|
|---|
| 423 |
Index: configs/freebsd/postfix/BSDmakefile |
|---|
| 424 |
=================================================================== |
|---|
| 425 |
--- configs/freebsd/postfix/BSDmakefile (revision 1093) |
|---|
| 426 |
+++ configs/freebsd/postfix/BSDmakefile (working copy) |
|---|
| 427 |
@@ -1,4 +1,4 @@ |
|---|
| 428 |
-.include <../../../../Makefile.fbsd> |
|---|
| 429 |
+.include <../../../Makefile.fbsd> |
|---|
| 430 |
|
|---|
| 431 |
ROOT_POSTFIX_CONF=$(ROOT_CONF)/postfix |
|---|
| 432 |
|
|---|
| 433 |
Index: configs/freebsd/proftpd/BSDmakefile |
|---|
| 434 |
=================================================================== |
|---|
| 435 |
--- configs/freebsd/proftpd/BSDmakefile (revision 1093) |
|---|
| 436 |
+++ configs/freebsd/proftpd/BSDmakefile (working copy) |
|---|
| 437 |
@@ -1,4 +1,4 @@ |
|---|
| 438 |
-.include <../../../../Makefile.fbsd> |
|---|
| 439 |
+.include <../../../Makefile.fbsd> |
|---|
| 440 |
|
|---|
| 441 |
install: |
|---|
| 442 |
|
|---|
| 443 |
Index: Makefile.fbsd |
|---|
| 444 |
=================================================================== |
|---|
| 445 |
--- Makefile.fbsd (revision 1093) |
|---|
| 446 |
+++ Makefile.fbsd (working copy) |
|---|
| 447 |
@@ -38,9 +38,9 @@ |
|---|
| 448 |
SYSTEM_CONF=$(INST_PREF)/usr/local/etc/ispcp |
|---|
| 449 |
SYSTEM_LOG=$(INST_PREF)/var/log/ispcp |
|---|
| 450 |
SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/usr/local/www/logs/backup |
|---|
| 451 |
-SYSTEM_VIRTUAL=$(INST_PREF)/usr/local/www/data |
|---|
| 452 |
+SYSTEM_VIRTUAL=$(INST_PREF)/usr/local/www/data/virtual |
|---|
| 453 |
SYSTEM_AWSTATS=$(INST_PREF)/usr/local/www/awstats |
|---|
| 454 |
-SYSTEM_FCGI=$(INST_PREF)/usr/local/www/fcgi |
|---|
| 455 |
+SYSTEM_FCGI=$(INST_PREF)/usr/local/www/data/fcgi |
|---|
| 456 |
SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual |
|---|
| 457 |
SYSTEM_MAKE_DIRS=/bin/mkdir -p |
|---|
| 458 |
|
|---|
| 459 |
Index: engine/setup/reset-setup |
|---|
| 460 |
=================================================================== |
|---|
| 461 |
--- engine/setup/reset-setup (revision 1093) |
|---|
| 462 |
+++ engine/setup/reset-setup (working copy) |
|---|
| 463 |
@@ -38,7 +38,7 @@ |
|---|
| 464 |
use warnings; |
|---|
| 465 |
|
|---|
| 466 |
## Variables |
|---|
| 467 |
-my ($rs, $sql, $rdata) = (undef, undef, undef); |
|---|
| 468 |
+my ($rs, $sql, $rdata, $delete_cmd ) = (undef, undef, undef,undef ); |
|---|
| 469 |
my $user_prefix = $main::cfg{'APACHE_SUEXEC_USER_PREF'}; |
|---|
| 470 |
my $master_user = $main::cfg{'APACHE_SUEXEC_MIN_UID'}; |
|---|
| 471 |
my $user_delete = $main::cfg{'CMD_USERDEL'}; |
|---|
| 472 |
@@ -47,18 +47,23 @@ |
|---|
| 473 |
## MAIN |
|---|
| 474 |
print STDOUT "Re-setting ISPCP Setup!\n"; |
|---|
| 475 |
print STDOUT "========================\n"; |
|---|
| 476 |
-my $delete_cmd = "$user_delete -r $user_prefix$master_user"; |
|---|
| 477 |
-$rs = sys_command($delete_cmd); |
|---|
| 478 |
|
|---|
| 479 |
-my $delete_fcgi = "$main::cfg{'CMD_RM'} -r $main::cfg{'PHP_STARTER_DIR'}/master"; |
|---|
| 480 |
-$rs = sys_command($delete_fcgi); |
|---|
| 481 |
+if ($main::cfg{'ROOT_GROUP'} eq "wheel") { |
|---|
| 482 |
+ $delete_cmd = "rmuser -y $user_prefix$master_user"; |
|---|
| 483 |
+ $rs = sys_command($delete_cmd); |
|---|
| 484 |
+} else { |
|---|
| 485 |
+ $delete_cmd = "$user_delete -r $user_prefix$master_user"; |
|---|
| 486 |
+ $rs = sys_command($delete_cmd); |
|---|
| 487 |
+ my $delete_fcgi = "$main::cfg{'CMD_RM'} -r $main::cfg{'PHP_STARTER_DIR'}/master"; |
|---|
| 488 |
+ $rs = sys_command($delete_fcgi); |
|---|
| 489 |
+} |
|---|
| 490 |
|
|---|
| 491 |
$sql = "DROP DATABASE IF EXISTS $database"; |
|---|
| 492 |
($rs, $rdata) = doSQL($sql); |
|---|
| 493 |
+ |
|---|
| 494 |
if ($rs != 0) { |
|---|
| 495 |
print STDOUT "An error occured!\n"; |
|---|
| 496 |
print STDOUT "$rdata\n"; |
|---|
| 497 |
-} |
|---|
| 498 |
-else { |
|---|
| 499 |
+} else { |
|---|
| 500 |
print STDOUT "done!\n"; |
|---|
| 501 |
} |
|---|