|
@ -101,11 +101,21 @@ sub deb_package { |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
} |
|
|
} |
|
|
if (!($commands->{"T"} || $commands->{"pre_depends"} || |
|
|
if ( |
|
|
$commands->{"depends"} || $commands->{"recommends"} || |
|
|
!($commands->{"T"} || |
|
|
$commands->{"suggests"} || $commands->{"provides"} || |
|
|
$commands->{"pre_depends"} || |
|
|
$commands->{"replaces"} || $commands->{"conflicts"} || |
|
|
$commands->{"depends"} || |
|
|
$commands->{"c"} || $commands->{"l"})) { |
|
|
$commands->{"recommends"} || |
|
|
|
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"c"} || |
|
|
|
|
|
$commands->{"l"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
print "\n"; |
|
|
print "\n"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -190,12 +200,22 @@ sub deb_package { |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
} |
|
|
} |
|
|
if (!($commands->{"T"} || $commands->{"pre_depends"} || |
|
|
if ( |
|
|
$commands->{"depends"} || $commands->{"recommends"} || |
|
|
!($commands->{"T"} || |
|
|
$commands->{"suggests"} || $commands->{"provides"} || |
|
|
$commands->{"pre_depends"} || |
|
|
$commands->{"replaces"} || $commands->{"conflicts"} || |
|
|
$commands->{"depends"} || |
|
|
$commands->{"c"} || $commands->{"l"})) { |
|
|
$commands->{"recommends"} || |
|
|
print "\n"; |
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"c"} || |
|
|
|
|
|
$commands->{"l"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
print "\n"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
shlibso(\%commands); |
|
|
shlibso(\%commands); |
|
@ -269,12 +289,22 @@ sub deb_package { |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
} |
|
|
} |
|
|
if (!($commands->{"T"} || $commands->{"pre_depends"} || |
|
|
if ( |
|
|
$commands->{"depends"} || $commands->{"recommends"} || |
|
|
!($commands->{"T"} || |
|
|
$commands->{"suggests"} || $commands->{"provides"} || |
|
|
$commands->{"pre_depends"} || |
|
|
$commands->{"replaces"} || $commands->{"conflicts"} || |
|
|
$commands->{"depends"} || |
|
|
$commands->{"c"} || $commands->{"l"})) { |
|
|
$commands->{"recommends"} || |
|
|
print "\n"; |
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"c"} || |
|
|
|
|
|
$commands->{"l"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
print "\n"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
shlibso(\%commands); |
|
|
shlibso(\%commands); |
|
@ -352,12 +382,23 @@ sub deb_package { |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
$grep -E \"Description: \w*|[.]\$|^ [\w-]*\""; |
|
|
} |
|
|
} |
|
|
if (!($commands->{"T"} || $commands->{"pre_depends"} || |
|
|
if ( |
|
|
$commands->{"depends"} || $commands->{"recommends"} || |
|
|
!($commands->{"T"} || |
|
|
$commands->{"suggests"} || $commands->{"provides"} || |
|
|
$commands->{"pre_depends"} || |
|
|
$commands->{"replaces"} || $commands->{"conflicts"} || |
|
|
$commands->{"depends"} || |
|
|
$commands->{"c"} || $commands->{"l"})) { |
|
|
$commands->{"recommends"} || |
|
|
print "\n"; |
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"c"} || |
|
|
|
|
|
$commands->{"l"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
print "\n"; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
shlibso(\%commands); |
|
|
shlibso(\%commands); |
|
@ -566,16 +607,38 @@ sub printme { |
|
|
|
|
|
|
|
|
my ($commands) = @_; my %commands = %$commands; |
|
|
my ($commands) = @_; my %commands = %$commands; |
|
|
|
|
|
|
|
|
if ($commands->{"p"} && !($commands->{"i"} || $commands->{"l"} || |
|
|
if ( |
|
|
$commands->{"df"} || $commands->{"d"} || $commands->{"c"} || |
|
|
$commands->{"p"} && |
|
|
$commands->{"scripts"} || $commands->{"preinst"} || $commands->{"postinst"} || |
|
|
|
|
|
$commands->{"prerm"} || $commands->{"postrm"} || $commands->{"config"} || $commands->{"templates"} || $commands->{"T"} || |
|
|
!($commands->{"i"} || |
|
|
$commands->{"pre_depends"} || $commands->{"depends"} || |
|
|
$commands->{"l"} || |
|
|
$commands->{"recommends"} || $commands->{"suggests"} || |
|
|
$commands->{"df"} || |
|
|
$commands->{"provides"} || $commands->{"replaces"} || |
|
|
$commands->{"d"} || |
|
|
$commands->{"conflicts"} || $commands->{"requires"} || |
|
|
$commands->{"c"} || |
|
|
$commands->{"changelog"} || $commands->{"m"} || $commands->{"menu"} || |
|
|
$commands->{"scripts"} || |
|
|
$commands->{"copyright"})) { |
|
|
$commands->{"preinst"} || |
|
|
|
|
|
$commands->{"postinst"} || |
|
|
|
|
|
$commands->{"prerm"} || |
|
|
|
|
|
$commands->{"postrm"} || |
|
|
|
|
|
$commands->{"config"} || |
|
|
|
|
|
$commands->{"templates"} || |
|
|
|
|
|
$commands->{"T"} || |
|
|
|
|
|
$commands->{"pre_depends"} || |
|
|
|
|
|
$commands->{"depends"} || |
|
|
|
|
|
$commands->{"recommends"} || |
|
|
|
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"requires"} || |
|
|
|
|
|
$commands->{"changelog"} || |
|
|
|
|
|
$commands->{"m"} || |
|
|
|
|
|
$commands->{"menu"} || |
|
|
|
|
|
$commands->{"copyright"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
if ( $dpkg_deb) { |
|
|
if ( $dpkg_deb) { |
|
|
system "$dpkg_deb -f $argument Package > $tmp/temp.deb"; |
|
|
system "$dpkg_deb -f $argument Package > $tmp/temp.deb"; |
|
|
} |
|
|
} |
|
@ -601,19 +664,41 @@ sub printme { |
|
|
} |
|
|
} |
|
|
print "\n"; |
|
|
print "\n"; |
|
|
} |
|
|
} |
|
|
elsif ($commands->{"p"} && ($commands->{"l"} || $commands{"d"} || |
|
|
elsif ( |
|
|
$commands{"c"}) |
|
|
$commands->{"p"} && |
|
|
&& !($commands->{"i"} || $commands->{"df"} || |
|
|
|
|
|
$commands->{"scripts"} || $commands->{"preinst"} || $commands->{"postinst"} || |
|
|
($commands->{"l"} || |
|
|
$commands->{"prerm"} || $commands->{"postrm"} || $commands->{"config"} || $commands->{"templates"} || $commands->{"T"} || |
|
|
$commands{"d"} || |
|
|
$commands->{"pre_depends"} || $commands->{"depends"} || |
|
|
$commands{"c"}) && |
|
|
$commands->{"recommends"} || $commands->{"suggests"} || |
|
|
|
|
|
$commands->{"provides"} || $commands->{"replaces"} || |
|
|
!($commands->{"i"} || |
|
|
$commands->{"conflicts"} || $commands->{"requires"} || |
|
|
$commands->{"df"} || |
|
|
$commands->{"changelog"} || $commands->{"m"} || $commands->{"menu"} || |
|
|
$commands->{"scripts"} || |
|
|
$commands->{"copyright"})) { |
|
|
$commands->{"preinst"} || |
|
|
|
|
|
$commands->{"postinst"} || |
|
|
|
|
|
$commands->{"prerm"} || |
|
|
|
|
|
$commands->{"postrm"} || |
|
|
|
|
|
$commands->{"config"} || |
|
|
|
|
|
$commands->{"templates"} || |
|
|
|
|
|
$commands->{"T"} || |
|
|
|
|
|
$commands->{"pre_depends"} || |
|
|
|
|
|
$commands->{"depends"} || |
|
|
|
|
|
$commands->{"recommends"} || |
|
|
|
|
|
$commands->{"suggests"} || |
|
|
|
|
|
$commands->{"enhances"} || |
|
|
|
|
|
$commands->{"provides"} || |
|
|
|
|
|
$commands->{"replaces"} || |
|
|
|
|
|
$commands->{"conflicts"} || |
|
|
|
|
|
$commands->{"requires"} || |
|
|
|
|
|
$commands->{"changelog"} || |
|
|
|
|
|
$commands->{"m"} || |
|
|
|
|
|
$commands->{"menu"} || |
|
|
|
|
|
$commands->{"copyright"}) |
|
|
|
|
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
if ( $dpkg_deb) { |
|
|
if ( $dpkg_deb) { |
|
|
system "$dpkg_deb -f $argument Package > $tmp/temp.deb"; |
|
|
system "$dpkg_deb -f $argument Package > $tmp/temp.deb"; |
|
|
} |
|
|
} |
|
|
elsif ( $ar) { |
|
|
elsif ( $ar) { |
|
|
system "$ar -p $argument control.tar.gz | $tar Oxz |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar Oxz |\ |
|
@ -1456,6 +1541,21 @@ sub deps { |
|
|
} |
|
|
} |
|
|
print "\n"; |
|
|
print "\n"; |
|
|
} |
|
|
} |
|
|
|
|
|
if ($commands->{"enhances"}) { |
|
|
|
|
|
if (!defined $title{$1}) { |
|
|
|
|
|
print "$1\n"; |
|
|
|
|
|
} |
|
|
|
|
|
$title{$1}++; |
|
|
|
|
|
if ( $dpkg_deb) { |
|
|
|
|
|
print "Enhances: "; |
|
|
|
|
|
system "$dpkg_deb -f $argument Enhances"; |
|
|
|
|
|
} |
|
|
|
|
|
elsif ( $ar) { |
|
|
|
|
|
system "$ar -p $argument control.tar.gz |\ |
|
|
|
|
|
$tar xOz control | $grep \"Enhances: \w*\""; |
|
|
|
|
|
} |
|
|
|
|
|
print "\n"; |
|
|
|
|
|
} |
|
|
if ($commands->{"provides"}) { |
|
|
if ($commands->{"provides"}) { |
|
|
if (!defined $title{$1}) { |
|
|
if (!defined $title{$1}) { |
|
|
print "$1\n"; |
|
|
print "$1\n"; |
|
@ -1511,6 +1611,8 @@ sub deps { |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
system "$dpkg_deb -f $argument Suggests 2&> $tmp/temp.deb; \ |
|
|
system "$dpkg_deb -f $argument Suggests 2&> $tmp/temp.deb; \ |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
|
|
|
system "$dpkg_deb -f $argument Enhances 2&> $tmp/temp.deb; \ |
|
|
|
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
system "$dpkg_deb -f $argument Provides 2&> $tmp/temp.deb; \ |
|
|
system "$dpkg_deb -f $argument Provides 2&> $tmp/temp.deb; \ |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
$cat $tmp/temp.deb >> $tmp/fields.deb;"; |
|
|
system "$dpkg_deb -f $argument Replaces 2&> $tmp/temp.deb; \ |
|
|
system "$dpkg_deb -f $argument Replaces 2&> $tmp/temp.deb; \ |
|
@ -1527,6 +1629,8 @@ sub deps { |
|
|
$grep \"Recommends: \w*\" >> $tmp/fields.deb"; |
|
|
$grep \"Recommends: \w*\" >> $tmp/fields.deb"; |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep \"Suggests: \w*\" >> $tmp/fields.deb"; |
|
|
$grep \"Suggests: \w*\" >> $tmp/fields.deb"; |
|
|
|
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
|
|
|
$grep \"Enhances: \w*\" >> $tmp/fields.deb"; |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
$grep \"Provides: \w*\" >> $tmp/fields.deb"; |
|
|
$grep \"Provides: \w*\" >> $tmp/fields.deb"; |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|
system "$ar -p $argument control.tar.gz | $tar xOz control |\ |
|
|