Changeset 1098

Show
Ignore:
Timestamp:
04/06/05 23:14:50 (4 years ago)
Author:
root
Message:

- debian compliance meilleure
- po-debconf
- correction GLOBAL
- norme COMMUNE avec alternc-procmail pour la gestion de plugins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config.php

    r1088 r1098  
    1212require_once($root."class/m_err.php"); 
    1313 
    14 global $dbalready; 
    1514global $er,$fe,$username,$db; 
    1615 
    17 if (!$dbalready) { 
     16require_once($root."class/db_mysql.php"); 
    1817 
    19   require_once($root."class/db_mysql.php"); 
     18if (!class_exists("DB_system")) { 
     19 
    2020  // Classe héritée de la classe db de la phplib. 
    2121  class DB_system extends DB_Sql { 
     
    3030  } 
    3131  $db= new DB_system(); 
    32   $dbalready=1; 
    3332} 
    3433 
  • trunk/debian/changelog

    r1088 r1098  
     1alternc-changepass (0.9.4) testing; urgency=low 
     2 
     3  * Debian compliance, conflicts with alternc-procmail, global vars, po-debconf 
     4 
     5 -- Benjamin Sonntag <benjamin@alternc.org>  Mon, 6 Apr 2005 00:00:00 +0200 
     6 
    17alternc-changepass (0.9.3-1) unstable; urgency=low 
    28 
  • trunk/debian/control

    r1088 r1098  
    33Priority: optional 
    44Maintainer: Benjamin Sonntag <benjamin@alternc.org> 
    5 Standards-Version: 3.5.6 
     5Build-Depends: debhelper (>= 4.1.16) 
     6Standards-Version: 3.6.1 
    67 
    78Package: alternc-changepass 
  • trunk/debian/postinst

    r1096 r1098  
    99configure) 
    1010 
     11    # On ajoute la ligne GLOBAL dans local.php si le fichier ne la contient pas ... (pour les alternc < 0.9.3) 
     12    FL=/var/alternc/bureau/class/local.php 
     13    echo -n "Configuring local.php " 
     14    if grep -qs "^global" $FL 
     15        then 
     16        echo "no patch needed, global already present" 
     17    else 
     18        echo "applying patch" 
     19        # the .php is here for security reasons ! as local.php contains the mysql password ! 
     20        rm -f $FL.alternc_procmail.php 
     21        sed -e "s/^\$L_MX/\\ 
     22global \$L_MYSQL_HOST,\$L_MYSQL_LOGIN,\$L_MYSQL_PWD,\$L_MYSQL_DATABASE,\$L_SHOWVERSION,\$L_VERSION,\$L_FQDN,\$L_HOSTING,\$L_NS2,\$L_NS1,\$L_MX; \\ 
     23\$L_MX/" <$FL >$FL.alternc_procmail.php 
     24        mv -f $FL.alternc_procmail.php $FL 
     25    fi 
    1126    db_get alternc-changepass/warning_squirrelmail_plugin || true 
    1227 
  • trunk/debian/rules

    r1094 r1098  
    3030        dh_testroot 
    3131        rm -f build-stamp 
     32        debconf-updatepo 
    3233 
    3334# Add here commands to clean up after the build process. 
     
    5051 
    5152# Copy the desk files 
    52         cp change.php config.php README setup.php debian/alternc-changepass/usr/share/squirrelmail/plugins/alternc_changepass/ 
     53        cp change.php config.php setup.php debian/alternc-changepass/usr/share/squirrelmail/plugins/alternc_changepass/ 
    5354        cp -r locales/* debian/alternc-changepass/var/alternc/bureau/locales/  
    5455# Remove CVS entries. 
  • trunk/debian/templates

    r1095 r1098  
    11Template: alternc-changepass/warning_squirrelmail_plugin 
    22Type: note 
    3 Description: Installing a Squirrelmail / AlternC plugin. 
     3_Description: Installing a Squirrelmail / AlternC plugin. 
    44 You are installing the alternc-changepass package. This package is a 
    55 squirrelmail plugin. As such, it is disabled by default. Launch 
    66 /etc/squirrelmail/conf.pl to configure and enable this plugin. 
    7 Description-fr.ISO-8859-15: Installation d'un greffon Squirrelmail / AlternC. 
    8  Vous êtes en train d'installer le paquet alternc-changepass. Ce paquet 
    9  est un greffon à Squirrelmail. Par conséquent, il est désactivé par défaut. 
    10  Pour l'activer, lancez /etc/squirrelmail/conf.pl.