Package: backuppc
Version: 2.1.2-5
Severity: wishlist
Tags: patch

I have some customizations in /etc/backuppc/config.pl which should be
common for all hosts I backup.

I would like to keep maintainer provided config.pl intact (do avoid
manual merges on upgrade) and have
/etc/backuppc/localconfig.pl which would override some settings present
in config.pl.

I could "do" that file from all host configs but that is error prone.

Please consider next patch

======================================================================     
--- BackupPC/Lib.pm     2006-06-07 17:07:14.000000000 -0400
+++ BackupPC.modified/Lib.pm    2006-06-29 11:08:48.769770896 -0400
@@ -339,6 +339,8 @@
 
     $bpc->{Conf} = ();
     push(@configs, "/etc/backuppc/config.pl");
+    push(@configs, "/etc/backuppc/localconfig.pl")
+            if ( -f "/etc/backuppc/localconfig.pl" );
     push(@configs, "/etc/backuppc/$host.pl")
             if ( $host ne "config" && -f "/etc/backuppc/$host.pl" );
     push(@configs, "$bpc->{TopDir}/pc/$host/config.pl")
======================================================================     
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10-5-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages backuppc depends on:
ii  adduser                       3.63       Add and remove users and groups
ii  apache                        1.3.33-4   versatile, high-performance HTTP s
ii  apache-ssl                    1.3.33-4   versatile, high-performance HTTP s
ii  debconf [debconf-2.0]         1.4.48     Debian configuration management sy
ii  dpkg                          1.13.11    package maintenance system for Deb
ii  exim4                         4.50-8     metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.50-8     lightweight exim MTA (v4) daemon
ii  libarchive-zip-perl           1.14-1     Module for manipulation of ZIP arc
ii  libcompress-zlib-perl         1.34-1     Perl module for creation and manip
ii  perl [libdigest-md5-perl]     5.8.8-4    Larry Wall's Practical Extraction 
ii  perl-suid                     5.8.8-4    Runs setuid Perl scripts
ii  samba-common                  3.0.11-1   Samba common files used by both th
ii  smbclient                     3.0.11-1   a LanManager-like simple client fo
ii  tar                           1.14-2     GNU tar
ii  wwwconfig-common              0.0.43     Debian web auto configuration

-- debconf information:
* backuppc/configuration-note:
  backuppc/add-lines:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to