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.
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.
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
57
62
my $tmp=tmpdir($package);
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)");
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;