[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: non-ftp way to upload packages



On Tue, Feb 01, 2005 at 04:12:16PM +0100, Bartosz Fenski aka fEnIo wrote:

 > Anyway, your mail also says that if someone send you config for
 > dupload then you are going to include it in some README.  Is this
 > README available somewhere?

 Something along the lines of the following in ~/.dupload.conf

package config;

$default_host = "d0";

$cfg{'defaults'} = {
        login => exists $ENV{DEBUSER} ? $ENV{DEBUSER} : $ENV{USER},
        method => "scpb",
        dinstall_runs => 1,
};

$cfg{master} = {
	fqdn => "master",
	incoming => "/home/Debian/ftp/private/project/Incoming/",
};

$cfg{d0} = {
        fqdn => "gluck",
        incoming => "~tfheen/DELAYED/0-day",
        dinstall_runs => 0,
};

foreach (1 .. 9)
{
    $cfg{"d$_"} = { %{$cfg{d0}} };
    $cfg{"d$_"}{incoming} =~ s/0(?=-day)/$_/;
}

foreach my $t (keys %cfg)
{
    foreach my $d (keys %{$cfg{'defaults'}})
    {
        $cfg{$t}{$d} = $cfg{'defaults'}{$d} unless exists $cfg{$t}{$d};
    }
}

1;

 I made this up on the spot, you can keep it if it breaks.

 Marcelo



Reply to: