| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/dh-exec/ |
Upload File : |
#! /usr/bin/perl -wnp
##
## This script looks for SOURCE => DEST lines in its input, and copies
## SOURCE to a temporary directory under debian/tmp, with the desired
## DEST name. It will create directories appropriately.
##
## It is done this way, so that we leave the boring work to
## dh_install, and all of its options will continue to work. And we
## put this under debian/tmp, because that gets cleaned up by dh_prep.
BEGIN {
use File::Spec;
use File::Basename qw/basename/;
use File::Temp qw/tempdir/;
use File::Copy qw/cp move/;
use File::Path qw/make_path/;
make_path("debian/tmp");
our $tempdir = tempdir ("debian/tmp/dh-exec.XXXXXXXX");
our $append_destpath = TRUE;
if ($ENV{DH_EXEC_SOURCE} =~ /manpages$/) {
$append_destpath = FALSE;
}
our $noop = 1;
}
if (defined ($ENV{"DH_CONFIG_ACT_ON_PACKAGES"}) &&
defined ($ENV{"DH_EXEC_SOURCE"})) {
my @packages = split(/,/, $ENV{"DH_CONFIG_ACT_ON_PACKAGES"});
my (undef, undef, $currpkg) = File::Spec->splitpath ($ENV{"DH_EXEC_SOURCE"});
$currpkg = basename ($currpkg, (".install", ".manpages"));
$noop = 0 if ($currpkg eq "install" || $currpkg eq "manpages");
foreach my $pkg (@packages) {
$noop = 0 if ($pkg eq $currpkg);
}
} else {
$noop = 0;
}
if (/([^\s]*)\s+=>\s+([^\s]*)/) {
my ($src, $dst) = ($1, $2);
my (undef, $srcpath, undef) = File::Spec->splitpath ($src);
my (undef, $dstpath, $dstfile) = File::Spec->splitpath ($dst);
my $debpath = File::Spec->catdir ($tempdir, $dstpath);
unless ($noop) {
make_path($debpath);
cp ($src, File::Spec->catfile ($debpath, $dstfile)) or
move (File::Spec->catfile ("debian/tmp", $src),
File::Spec->catfile ($debpath, $dstfile)) or
die "Failed to copy '$src': $!";
}
$_ = File::Spec->catfile ($debpath, $dstfile);
$_ .= " " . $dstpath if ($append_destpath eq TRUE);
$_ .= "\n";
}