????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.3 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/bin/ |
Upload File : |
#!/usr/bin/perl -w
=head1 NAME
dh_gconf - install GConf defaults files and register schemas
=cut
use strict;
use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
B<dh_gconf> [S<I<debhelper options>>] [B<--priority=>I<priority>]
=head1 DESCRIPTION
B<dh_gconf> is a debhelper program that is responsible for installing GConf
defaults files and registering GConf schemas.
An appropriate dependency on gconf2 will be generated in B<${misc:Depends}>.
=head1 FILES
=over 4
=item debian/I<package>.gconf-defaults
Installed into F<usr/share/gconf/defaults/10_package> in the package build
directory, with I<package> replaced by the package name.
=item debian/I<package>.gconf-mandatory
Installed into F<usr/share/gconf/mandatory/10_package> in the package build
directory, with I<package> replaced by the package name.
=back
=head1 OPTIONS
=over 4
=item B<--priority> I<priority>
Use I<priority> (which should be a 2-digit number) as the defaults
priority instead of B<10>. Higher values than ten can be used by
derived distributions (B<20>), CDD distributions (B<50>), or site-specific
packages (B<90>).
=back
=cut
init();
my $priority=10;
if (defined $dh{PRIORITY}) {
$priority=$dh{PRIORITY};
}
# PROMISE: DH NOOP WITHOUT gconf-mandatory gconf-defaults tmp(etc/gconf/schemas) tmp(usr/share/gconf/schemas)
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
my $gconf_dep = 0;
my $mandatory = pkgfile($package, "gconf-mandatory");
if ($mandatory ne '') {
doit("mkdir","-p","$tmp/usr/share/gconf/mandatory");
doit("install","-p","-m644",$mandatory,"$tmp/usr/share/gconf/mandatory/${priority}_$package");
addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)");
$gconf_dep = 1;
}
my $defaults = pkgfile($package,"gconf-defaults");
if ($defaults ne '') {
doit("mkdir","-p","$tmp/usr/share/gconf/defaults");
doit("install","-p","-m644",$defaults,"$tmp/usr/share/gconf/defaults/${priority}_$package");
addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)") unless $gconf_dep;
$gconf_dep = 1;
}
my $old_schemas_dir = "$tmp/etc/gconf/schemas";
my $new_schemas_dir = "$tmp/usr/share/gconf/schemas";
# Migrate schemas from /etc/gconf/schemas to /usr/share/gconf/schemas
if (-d $old_schemas_dir) {
doit("mkdir -p $new_schemas_dir") unless -d $new_schemas_dir;
doit("mv $old_schemas_dir/*.schemas $new_schemas_dir/");
doit("rmdir -p --ignore-fail-on-non-empty $old_schemas_dir");
}
if (-d "$new_schemas_dir") {
# Get a list of the schemas
my $schemas = `find $new_schemas_dir -type f -name \\*.schemas -printf '%P '`;
if ($schemas ne '') {
addsubstvar($package, "misc:Depends", "gconf2 (>= 2.28.1-2)") unless $gconf_dep;
}
}
}
=head1 SEE ALSO
L<debhelper(7)>
This program is a part of debhelper.
=head1 AUTHOR
Ross Burton <ross@burtonini.com>
Josselin Mouette <joss@debian.org>
=cut