~ubuntu-branches/ubuntu/lucid/debhelper/lucid

« back to all changes in this revision

Viewing changes to dh_gconf

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-04-24 19:22:46 UTC
  • Revision ID: james.westby@ubuntu.com-20090424192246-ytzyl3azu8bosewc
Tags: 7.2.8ubuntu1
* Merge with Debian unstable. Remaining Ubuntu changes:
  - dh_installudev: Default priority is now 40 by default, the target
    directory is /lib/udev/rules.d, and rules use '-' as separator instead of
    '_'.  Remove files from /etc/udev/rules.d unless they are user modified;
    if modified and of default priority, take care to rename.
    This should eventually go to Debian as well, see Debian #491117.
  - dh_auto_install: add "--install-layout=deb" to setup.py install calls
    (new Python 2.6 policy).
* dh_installxfonts: Drop versioned dependency for xfonts-utils. This
  was only necessary for dapper backports, but since dapper desktop goes
  EOL in two months, and we haven't done dapper backports in ages, this is
  just an unnecessary delta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
directory, with "package" replaced by the package name. Some postinst and
28
28
postrm fragments will be generated to launch update-gconf-defaults.
29
29
 
 
30
If a file named debian/package.gconf-mandatory exists, then it is
 
31
installed into usr/share/gconf/mandatory/10_package in the package build
 
32
directory, with "package" replaced by the package name, and similar
 
33
postinst and postrm fragments will be generated.
 
34
 
30
35
The gconf-schemas and update-gconf-defaults scripts are provided by the
31
36
gconf2 package. An appropriate dependency will be generated in
32
37
${misc:Depends}.
57
62
        my $tmp=tmpdir($package);
58
63
        
59
64
        my $gconf_dep = 0;
 
65
        my $mandatory = pkgfile($package, "gconf-mandatory");
 
66
        if ($mandatory ne '') {
 
67
                doit("mkdir","-p","$tmp/usr/share/gconf/mandatory");
 
68
                doit("install","-p","-m644",$mandatory,"$tmp/usr/share/gconf/mandatory/${priority}_$package");
 
69
                autoscript($package,"postinst","postinst-gconf-defaults","s%#OPT#%--mandatory%");
 
70
                autoscript($package,"postrm","postrm-gconf-defaults","s%#OPT#%--mandatory%");
 
71
                addsubstvar($package, "misc:Depends", "gconf2 (>= 2.24.0-5)");
 
72
                $gconf_dep = 1;
 
73
        }
60
74
        my $defaults = pkgfile($package,"gconf-defaults");
61
75
        if ($defaults ne '') {
62
76
                doit("mkdir","-p","$tmp/usr/share/gconf/defaults");
63
77
                doit("install","-p","-m644",$defaults,"$tmp/usr/share/gconf/defaults/${priority}_$package");
64
 
                autoscript($package,"postinst","postinst-gconf-defaults");
65
 
                autoscript($package,"postrm","postrm-gconf-defaults");
66
 
                addsubstvar($package, "misc:Depends", "gconf2 (>= 2.12.1-1)");
 
78
                autoscript($package,"postinst","postinst-gconf-defaults","s%#OPT#%%");
 
79
                autoscript($package,"postrm","postrm-gconf-defaults","s%#OPT#%%");
 
80
                addsubstvar($package, "misc:Depends", "gconf2 (>= 2.12.1-1)") unless $gconf_dep;
67
81
                $gconf_dep = 1;
68
82
        }
69
83