Changeset 433

Show
Ignore:
Timestamp:
03/21/07 08:51:57 (2 years ago)
Author:
rats
Message:

* added: RedHat? config files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configs/dists/fedora/Makefile

    r401 r433  
    2828                cd ./bind && $(MAKE) uninstall ; cd .. ; \ 
    2929                cd ./crontab && $(MAKE) uninstall ; cd .. ; \ 
    30                 cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 
     30                cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 
    3131                cd ./database && $(MAKE) uninstall ; cd .. ;  \ 
    3232                cd ./init.d && $(MAKE) uninstall ; cd .. ; \ 
  • trunk/configs/dists/redhat/Makefile

    r401 r433  
    44install: 
    55 
    6         if [[ $(HOST_OS) == debian ]] ; then \ 
     6        if [[ $(HOST_OS) == redhat ]] ; then \ 
    77                cp ./vhcs2.conf $(SYSTEM_CONF) ; \ 
    88                cd ./apache && $(MAKE) install ; cd .. ; \ 
     
    1818                cd ./proftpd && $(MAKE) install ; cd .. ; \ 
    1919                cd ./logrotate && $(MAKE) install ; cd .. ; \ 
    20         elif [[ $(HOST_OS) == fedora ]] ; then \ 
    21                 cd ./dists/fedora && $(MAKE) install ; \ 
    22         elif [[ $(HOST_OS) == gentoo ]] ; then \ 
    23                 cd ./dists/gentoo && $(MAKE) install ; \ 
    24         elif [[ $(HOST_OS) == redhat ]] ; then \ 
    25                 cd ./dists/redhat && $(MAKE) install ; \ 
    26         elif [[ $(HOST_OS) == sles9 ]] ; then \ 
    27                 cd ./dists/sles9 && $(MAKE) install ; \ 
    28         elif [[ $(HOST_OS) == suse100 ]] ; then \ 
    29                 cd ./dists/suse100 && $(MAKE) install ; \ 
    30         elif [[ $(HOST_OS) == suse93 ]] ; then \ 
    31                 cd ./dists/suse93 && $(MAKE) install ; \ 
    32         elif [[ $(HOST_OS) == ubuntu ]] ; then \ 
    33                 cd ./dists/ubuntu && $(MAKE) install ; \ 
    3420        fi 
    3521 
    3622uninstall: 
    3723 
    38         if [[ $(HOST_OS) == debian ]] ; then \ 
     24        if [[ $(HOST_OS) == redhat ]] ; then \ 
    3925                rm -rf $(SYSTEM_CONF)/vhcs2.conf ;  \ 
    4026                cd ./apache && $(MAKE) uninstall ; cd .. ; \ 
     
    4935                cd ./proftpd && $(MAKE) uninstall ; cd .. ; \ 
    5036                cd ./logrotate && $(MAKE) uninstall ; cd .. ; \ 
    51         elif [[ $(HOST_OS) == fedora ]] ; then \ 
    52                 cd ./dists/fedora && $(MAKE) uninstall ; \ 
    53         elif [[ $(HOST_OS) == gentoo ]] ; then \ 
    54                 cd ./dists/gentoo && $(MAKE) uninstall ; \ 
    55         elif [[ $(HOST_OS) == redhat ]] ; then \ 
    56                 cd ./dists/redhat && $(MAKE) uninstall ; \ 
    57         elif [[ $(HOST_OS) == sles9 ]] ; then \ 
    58                 cd ./dists/sles9 && $(MAKE) uninstall ; \ 
    59         elif [[ $(HOST_OS) == suse93 ]] ; then \ 
    60                 cd ./dists/suse93 && $(MAKE) uninstall ; \ 
    61         elif [[ $(HOST_OS) == suse100 ]] ; then \ 
    62                 cd ./dists/suse100 && $(MAKE) uninstall ; \ 
    63         elif [[ $(HOST_OS) == ubuntu ]] ; then \ 
    64                 cd ./dists/ubuntu && $(MAKE) uninstall ; \ 
    6537        fi 
    6638 
  • trunk/configs/dists/redhat/apache/Makefile

    r423 r433  
    1 ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 
    2  
    3 RELEASE=`cat /etc/debian_version | awk '{print $1}'` 
     1ROOT_APACHE_CONF=$(ROOT_CONF)/apache2/ 
    42 
    53export 
     
    1412        cp ./httpd.conf ./working/vhcs2.conf 
    1513 
    16         # Debian 4.0 "Etch"? 
    17         if [[ $(RELEASE) == '4.0' ]] ; then \ 
    18                 cp ./fastcgi2.conf ./working/fastcgi.conf ; \ 
    19         else \ 
    20                 cp ./fastcgi.conf ./working/fastcgi.conf ; \ 
    21         fi \ 
    22  
     14        cp ./fastcgi.conf ./working/fastcgi.conf 
    2315        cp ./httpd.conf $(SYSTEM_CONF)/apache 
    2416        cp ./master.conf $(SYSTEM_CONF)/apache 
  • trunk/configs/dists/redhat/proftpd/Makefile

    r409 r433  
    1 RELEASE=`cat /etc/debian_version | awk '{print $1}'` 
    2  
    31export 
    42 
     
    75        $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/proftpd 
    86        cp -R ./backup $(SYSTEM_CONF)/proftpd 
    9  
    10         # Debian 4.0 "Etch"? 
    11         if [[ $(RELEASE) == '4.0' ]] ; then \ 
    12                 if [[ -e /etc/proftpd.conf ]] ; then \ 
    13                         mv /etc/proftpd.conf /etc/proftpd.conf.bak ; \ 
    14                 fi ; \ 
    15                 $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/proftpd ; \ 
    16                 cp ./proftpd3.conf $(SYSTEM_CONF)/proftpd/proftpd.conf ; \ 
    17                 cp ./proftpd3.conf $(ROOT_CONF)/proftpd/proftpd.conf ; \ 
    18         else \ 
    19                 cp ./proftpd.conf $(ROOT_CONF) ; \ 
    20                 cp ./proftpd.conf $(SYSTEM_CONF)/proftpd ; \ 
    21         fi \ 
    22  
     7        cp ./proftpd.conf $(ROOT_CONF) ; \ 
     8        cp ./proftpd.conf $(SYSTEM_CONF)/proftpd ; \ 
    239 
    2410uninstall: 
  • trunk/configs/dists/redhat/vhcs2.conf

    r432 r433  
    8484# 
    8585 
    86 BIND_CONF_FILE = /etc/bind/named.conf 
    87  
    88 BIND_DB_DIR = /var/cache/bin
     86BIND_CONF_FILE = /etc/named.conf 
     87 
     88BIND_DB_DIR = /var/name
    8989 
    9090SECONDARY_DNS = 
     
    108108# 
    109109 
    110 APACHE_CMD = /usr/sbin/apache2 
    111  
    112 APACHE_NAME = apache2 
     110APACHE_CMD = /usr/sbin/httpd 
     111 
     112APACHE_NAME = apache 
    113113 
    114114APACHE_RESTART_TRY = 3 
     
    116116APACHE_WWW_DIR = /var/www/virtual 
    117117 
    118 APACHE_LOG_DIR = /var/log/apache2 
    119  
    120 APACHE_USERS_LOG_DIR = /var/log/apache2/users 
    121  
    122 APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup 
    123  
    124 APACHE_SITES_DIR = /etc/apache2/sites-available 
    125  
    126 APACHE_CONF_DIR = /etc/apache2 
     118APACHE_LOG_DIR = /var/log/httpd 
     119 
     120APACHE_USERS_LOG_DIR = /var/log/httpd/users 
     121 
     122APACHE_BACKUP_LOG_DIR = /var/log/httpd/backup 
     123 
     124APACHE_SITES_DIR = /etc/httpd/conf.d/sites-available 
     125 
     126APACHE_CONF_DIR = /etc/httpd/conf.d 
    127127 
    128128GUI_ROOT_DIR = /var/www/vhcs2/gui 
     
    144144# 
    145145 
    146 APACHE_USER = www-data 
    147  
    148 APACHE_GROUP = www-data 
     146APACHE_USER = apache 
     147 
     148APACHE_GROUP = apache 
    149149 
    150150# 
     
    160160MTA_VIRTUAL_MAIL_DIR = /var/mail/virtual 
    161161 
    162 MTA_LOCAL_ALIAS_HASH = /etc/aliases 
     162MTA_LOCAL_ALIAS_HASH = /etc/postfix/aliases 
    163163 
    164164MTA_VIRTUAL_CONF_DIR = /etc/postfix/vhcs2 
     
    186186MTA_SASLDB_LOCAL_DOMAIN = vhcs.net 
    187187 
    188 MTA_SASLDB_FILE = /var/spool/postfix/etc/sasldb2 
     188MTA_SASLDB_FILE = /etc/sasldb2 
    189189 
    190190ETC_SASLDB_FILE = /etc/sasldb2 
     
    206206# 
    207207 
    208 COURIER_CONF_DIR = /etc/courier 
    209  
    210 AUTHLIB_CONF_DIR = /etc/courier 
     208COURIER_CONF_DIR = /etc/authlib 
     209 
     210AUTHLIB_CONF_DIR = /etc/authlib 
    211211 
    212212CMD_MAKEUSERDB = /usr/sbin/makeuserdb 
     
    240240# 
    241241 
    242 CMD_NAMED = /etc/init.d/bind9 
     242CMD_NAMED = /etc/init.d/named 
    243243 
    244244CMD_MTA = /etc/init.d/postfix 
    245245 
    246 CMD_HTTPD = /usr/sbin/apache2ctl 
    247  
    248 CMD_AUTHD = /etc/init.d/courier-authdaemon 
     246CMD_HTTPD = /usr/sbin/apachectl 
     247 
     248CMD_AUTHD = /etc/init.d/courier-authlib 
    249249 
    250250CMD_IMAP = /etc/init.d/courier-imap