diff -ruN debconf-1.4.51/Debconf/Client/ConfModule.pm debconf-1.4.51.new/Debconf/Client/ConfModule.pm --- debconf-1.4.51/Debconf/Client/ConfModule.pm 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/Debconf/Client/ConfModule.pm 2005-06-19 19:37:40.000000000 -0400 @@ -71,14 +71,14 @@ sub import { if (! $ENV{DEBIAN_HAS_FRONTEND}) { $ENV{PERL_DL_NONLAZY}=1; - exec "/usr/share/debconf/frontend", $0, @ARGV; + exec "@FINKPREFIX@/share/debconf/frontend", $0, @ARGV; } # Make the Exporter still work. Debconf::Client::ConfModule->export_to_level(1, @_); # A truely gross hack. This only is needed if - # /usr/share/debconf/confmodule is loaded, and then this + # @FINKPREFIX@/share/debconf/confmodule is loaded, and then this # perl module is used. In that case, this module needs to write # to fd #3, rather than stdout. See changelog 0.3.74. if (exists $ENV{DEBCONF_REDIR} && $ENV{DEBCONF_REDIR}) { @@ -137,7 +137,7 @@ =head1 SEE ALSO The debconf specification -(/usr/share/doc/debian-policy/debconf_specification.txt.gz). +(@FINKPREFIX@/share/doc/debian-policy/debconf_specification.txt.gz). =head1 AUTHOR diff -ruN debconf-1.4.51/Debconf/Config.pm debconf-1.4.51.new/Debconf/Config.pm --- debconf-1.4.51/Debconf/Config.pm 2005-05-13 16:59:21.000000000 -0400 +++ debconf-1.4.51.new/Debconf/Config.pm 2005-06-19 19:37:40.000000000 -0400 @@ -19,7 +19,7 @@ noninteractive_seen); our $config=fields::new('Debconf::Config'); -our @config_files=("/etc/debconf.conf", "/usr/share/debconf/debconf.conf"); +our @config_files=("/etc/debconf.conf", "@FINKPREFIX@/share/debconf/debconf.conf"); if (! $ENV{DEBCONF_SYSTEMRC}) { # I don't use $ENV{HOME} because it can be a bit untrustworthy if # set by programs like sudo, and that proved to be confusing diff -ruN debconf-1.4.51/Debconf/FrontEnd/Dialog.pm debconf-1.4.51.new/Debconf/FrontEnd/Dialog.pm --- debconf-1.4.51/Debconf/FrontEnd/Dialog.pm 2005-05-28 20:18:10.000000000 -0400 +++ debconf-1.4.51.new/Debconf/FrontEnd/Dialog.pm 2005-06-19 19:37:40.000000000 -0400 @@ -62,9 +62,9 @@ $this->capb('backup'); # Autodetect if whiptail or dialog is available and set magic numbers. - if (-x "/usr/bin/whiptail" && - (! defined $ENV{DEBCONF_FORCE_DIALOG} || ! -x "/usr/bin/dialog") && - (! defined $ENV{DEBCONF_FORCE_XDIALOG} || ! -x "/usr/bin/Xdialog")) { + if (-x "@FINKPREFIX@/bin/whiptail" && + (! defined $ENV{DEBCONF_FORCE_DIALOG} || ! -x "@FINKPREFIX@/bin/dialog") && + (! defined $ENV{DEBCONF_FORCE_XDIALOG} || ! -x "@FINKPREFIX@/bin/Xdialog")) { $this->program('whiptail'); $this->dashsep('--'); $this->borderwidth(5); @@ -75,8 +75,8 @@ $this->selectspacer(9); $this->hasoutputfd(1); } - elsif (-x "/usr/bin/dialog" && - (! defined $ENV{DEBCONF_FORCE_XDIALOG} || ! -x "/usr/bin/Xdialog")) { + elsif (-x "@FINKPREFIX@/bin/dialog" && + (! defined $ENV{DEBCONF_FORCE_XDIALOG} || ! -x "@FINKPREFIX@/bin/Xdialog")) { $this->program('dialog'); $this->dashsep(''); # dialog does not need (or support) # double-dash separation @@ -88,7 +88,7 @@ $this->selectspacer(0); $this->hasoutputfd(1); } - elsif (-x "/usr/bin/Xdialog" && defined $ENV{DISPLAY}) { + elsif (-x "@FINKPREFIX@/bin/Xdialog" && defined $ENV{DISPLAY}) { $this->program("Xdialog"); $this->borderwidth(7); $this->borderheight(20); diff -ruN debconf-1.4.51/Debconf/FrontEnd/Editor.pm debconf-1.4.51.new/Debconf/FrontEnd/Editor.pm --- debconf-1.4.51/Debconf/FrontEnd/Editor.pm 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/Debconf/FrontEnd/Editor.pm 2005-06-19 19:37:40.000000000 -0400 @@ -113,7 +113,7 @@ close $fh; # Launch editor. - my $editor=$ENV{EDITOR} || $ENV{VISUAL} || '/usr/bin/editor'; + my $editor=$ENV{EDITOR} || $ENV{VISUAL} || '@FINKPREFIX@/bin/editor'; # $editor may possibly contain spaces and options system "$editor ".Debconf::TmpFile->filename; diff -ruN debconf-1.4.51/Debconf/FrontEnd/Gnome.pm debconf-1.4.51.new/Debconf/FrontEnd/Gnome.pm --- debconf-1.4.51/Debconf/FrontEnd/Gnome.pm 2005-05-28 20:18:10.000000000 -0400 +++ debconf-1.4.51.new/Debconf/FrontEnd/Gnome.pm 2005-06-19 19:37:40.000000000 -0400 @@ -96,7 +96,7 @@ $this->win->set_title(to_Unicode(sprintf(gettext("Debconf on %s"), $hostname))); $this->win->signal_connect("delete_event", sub { exit }); - $this->logo(Gtk2::Gdk::Pixbuf->new_from_file("/usr/share/pixmaps/debian-logo.png")); + $this->logo(Gtk2::Gdk::Pixbuf->new_from_file("@FINKPREFIX@/share/pixmaps/debian-logo.png")); $this->druid(Gnome2::Druid->new); $this->druid->show; diff -ruN debconf-1.4.51/Makefile debconf-1.4.51.new/Makefile --- debconf-1.4.51/Makefile 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/Makefile 2005-06-20 10:06:08.000000000 -0400 @@ -3,7 +3,7 @@ $(MAKE) -C po Debconf/FrontEnd/Kde/WizardUi.pm: Debconf/FrontEnd/Kde/WizardUi.ui - puic $< |sed 's/package WizardUi/package Debconf::FrontEnd::Kde::WizardUi/' > $@ +# puic $< |sed 's/package WizardUi/package Debconf::FrontEnd::Kde::WizardUi/' > $@ clean: find . -name \*~ | xargs rm -f @@ -17,9 +17,9 @@ # Anything that goes in the debconf-utils package. install-utils: - install -d $(prefix)/usr/bin + install -d $(prefix)/bin find . -maxdepth 1 -perm +100 -type f -name 'debconf-*' | grep -v debconf-set-selections | grep -v debconf-show | grep -v debconf-copydb | grep -v debconf-communicate | \ - xargs -i install {} $(prefix)/usr/bin + xargs -i install {} $(prefix)/bin # Anything that goes in the debconf-i18n package. install-i18n: @@ -29,38 +29,38 @@ install-rest: install -d $(prefix)/etc \ $(prefix)/var/cache/debconf \ - $(prefix)/usr/share/debconf \ - $(prefix)/usr/share/pixmaps + $(prefix)/share/debconf \ + $(prefix)/share/pixmaps install -m 0644 debconf.conf $(prefix)/etc/ - install -m 0644 debian-logo.png $(prefix)/usr/share/pixmaps/ + install -m 0644 debian-logo.png $(prefix)/share/pixmaps/ # This one is the ultimate backup copy. - grep -v '^#' debconf.conf > $(prefix)/usr/share/debconf/debconf.conf + grep -v '^#' debconf.conf > $(prefix)/share/debconf/debconf.conf # Make module directories. find Debconf -type d |grep -v CVS | \ - xargs -i install -d $(prefix)/usr/share/perl5/{} - install -d $(prefix)/usr/lib/python2.3/site-packages/ + xargs -i install -d $(prefix)/lib/perl5/{} + install -d $(prefix)/lib/python2.3/site-packages/ # Install modules. find Debconf -type f -name '*.pm' |grep -v CVS | \ - xargs -i install -m 0644 {} $(prefix)/usr/share/perl5/{} - install -m 0644 debconf.py $(prefix)/usr/lib/python2.3/site-packages/ + xargs -i install -m 0644 {} $(prefix)/lib/perl5/{} + install -m 0644 debconf.py $(prefix)/lib/python2.3/site-packages/ # Special case for back-compatability. - install -d $(prefix)/usr/share/perl5/Debian/DebConf/Client + install -d $(prefix)/lib/perl5/Debian/DebConf/Client cp Debconf/Client/ConfModule.stub \ - $(prefix)/usr/share/perl5/Debian/DebConf/Client/ConfModule.pm + $(prefix)/lib/perl5/Debian/DebConf/Client/ConfModule.pm # Other libs and helper stuff. - install -m 0644 confmodule.sh confmodule $(prefix)/usr/share/debconf/ - install frontend $(prefix)/usr/share/debconf/ - install -m 0755 transition_db.pl fix_db.pl $(prefix)/usr/share/debconf/ + install -m 0644 confmodule.sh confmodule $(prefix)/share/debconf/ + install frontend $(prefix)/share/debconf/ + install -m 0755 transition_db.pl fix_db.pl $(prefix)/share/debconf/ # Install essential programs. - install -d $(prefix)/usr/sbin $(prefix)/usr/bin + install -d $(prefix)/sbin $(prefix)/bin find . -maxdepth 1 -perm +100 -type f -name 'dpkg-*' | \ - xargs -i install {} $(prefix)/usr/sbin - find . -maxdepth 1 -perm +100 -type f -name debconf -or -name debconf-show -or -name debconf-copydb -or -name debconf-communicate -or -name debconf-set-selections | \ - xargs -i install {} $(prefix)/usr/bin + xargs -i install {} $(prefix)/sbin + find . -maxdepth 1 -perm +100 -type f -name debconf.tmp -or -name debconf-show -or -name debconf-copydb -or -name debconf-communicate -or -name debconf-set-selections | \ + xargs -i install {} $(prefix)/bin # Now strip all pod documentation from all .pm files and scripts. - find $(prefix)/usr/share/perl5/ $(prefix)/usr/sbin \ - $(prefix)/usr/share/debconf/frontend \ - $(prefix)/usr/share/debconf/*.pl $(prefix)/usr/bin \ + find $(prefix)/lib/perl5/ $(prefix)/sbin \ + $(prefix)/share/debconf/frontend \ + $(prefix)/share/debconf/*.pl $(prefix)/bin \ -name '*.pl' -or -name '*.pm' -or -name 'dpkg-*' -or \ -name 'debconf-*' -or -name 'frontend' | \ grep -v Client/ConfModule | xargs perl -i.bak -ne ' \ diff -ruN debconf-1.4.51/Test/Debconf/DbDriver/LDAPTest.pm debconf-1.4.51.new/Test/Debconf/DbDriver/LDAPTest.pm --- debconf-1.4.51/Test/Debconf/DbDriver/LDAPTest.pm 2005-05-13 16:59:19.000000000 -0400 +++ debconf-1.4.51.new/Test/Debconf/DbDriver/LDAPTest.pm 2005-06-19 19:37:40.000000000 -0400 @@ -19,8 +19,8 @@ # my $conf = "$_LDAPDIR/slapd.conf"; my $ldif = "$_LDAPDIR/ldap.ldif"; - my $slapdbin = '/usr/sbin/slapd'; - my $slapaddbin = '/usr/sbin/slapadd'; + my $slapdbin = '@FINKPREFIX@/sbin/slapd'; + my $slapaddbin = '@FINKPREFIX@/sbin/slapadd'; # is there slapd installed? if (! -x $slapdbin) { diff -ruN debconf-1.4.51/Test/Debconf/DbDriver/ldap/slapd.conf debconf-1.4.51.new/Test/Debconf/DbDriver/ldap/slapd.conf --- debconf-1.4.51/Test/Debconf/DbDriver/ldap/slapd.conf 2005-05-13 16:59:19.000000000 -0400 +++ debconf-1.4.51.new/Test/Debconf/DbDriver/ldap/slapd.conf 2005-06-20 09:50:11.000000000 -0400 @@ -5,7 +5,7 @@ moduleload back_ldbm # Schema and objectClass definitions -include /etc/ldap/schema/core.schema +include /etc/openldap/schema/core.schema include doc/debconf.schema # Schema check allows for forcing entries to diff -ruN debconf-1.4.51/confmodule debconf-1.4.51.new/confmodule --- debconf-1.4.51/confmodule 2005-05-28 20:18:13.000000000 -0400 +++ debconf-1.4.51.new/confmodule 2005-06-19 19:37:40.000000000 -0400 @@ -11,7 +11,7 @@ export PERL_DL_NONLAZY # Since there is no FrontEnd, this program execs a FrontEnd. # It will then run a new copy of $0 that can talk to it. - exec /usr/share/debconf/frontend $0 "$@" + exec @FINKPREFIX@/share/debconf/frontend $0 "$@" fi # Only do this once. diff -ruN debconf-1.4.51/confmodule.sh debconf-1.4.51.new/confmodule.sh --- debconf-1.4.51/confmodule.sh 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/confmodule.sh 2005-06-19 19:37:40.000000000 -0400 @@ -14,7 +14,7 @@ # Ok, this is pretty crazy. Since there is no FrontEnd, this # program execs a FrontEnd. It will then run a new copy of $0 that # can talk to it. - exec /usr/share/debconf/frontend $0 $* + exec @FINKPREFIX@/share/debconf/frontend $0 $* fi # Only do this once. diff -ruN debconf-1.4.51/debconf-get-selections debconf-1.4.51.new/debconf-get-selections --- debconf-1.4.51/debconf-get-selections 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/debconf-get-selections 2005-06-19 19:37:41.000000000 -0400 @@ -14,7 +14,7 @@ debconf-set-selections. To dump the debconf database of the debian-installer, from -/var/log/debian-installer/cdebconf, use the --installer +@FINKPREFIX@/var/log/debian-installer/cdebconf, use the --installer parameter. =cut @@ -31,7 +31,7 @@ if (@ARGV && $ARGV[0] eq '--installer') { # A bit of a hack.. - my $di_path="/var/log/debian-installer/cdebconf"; + my $di_path="@FINKPREFIX@/var/log/debian-installer/cdebconf"; $Debconf::Db::config=Debconf::Db->makedriver( driver => "File", name => "di_questions", diff -ruN debconf-1.4.51/debconf.conf debconf-1.4.51.new/debconf.conf --- debconf-1.4.51/debconf.conf 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/debconf.conf 2005-06-19 19:37:41.000000000 -0400 @@ -16,7 +16,7 @@ Driver: File Mode: 644 Reject-Type: password -Filename: /var/cache/debconf/config.dat +Filename: @FINKPREFIX@/var/cache/debconf/config.dat # Not world readable (the default), and accepts only passwords. Name: passwords @@ -25,7 +25,7 @@ Backup: false Required: false Accept-Type: password -Filename: /var/cache/debconf/passwords.dat +Filename: @FINKPREFIX@/var/cache/debconf/passwords.dat # Set up the configdb database. By default, it consists of a stack of two # databases, one to hold passwords and one for everything else. @@ -38,7 +38,7 @@ Name: templatedb Driver: File Mode: 644 -Filename: /var/cache/debconf/templates.dat +Filename: @FINKPREFIX@/var/cache/debconf/templates.dat # Well that was pretty straightforward, and it will be enough for most # people's needs, but debconf's database drivers can be used to do much diff -ruN debconf-1.4.51/debconf.py debconf-1.4.51.new/debconf.py --- debconf-1.4.51/debconf.py 2005-05-28 20:18:13.000000000 -0400 +++ debconf-1.4.51.new/debconf.py 2005-06-19 19:37:41.000000000 -0400 @@ -87,7 +87,7 @@ return self.get(question) -_frontEndProgram = '/usr/share/debconf/frontend' +_frontEndProgram = '@FINKPREFIX@/share/debconf/frontend' def runFrontEnd(): if not os.environ.has_key('DEBIAN_HAS_FRONTEND'): diff -ruN debconf-1.4.51/debian/apt.conf debconf-1.4.51.new/debian/apt.conf --- debconf-1.4.51/debian/apt.conf 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/apt.conf 2005-06-19 19:37:41.000000000 -0400 @@ -1,3 +1,3 @@ // Pre-configure all packages with debconf before they are installed. // If you don't like it, comment it out. -DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";}; +DPkg::Pre-Install-Pkgs {"@FINKPREFIX@/sbin/dpkg-preconfigure --apt || true";}; diff -ruN debconf-1.4.51/debian/changelog debconf-1.4.51.new/debian/changelog --- debconf-1.4.51/debian/changelog 2005-06-08 23:03:06.000000000 -0400 +++ debconf-1.4.51.new/debian/changelog 2005-06-19 19:37:41.000000000 -0400 @@ -2276,7 +2276,7 @@ debconf (0.9.50) unstable; urgency=low - * Remove /var/lib/debconf on upgrade. Nothing uses it anymore, + * Remove @FINKPREFIX@/var/lib/debconf on upgrade. Nothing uses it anymore, and it contains some large old database files, and on most systems, a large amount of cruft (temporary files, editor backup files, backups of the db, sockets, the list goes on and on). @@ -2478,7 +2478,7 @@ debconf (0.9.21) unstable; urgency=low - * Simplified the functions generated by /usr/share/debconf/confmodule + * Simplified the functions generated by @FINKPREFIX@/share/debconf/confmodule by using read -r a b instead of doing the set -- split thing. * Sanitize IFS in there, so things like cvs's config script that mangle it will not produce unexpected results. Closes: #88830 @@ -2497,7 +2497,7 @@ debconf (0.9.19) unstable; urgency=low - * Made Db.pm read /usr/share/debconf/debconf.conf if no other config file + * Made Db.pm read @FINKPREFIX@/share/debconf/debconf.conf if no other config file is found, so it will have sensible defaults in two situations: 1) user decides to delete file in /etc 2) upgrade from pre-conffile version, and debconf is asked to do @@ -3372,7 +3372,7 @@ debconf (0.3.74) unstable; urgency=low * Sometimes you put in something to be helpful, and it comes back to bite - you in a major way. Say you add some code to /usr/share/debconf/confmodule + you in a major way. Say you add some code to @FINKPREFIX@/share/debconf/confmodule to allow broken postinst scripts that use debconf to still echo stuff to stdout and not have it go to debconf. Then you find that this hack makes legitimate code that uses the confmodule and uses the perl ConfModule @@ -4396,7 +4396,7 @@ * Now just depends on perl-5.005-base (of sufficiently recent version), since that package now contains everything I need. (Closes: #53186) - * Client/frontend: Look for templates in /usr/share/debconf/templates/ + * Client/frontend: Look for templates in @FINKPREFIX@/share/debconf/templates/ as well as the current directory. Useful for stadalone programs that use debconf. * Include apt-setup in debconf and debconf-tiny for now, since the base diff -ruN debconf-1.4.51/debian/config debconf-1.4.51.new/debian/config --- debconf-1.4.51/debian/config 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/config 2005-06-19 19:37:41.000000000 -0400 @@ -5,11 +5,11 @@ # file doesn't exist yet, this package is being preconfiged, and # we might as well just exit and wait until the postinst # runs the config script. -if [ ! -e /usr/share/debconf/confmodule ]; then +if [ ! -e @FINKPREFIX@/share/debconf/confmodule ]; then exit fi -. /usr/share/debconf/confmodule +. @FINKPREFIX@/share/debconf/confmodule db_version 2.0 db_capb backup diff -ruN debconf-1.4.51/debian/debconf-utils.postinst debconf-1.4.51.new/debian/debconf-utils.postinst --- debconf-1.4.51/debian/debconf-utils.postinst 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/debconf-utils.postinst 2005-06-19 19:37:41.000000000 -0400 @@ -2,8 +2,8 @@ #DEBHELPER# # directory turned into symlink; give dpkg a hand. -if [ ! -L /usr/share/doc/debconf-utils ] && \ - [ -e /usr/share/doc/debconf-utils ]; then - rmdir /usr/share/doc/debconf-utils - ln -sf debconf /usr/share/doc/debconf-utils +if [ ! -L @FINKPREFIX@/share/doc/debconf-utils ] && \ + [ -e @FINKPREFIX@/share/doc/debconf-utils ]; then + rmdir @FINKPREFIX@/share/doc/debconf-utils + ln -sf debconf @FINKPREFIX@/share/doc/debconf-utils fi diff -ruN debconf-1.4.51/debian/po/cs.po debconf-1.4.51.new/debian/po/cs.po --- debconf-1.4.51/debian/po/cs.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/cs.po 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/el.po debconf-1.4.51.new/debian/po/el.po --- debconf-1.4.51/debian/po/el.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/el.po 2005-06-19 19:37:41.000000000 -0400 @@ -7,7 +7,7 @@ # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # Konstantinos Margaritis , 2004. diff -ruN debconf-1.4.51/debian/po/es.po debconf-1.4.51.new/debian/po/es.po --- debconf-1.4.51/debian/po/es.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/es.po 2005-06-19 19:37:41.000000000 -0400 @@ -13,7 +13,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/eu.po debconf-1.4.51.new/debian/po/eu.po --- debconf-1.4.51/debian/po/eu.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/eu.po 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/fi.po debconf-1.4.51.new/debian/po/fi.po --- debconf-1.4.51/debian/po/fi.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/fi.po 2005-06-19 19:37:41.000000000 -0400 @@ -1,7 +1,7 @@ # This file is distributed under the same license as the PACKAGE package. # Tommi Vainikainen, 2003. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" diff -ruN debconf-1.4.51/debian/po/fr.po debconf-1.4.51.new/debian/po/fr.po --- debconf-1.4.51/debian/po/fr.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/fr.po 2005-06-19 19:37:41.000000000 -0400 @@ -1,7 +1,7 @@ # translation of fr.po to French # This file is distributed under the same license as the PACKAGE package. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. # Christian Perrier , 2004. diff -ruN debconf-1.4.51/debian/po/gl.po debconf-1.4.51.new/debian/po/gl.po --- debconf-1.4.51/debian/po/gl.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/gl.po 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # #, fuzzy diff -ruN debconf-1.4.51/debian/po/ja.po debconf-1.4.51.new/debian/po/ja.po --- debconf-1.4.51/debian/po/ja.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/ja.po 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" diff -ruN debconf-1.4.51/debian/po/nl.po debconf-1.4.51.new/debian/po/nl.po --- debconf-1.4.51/debian/po/nl.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/nl.po 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/pt_BR.po debconf-1.4.51.new/debian/po/pt_BR.po --- debconf-1.4.51/debian/po/pt_BR.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/pt_BR.po 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ # This file is distributed under the same license as the debconf package. # André Luis Lopes , 2003. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" diff -ruN debconf-1.4.51/debian/po/ru.po debconf-1.4.51.new/debian/po/ru.po --- debconf-1.4.51/debian/po/ru.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/ru.po 2005-06-19 19:37:41.000000000 -0400 @@ -2,7 +2,7 @@ # translation of ru.po to Russian # translation of debconf_1.3.14.po to russian # This file is distributed under the same license as the PACKAGE package. -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. # Yuri Kozlov , 2004. diff -ruN debconf-1.4.51/debian/po/sk.po debconf-1.4.51.new/debian/po/sk.po --- debconf-1.4.51/debian/po/sk.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/sk.po 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/sv.po debconf-1.4.51.new/debian/po/sv.po --- debconf-1.4.51/debian/po/sv.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/sv.po 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # -# Translators, please read /usr/share/doc/po-debconf/README-trans +# Translators, please read @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # #, fuzzy diff -ruN debconf-1.4.51/debian/po/templates.pot debconf-1.4.51.new/debian/po/templates.pot --- debconf-1.4.51/debian/po/templates.pot 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/templates.pot 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/po/uk.po debconf-1.4.51.new/debian/po/uk.po --- debconf-1.4.51/debian/po/uk.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/uk.po 2005-06-19 19:37:41.000000000 -0400 @@ -7,7 +7,7 @@ # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # Eugeniy Meshcheryakov , 2004. diff -ruN debconf-1.4.51/debian/po/zh_CN.po debconf-1.4.51.new/debian/po/zh_CN.po --- debconf-1.4.51/debian/po/zh_CN.po 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/po/zh_CN.po 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans +# @FINKPREFIX@/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. diff -ruN debconf-1.4.51/debian/postinst debconf-1.4.51.new/debian/postinst --- debconf-1.4.51/debian/postinst 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/postinst 2005-06-19 20:21:43.000000000 -0400 @@ -3,28 +3,28 @@ # This directory unexpectedly lingered around for two people, still # containing .pm files that broke debconf upgrades. I don't know why. -if [ -d /usr/lib/perl5/Debconf ]; then - rm -rf /usr/lib/perl5/Debconf +if [ -d @FINKPREFIX@/lib/perl5/Debconf ]; then + rm -rf @FINKPREFIX@/usr/lib/perl5/Debconf fi # Transition from old database format before debconf starts up. if [ -z "$DEBIAN_HAS_FRONTEND" -a "$1" = configure -a -n "$2" ] && \ dpkg --compare-versions "$2" lt 0.9.00; then - if [ -e /var/lib/debconf/config.db -o -e /var/lib/debconf/templates.db ]; then - /usr/share/debconf/transition_db.pl + if [ -e @FINKPREFIX@/var/lib/debconf/config.db -o -e @FINKPREFIX@/var/lib/debconf/templates.db ]; then + @FINKPREFIX@/share/debconf/transition_db.pl fi # This package used to add itself to apt.conf. That could result in # a zero-byte file, since it no longer does. Detect that and remove # the file. - if [ ! -s /etc/apt/apt.conf ]; then - rm -f /etc/apt/apt.conf + if [ ! -s @FINKPREFIX@/etc/apt/apt.conf ]; then + rm -f @FINKPREFIX@/etc/apt/apt.conf fi fi # Fix up broken db's before debconf starts up. if [ -z "$DEBIAN_HAS_FRONTEND" -a "$1" = configure -a -n "$2" ] && \ dpkg --compare-versions "$2" lt 1.0.25; then - /usr/share/debconf/fix_db.pl + @FINKPREFIX@/share/debconf/fix_db.pl fi # configdb splits into passworded and non-passworded parts, before debconf @@ -40,19 +40,19 @@ -c Name:newconfig \ -c Driver:File \ -c Reject-Type:password \ - -c Filename:/var/cache/debconf/newconfig.dat \ + -c Filename:@FINKPREFIX@/var/cache/debconf/newconfig.dat \ -c Mode:644 - mv -f /var/cache/debconf/newconfig.dat /var/cache/debconf/config.dat + mv -f @FINKPREFIX@/var/cache/debconf/newconfig.dat @FINKPREFIX@/var/cache/debconf/config.dat fi -. /usr/share/debconf/confmodule +. @FINKPREFIX@/share/debconf/confmodule -# Remove old debconf database, and associated cruft in /var/lib/debconf. +# Remove old debconf database, and associated cruft in @FINKPREFIX@/var/lib/debconf. # In fact, the whole directory can go! Earlier versions of debconf in the # 0.9.x series kept it just in case, so make sure to delete it on upgrade # from any of those versions, or even older versions. if [ "$1" = configure -a -n "$2" ] && dpkg --compare-versions "$2" lt 0.9.50; then - rm -rf /var/lib/debconf + rm -rf @FINKPREFIX@/var/lib/debconf fi # Kill db cruft. diff -ruN debconf-1.4.51/debian/rules debconf-1.4.51.new/debian/rules --- debconf-1.4.51/debian/rules 2005-05-13 16:59:20.000000000 -0400 +++ debconf-1.4.51.new/debian/rules 2005-06-19 19:37:41.000000000 -0400 @@ -56,7 +56,7 @@ # Changelog reduction hack for debconf. Only include top 100 entries. perl -ne '$$c++ if /^debconf /; last if $$c > 100 ; print $$_' \ < debian/changelog > debian/debconf.changelog - echo "Install debconf-doc and see /usr/share/doc/debconf-doc/changelog.gz" >> debian/debconf.changelog + echo "Install debconf-doc and see @FINKPREFIX@/share/doc/debconf-doc/changelog.gz" >> debian/debconf.changelog echo "for the remainder of this changelog." >> debian/debconf.changelog dh_python diff -ruN debconf-1.4.51/doc/README.LDAP debconf-1.4.51.new/doc/README.LDAP --- debconf-1.4.51/doc/README.LDAP 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/README.LDAP 2005-06-19 19:37:41.000000000 -0400 @@ -12,7 +12,7 @@ To get this to work, you need to do the following: -1) Get /usr/share/doc/debconf-doc/debconf.schema into your DS. +1) Get @FINKPREFIX@/share/doc/debconf-doc/debconf.schema into your DS. 2) Configure debconf to use the LDAP database in some fashion. The debconf.conf(5) man page has documentation and examples. diff -ruN debconf-1.4.51/doc/TODO debconf-1.4.51.new/doc/TODO --- debconf-1.4.51/doc/TODO 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/TODO 2005-06-19 19:37:41.000000000 -0400 @@ -1,7 +1,7 @@ General: * The ConfModule should not return the backup return code, ever, if the confmodule it talks to has not indicated it has that capability. -* Get rid of the horrendous fd #3 hack in /usr/share/debconf/confmodule. +* Get rid of the horrendous fd #3 hack in @FINKPREFIX@/share/debconf/confmodule. Unfortuantly, many packages probably depend on the hack. Options are to find all such packages (by examining/auditing all packages that use debconf), to come up with a new shell interface that is so much cooler @@ -52,7 +52,7 @@ detect this and move them to passwords.dat. * PackageDir dbdriver needs testing, and needs to become used by default.. * Hmm, as a slight mod to PackageDir, it just might be possible to use - /var/lib/dpkg/info/*.templates as a packagedir database. The 822 module + @FINKPREFIX@/var/lib/dpkg/info/*.templates as a packagedir database. The 822 module does not currently handle the word-wrapped descriptions in there, and it'd sorta have to be read-only and stacked under another db or something to record owner info though. The overlying db would need to get copies of diff -ruN debconf-1.4.51/doc/man/Debconf::Client::ConfModule.fr.3.pod debconf-1.4.51.new/doc/man/Debconf::Client::ConfModule.fr.3.pod --- debconf-1.4.51/doc/man/Debconf::Client::ConfModule.fr.3.pod 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/Debconf::Client::ConfModule.fr.3.pod 2005-06-19 19:37:41.000000000 -0400 @@ -56,7 +56,7 @@ =head1 VOIR AUSSI Le fichier de spécification de debconf -(/usr/share/doc/debian-policy/debconf_specification.html.gz). +(@FINKPREFIX@/share/doc/debian-policy/debconf_specification.html.gz). =head1 AUTEUR diff -ruN debconf-1.4.51/doc/man/confmodule.3 debconf-1.4.51.new/doc/man/confmodule.3 --- debconf-1.4.51/doc/man/confmodule.3 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/confmodule.3 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ confmodule \- communicate with Debian configuration system FrontEnd. .SH SYNOPSIS #!/bin/sh -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_version 2.0 db_capb 'backup' CAPB=$RET diff -ruN debconf-1.4.51/doc/man/confmodule.fr.3 debconf-1.4.51.new/doc/man/confmodule.fr.3 --- debconf-1.4.51/doc/man/confmodule.fr.3 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/confmodule.fr.3 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ confmodule \- Communiquer avec l'interface de configuration système Debian .SH SYNOPSIS #!/bin/sh -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_version 2.0 db_capb 'backup' CAPB=$RET diff -ruN debconf-1.4.51/doc/man/confmodule.pt_BR.3 debconf-1.4.51.new/doc/man/confmodule.pt_BR.3 --- debconf-1.4.51/doc/man/confmodule.pt_BR.3 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/confmodule.pt_BR.3 2005-06-19 19:37:41.000000000 -0400 @@ -3,7 +3,7 @@ confmodule \- comunica-se com o FronEnd do sistema de configuração Debian. .SH RESUMO #!/bin/sh -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_version 2.0 db_capb 'backup' CAPB=$RET diff -ruN debconf-1.4.51/doc/man/debconf-devel.7 debconf-1.4.51.new/doc/man/debconf-devel.7 --- debconf-1.4.51/doc/man/debconf-devel.7 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf-devel.7 2005-06-19 19:45:40.000000000 -0400 @@ -98,7 +98,7 @@ This is another question, of boolean type. .P For some real-life examples of templates files, see -/var/lib/dpkg/info/debconf.templates, and other .templates files in that +@FINKPREFIX@/var/lib/dpkg/info/debconf.templates, and other .templates files in that directory. .P Let's look at each of the fields in turn.. @@ -396,7 +396,7 @@ to relieve this minor drudgery. .P For shell programming, there is the -/usr/share/debconf/confmodule library, which you can source at the top of +@FINKPREFIX@/share/debconf/confmodule library, which you can source at the top of a shell script, and talk to debconf in a fairly natural way, using lower-case versions of the debconf protocol commands, that are prefixed with "db_" (ie, "db_input" and "db_go"). For details, see @@ -406,13 +406,13 @@ .BR Debconf::Client::ConfModule(3) perl module, and python programmers can use the debconf python module. .P -The rest of this manual will use the /usr/share/debconf/confmodule library +The rest of this manual will use the @FINKPREFIX@/share/debconf/confmodule library in example shell scripts. Here is an example config script using that library, that just asks a question: .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_set mypackage/reboot-now false db_input high mypackage/reboot-now || true db_go || true @@ -428,7 +428,7 @@ .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_get mypackage/reboot-now if [ "$RET" = true ]; then shutdown -r now @@ -446,7 +446,7 @@ ask questions using debconf, so that pre-configuration will work. .TP .B * -Always source /usr/share/debconf/confmodule at the top of your postinst, +Always source @FINKPREFIX@/share/debconf/confmodule at the top of your postinst, even if you won't be running any db_* commands in it. This is required to make sure the config script gets a chance to run (see HACKS for details). @@ -483,14 +483,14 @@ scripts. .P Note that if your package's sole use of debconf is in the postrm, you should -make your package's postinst sources /usr/share/debconf/confmodule, to give +make your package's postinst sources @FINKPREFIX@/share/debconf/confmodule, to give debconf a chance to load up your templates file into its database. Then the templates will be available when your package is being purged. .P You can also use debconf in other, stand alone programs. The issue to watch out for here is that debconf is not intended to be, and must not be used as a registry. This is unix after all, and programs are configured by files in -/etc, not by some nebulous debconf database (that is only a cache anyway +@FINKPREFIX@/etc, not by some nebulous debconf database (that is only a cache anyway and might get blown away). So think long and hard before using debconf in a standalone program. .P @@ -594,7 +594,7 @@ .P For details about setting this up, see .BR debconf.conf (5) , -and note that /etc/debconf.conf makes a good template for a personal +and note that @FINKPREFIX@/etc/debconf.conf makes a good template for a personal ~/.debconfrc file. .RE .SH "ADVANCED PROGRAMING WITH DEBCONF" @@ -617,9 +617,9 @@ Your config script will look something like this: .P #!/bin/sh - CONFIGFILE=/etc/foo.conf + CONFIGFILE=@FINKPREFIX@/etc/foo.conf set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule # Load config file, if it exists. if [ -e $CONFIGFILE ]; then @@ -639,9 +639,9 @@ And the postinst will look something like this: .P #!/bin/sh - CONFIGFILE=/etc/foo.conf + CONFIGFILE=@FINKPREFIX@/etc/foo.conf set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule # Generate config file, if it doesn't exist. # An alternative is to copy in a template @@ -706,7 +706,7 @@ .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_capb backup STATE=1 @@ -848,8 +848,8 @@ prerm scripts of all related packages (replacing with the package name): .P - if [ -e /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule + if [ -e @FINKPREFIX@/share/debconf/confmodule ]; then + . @FINKPREFIX@/share/debconf/confmodule # I no longer claim this question. db_unregister shared/window-manager @@ -887,7 +887,7 @@ or other program that uses it starts up. After all, they expect to be able to talk to debconf right away. The way this is accomplished for now is that when such a script loads a debconf library (like -/usr/share/debconf/confmodule), and debconf is not already running, it is +@FINKPREFIX@/share/debconf/confmodule), and debconf is not already running, it is started up, and a new copy of the script is re-execed. The only noticeable result is that you need to put the line that loads a debconf library at the very top of the script, or weird things will happen. We hope to address @@ -898,14 +898,14 @@ and when it loads them. When the config, preinst, and postinst scripts invoke debconf, it will automatically figure out where the templates file is, and load it. Standalone programs that use debconf will cause debconf to -look for templates files in /usr/share/debconf/templates/progname.templates. +look for templates files in @FINKPREFIX@/share/debconf/templates/progname.templates. And if a postrm wants to use debconf at purge time, the templates won't be available unless debconf had a chance to load them in its postinst. This is messy, but rather unavoidable. In the future some of these programs may be able to use debconf-loadtemplate by hand though. .P -/usr/share/debconf/confmodule's historic behavior of playing with +@FINKPREFIX@/share/debconf/confmodule's historic behavior of playing with file descriptors and setting up a fd #3 that talks to debconf, can cause all sorts of trouble when a postinst runs a daemon, since the daemon ends up talking to debconf, and debconf can't figure out when the script @@ -925,7 +925,7 @@ is the debconf user's guide. .P The debconf specification in debian policy is the canonical definition of -the debconf protocol. /usr/share/doc/debian-policy/debconf_specification.txt.gz +the debconf protocol. @FINKPREFIX@/share/doc/debian-policy/debconf_specification.txt.gz .P .BR debconf.conf (5) has much useful information, including some info about the backend diff -ruN debconf-1.4.51/doc/man/debconf-devel.fr.7 debconf-1.4.51.new/doc/man/debconf-devel.fr.7 --- debconf-1.4.51/doc/man/debconf-devel.fr.7 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf-devel.fr.7 2005-06-19 19:48:21.000000000 -0400 @@ -98,7 +98,7 @@ Ceci est une autre question, de type booléenne. .P Pour des exemples concrets de fichiers templates, regardez -/var/lib/dpkg/info/debconf.templates, ainsi que les autres fichiers .templates +@FINKPREFIX@/var/lib/dpkg/info/debconf.templates, ainsi que les autres fichiers .templates de ce répertoire. .P Regardons tour à tour chaque champ\ : @@ -407,7 +407,7 @@ travail, il existe quelques bibliothèques pour vous épargner cette tâche ingrate. .P Pour la programmation shell, il y a la bibliothèque -/usr/share/debconf/confmodule que vous pouvez inclure en début de script +@FINKPREFIX@/share/debconf/confmodule que vous pouvez inclure en début de script shell\ ; vous pourrez communiquer avec debconf de façon presque naturelle en utilisant la version en minuscules des commandes du protocole debconf qui sont préfixées de «\ db_\ » (par ex. «\ db_input\ » et «\ db_go\ »). Pour @@ -418,13 +418,13 @@ .BR Debconf::Client::ConfModule(3) et les programmeurs Python peuvent utiliser le module python. .P -Le reste de ce manuel utilisera la bibliothèque /usr/share/debconf/confmodule +Le reste de ce manuel utilisera la bibliothèque @FINKPREFIX@/share/debconf/confmodule dans des scripts shell à titre d'exemple. Voici un exemple de script config utilisant cette bibliothèque, il pose seulement une question\ : .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_set mypackage/reboot-now false db_input high mypackage/reboot-now || true db_go || true @@ -441,7 +441,7 @@ .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_get mypackage/reboot-now if [ "$RET" = true ]; then shutdown -r now @@ -462,7 +462,7 @@ pré-configuration fonctionne par la suite\ ; .TP .B - -incluez toujours /usr/share/debconf/confmodule au début de votre postinst, même +incluez toujours @FINKPREFIX@/share/debconf/confmodule au début de votre postinst, même si vous ne lancez aucune des commandes db_*. C'est nécessaire pour s'assurer que le script config sera bien lancé (voyez la section BIDOUILLES pour plus de détails)\ ; @@ -499,14 +499,14 @@ .P Notez que si votre paquet n'utilise debconf que dans le postrm, vous devriez faire en sorte que le postinst de votre paquet inclut -/usr/share/debconf/confmodule, pour que debconf puisse charger votre fichier +@FINKPREFIX@/share/debconf/confmodule, pour que debconf puisse charger votre fichier templates dans sa base de données. Le questionnaire sera alors disponible lorsque votre paquet sera purgé. .P Vous pouvez aussi utiliser debconf dans d'autres programmes indépendants. Le seul problème est que debconf n'est pas conçu pour être un système d'enregistrement et ne peut pas être utilisé comme tel. La philosophie d'Unix -est préservée, les programmes sont configurés à l'aide de fichiers dans /etc, et non pas par +est préservée, les programmes sont configurés à l'aide de fichiers dans i@FINKPREFIX@/etc, et non pas par une sombre base de données debconf (ce n'est qu'un cache et il peut se volatiliser). Réfléchissez donc longuement avant d'utiliser debconf dans un programme indépendant. @@ -618,7 +618,7 @@ .P Pour plus de détails pour mettre cela en place, voyez .BR debconf.conf (5) , -et remarquez que /etc/debconf.conf fait un bon modèle pour un fichier +et remarquez que @FINKPREFIX@/etc/debconf.conf fait un bon modèle pour un fichier ~/.debconfrc personnel. .RE .SH "PROGRAMMATION AVANCÉE AVEC DEBCONF" @@ -642,9 +642,9 @@ Votre script config ressemblera à quelque chose comme ça\ : .P #!/bin/sh - CONFIGFILE=/etc/foo.conf + CONFIGFILE=@FINKPREFIX@/etc/foo.conf set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule # charge le fichier de configuration, s'il existe. if [ -e $CONFIGFILE ]; then @@ -664,9 +664,9 @@ Et le postinst ressemblera à quelque chose comme ceci\ : .P #!/bin/sh - CONFIGFILE=/etc/foo.conf + CONFIGFILE=@FINKPREFIX@/etc/foo.conf set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule # Génère un fichier de configuration, s'il n'existe pas. # Une alternative est de copier dans un fichier @@ -727,7 +727,7 @@ .P #!/bin/sh set -e - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule db_capb backup STATE=1 @@ -856,8 +856,8 @@ Cela peut être accompli en ajoutant quelque chose comme ceci dans le script prerm de tous les paquets liés (en remplaçant par le nom du paquet)\ : .P - if [ -e /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule + if [ -e @FINKPREFIX@/share/debconf/confmodule ]; then + . @FINKPREFIX@/share/debconf/confmodule # Je ne veux plus de cette question. db_unregister shared/window-manager @@ -896,7 +896,7 @@ ou d'autres programmes qui l'utilisent commence. Après tout, ils espèrent avoir la possibilité de communiquer avec debconf d'une façon correcte. Pour l'instant, la manière dont cela est accompli est que lorsqu'un tel script charge -une bibliothèque debconf (comme /usr/share/debconf/confmodule) et que debconf +une bibliothèque debconf (comme @FINKPREFIX@/share/debconf/confmodule) et que debconf n'est pas déjà lancé, il est démarré et une nouvelle copie du script est ré-exécutée. Le seul résultat perceptible est que vous avez besoin de mettre la ligne qui charge une bibliothèque debconf au tout début du script, ou des choses @@ -908,14 +908,14 @@ et postinst invoquent debconf, il trouvera automatiquement l'emplacement du fichier templates et le chargera. Les programmes indépendants qui utilisent debconf forceront debconf à rechercher les fichiers templates dans -/usr/share/debconf/templates/nomduprog.templates. Et si un postrm veut utiliser +@FINKPREFIX@/share/debconf/templates/nomduprog.templates. Et si un postrm veut utiliser debconf au moment de la purge, les questionnaires ne seront pas disponibles à moins que debconf ait une opportunité de les charger dans son postinst. Cela n'est pas très propre mais presque inévitable. Certains de ces programmes pourraient malgré tout utiliser debconf-loadtemplate à la main. .P -Le comportement historique de /usr/share/debconf/confmodule de jouer avec les +Le comportement historique de @FINKPREFIX@/share/debconf/confmodule de jouer avec les descriptions de fichier et de configurer d'un fd #3 qui communique avec debconf, peut causer toutes sorte de troubles lorsqu'un démon est lancé par un postinst, puisque le démon cesse de communiquer avec debconf et que debconf ne @@ -937,7 +937,7 @@ est le guide de l'utilisateur de debconf. .P La spécification debconf dans la charte Debian est une définition canonique du -protocole debconf. /usr/share/doc/debian-policy/debconf_specification.txt.gz +protocole debconf. @FINKPREFIX@/share/doc/debian-policy/debconf_specification.txt.gz .P .BR debconf.conf (5) contient beaucoup d'informations, y compris des informations sur les pilotes de diff -ruN debconf-1.4.51/doc/man/debconf.7 debconf-1.4.51.new/doc/man/debconf.7 --- debconf-1.4.51/doc/man/debconf.7 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.7 2005-06-20 09:51:25.000000000 -0400 @@ -23,7 +23,7 @@ If you use apt (version 0.5 or above), and you have apt-utils installed, each package apt installs will be automatically preconfigured. This is controlled via -.I /etc/apt/apt.conf.d/70debconf +.I @FINKPREFIX@/etc/apt/apt.conf.d/70debconf .P Sometimes you might want to preconfigure a package by hand, when you're not installing it with apt. You can use @@ -175,14 +175,14 @@ .SH Backend Database Debconf uses a rather flexible and potentially complicated backend database for storing data such as the answers to questions. The file -.B /etc/debconf.conf +.B @FINKPREFIX@/etc/debconf.conf is used to configure this database. If you need to set up something complicated, like make debconf read a remote database to get defaults, with local overrides, read the .B debconf.conf (5) man page for all the gory details. Generally, the backend database is located in -.B /var/cache/debconf/ +.B @FINKPREFIX@/var/cache/debconf/ .SH Unattended Package Installation If you have many machines to manage you will sometimes find yourself in the position of needing to perform an unattended installation or upgrade of @@ -219,7 +219,7 @@ DEBCONF_DB_OVERRIDE, to make it easy to do this on the fly. Here is a sample use: .P - cat /var/cache/debconf/config.dat | \\ + cat @FINKPREFIX@/var/cache/debconf/config.dat | \\ ssh root@target "DEBIAN_FRONTEND=noninteractive \\ DEBCONF_DB_FALLBACK=Pipe apt-get upgrade" .P diff -ruN debconf-1.4.51/doc/man/debconf.conf.5 debconf-1.4.51.new/doc/man/debconf.conf.5 --- debconf-1.4.51/doc/man/debconf.conf.5 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.conf.5 2005-06-20 09:53:13.000000000 -0400 @@ -2,7 +2,7 @@ .SH NAME debconf.conf \- debconf configuration file .SH DESCRIPTION -Debconf is a configuration system for Debian packages. /etc/debconf.conf +Debconf is a configuration system for Debian packages. @FINKPREFIX@/etc/debconf.conf and ~/.debconfrc are configuration files debconf uses to determine which databases it should use. These databases are used for storing two types of information; dynamic config data the user enters into it, and static @@ -17,12 +17,12 @@ Name: configdb Driver: File - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat Name: templatedb Driver: File Mode: 644 - Filename: /var/cache/debconf/templates.dat + Filename: @FINKPREFIX@/var/cache/debconf/templates.dat .SH "FILE FORMAT" The format of this file is a series of stanzas, each separated by at least one wholly blank line. Comment lines beginning with a "#" character are @@ -108,7 +108,7 @@ The remainder of each database stanza is used to provide configuration specific to that driver. For example, the Text driver needs to know a directory to put the database in, so you might say: - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat .SH DRIVERS A number of drivers are available, and more can be written with little difficulty. Drivers come in two general types. First there are real drivers @@ -151,7 +151,7 @@ .P Name: mydb Driver: File - Filename: /var/cache/debconf/mydb.dat + Filename: @FINKPREFIX@/var/cache/debconf/mydb.dat .RE .TP .B DirTree @@ -187,7 +187,7 @@ .P Name: mydb Driver: DirTree - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb Extension: .txt .RE .TP @@ -209,7 +209,7 @@ .P Name: mydb Driver: PackageDir - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb .RE .TP .B LDAP @@ -225,7 +225,7 @@ the directory. .P For information about setting up a LDAP server for debconf, read -/usr/share/doc/debconf-doc/README.LDAP (from the debconf-doc package). +@FINKPREFIX@/share/doc/debconf-doc/README.LDAP (from the debconf-doc package). .P To use this database driver, you must have the libnet-ldap-perl package installed. Debconf suggests that package, but does not depend on it. @@ -436,13 +436,13 @@ # This is my own local database. Name: mydb Driver: DirTree - Directory: /var/cache/debconf/config + Directory: @FINKPREFIX@/var/cache/debconf/config # This is another database that I use to hold # only X server configuration. Name: X Driver: File - Filename: /etc/X11/debconf.dat + Filename: @FINKPREFIX@/etc/X11/debconf.dat Mode: 644 # It's sorta hard to work out what questions # belong to X; it should be using a deeper @@ -470,7 +470,7 @@ # passwords safe and secure. Name: passwords Driver: File - Filename: /etc/debconf/passwords + Filename: @FINKPREFIX@/etc/debconf/passwords Mode: 600 Accept-Type: password @@ -493,7 +493,7 @@ Driver: File Mode: 644 Format: 822 - Filename: /var/cache/debconf/templates + Filename: @FINKPREFIX@/var/cache/debconf/templates .SH NOTES If you use something like ${HOME} in this file, it will be replaced with the value of the named environment variable. @@ -514,7 +514,7 @@ An override driver, which can override the value field or flags of all requests that pass through it. .SH FILES -/etc/debconf.conf +@FINKPREFIX@/etc/debconf.conf .P ~/.debconfrc .SH SEE ALSO diff -ruN debconf-1.4.51/doc/man/debconf.conf.fr.5 debconf-1.4.51.new/doc/man/debconf.conf.fr.5 --- debconf-1.4.51/doc/man/debconf.conf.fr.5 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.conf.fr.5 2005-06-20 09:53:50.000000000 -0400 @@ -3,7 +3,7 @@ debconf.conf \- fichier de configuration de debconf .SH DESCRIPTION Debconf est un système de configuration pour les paquets Debian. -/etc/debconf.conf et ~/.debconfrc sont les fichiers de configuration utilisés +@FINKPREFIX@/etc/debconf.conf et ~/.debconfrc sont les fichiers de configuration utilisés pour déterminer quelle base de données doit être utilisée. Ces bases de données sont utilisées pour garder deux types d'informations\ ; la configuration dynamique des données que l'utilisateur a entrées et les données statiques des @@ -18,12 +18,12 @@ Name: configdb Driver: File - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat Name: templatedb Driver: File Mode: 644 - Filename: /var/cache/debconf/templates.dat + Filename: @FINKPREFIX@/var/cache/debconf/templates.dat .SH "FORMAT DE FICHIER" Le format de ce fichier est une suite de paragraphes, chacun d'eux séparé par au moins une ligne blanche. Les lignes de commentaires commençant par un @@ -117,7 +117,7 @@ une configuration spécifique à ce pilote. Par exemple, le pilote Text a besoin de connaître un répertoire pour y mettre la base de données, vous devriez donc dire\ : - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat .SH PILOTES Il y a de nombreux pilotes disponibles et on peut en écrire d'autres sans grande difficulté. Les pilotes sont répartis en deux types. Il y a d'abord les @@ -163,7 +163,7 @@ .P Name: mydb Driver: File - Filename: /var/cache/debconf/mydb.dat + Filename: @FINKPREFIX@/var/cache/debconf/mydb.dat .RE .TP .B DirTree @@ -201,7 +201,7 @@ .P Name: mydb Driver: DirTree - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb Extension: .txt .RE .TP @@ -223,7 +223,7 @@ .P Name: mydb Driver: PackageDir - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb .RE .TP .B LDAP @@ -240,7 +240,7 @@ configuration. .P Pour plus d'informations à propos de la configuration d'un serveur LDAP pour -debconf, lisez /usr/share/doc/debconf-doc/README.LDAP (du paquet debconf-doc). +debconf, lisez @FINKPREFIX@/share/doc/debconf-doc/README.LDAP (du paquet debconf-doc). .P Pour utiliser ce pilote, vous devez avoir installé le paquet libnet-ldap-perl. Debconf suggère ce paquet mais ne dépend pas de lui. @@ -460,14 +460,14 @@ # Ma base de données locale. Name: mydb Driver: DirTree - Directory: /var/cache/debconf/config + Directory: @FINKPREFIX@/var/cache/debconf/config # C'est une autre base de données que # j'utilise pour garder seulement la # configuration de mon serveur X. Name: X Driver: File - Filename: /etc/X11/debconf.dat + Filename: @FINKPREFIX@/etc/X11/debconf.dat Mode: 644 # Il est difficile de savoir quelles # questions concernent X\ ; il faudrait @@ -496,7 +496,7 @@ # conserver les mots de passe en sûreté. Name: passwords Driver: File - Filename: /etc/debconf/passwords + Filename: @FINKPREFIX@/etc/debconf/passwords Mode: 600 Accept-Type: password @@ -523,7 +523,7 @@ Driver: File Mode: 644 Format: 822 - Filename: /var/cache/debconf/templates + Filename: @FINKPREFIX@/var/cache/debconf/templates .SH NOTES Si vous utilisez dans ce fichier quelque chose comme ${HOME}, cette variable sera remplacée par la valeur de la variable d'environnement nommée ainsi. @@ -541,7 +541,7 @@ Un pilote d'annulation, qui peut annuler la valeur d'un champ ou les drapeaux de toutes les requêtes qui lui sont adressées. .SH FICHIERS -/etc/debconf.conf +@FINKPREFIX@/etc/debconf.conf .P ~/.debconfrc .SH VOIR AUSSI diff -ruN debconf-1.4.51/doc/man/debconf.conf.pt_BR.5 debconf-1.4.51.new/doc/man/debconf.conf.pt_BR.5 --- debconf-1.4.51/doc/man/debconf.conf.pt_BR.5 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.conf.pt_BR.5 2005-06-20 09:54:45.000000000 -0400 @@ -5,7 +5,7 @@ This translated man page is out of date -- it does not document the LDAP database driver. See the English version for a more current version. .SH DESCRIÇÃO -Debconf é um sistema de configuração de pacotes Debian. /etc/debconf.conf +Debconf é um sistema de configuração de pacotes Debian. @FINKPREFIX@/etc/debconf.conf e ~/.debconfrc são arquivos de configuração que o debconf usa para determinar quais base de dados deve usar. Estas base de dados são usadas para armazenar dois tipos de informação; dados de configuração dinâmicos @@ -21,12 +21,12 @@ Name: configdb Driver: File - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat Name: templatedb Driver: File Mode: 644 - Filename: /var/cache/debconf/templates.dat + Filename: @FINKPREFIX@/var/cache/debconf/templates.dat .SH "FORMATO DO ARQUIVO" O formato deste arquivo é uma série de estrofes, cada uma separada por pelo menos uma linha conpletamente em branco. Linhas de comentário @@ -121,7 +121,7 @@ configuração específica para o controlador. Por exemplo, o controlador Text precisa saber o diretório onde colocar a base de dados, então você poderia dizer: - Filename: /var/cache/debconf/config.dat + Filename: @FINKPREFIX@/var/cache/debconf/config.dat .SH CONTROLADORES Diversos controladores estão disponíveis, e outros podem ser escritos com pouco esforço. Controladores existem em três tipos genéricos. Primeiro, @@ -167,7 +167,7 @@ .P Name: mydb Driver: File - Filename: /var/cache/debconf/mydb.dat + Filename: @FINKPREFIX@/var/cache/debconf/mydb.dat .RE .TP .B DirTree @@ -204,7 +204,7 @@ .P Name: mydb Driver: DirTree - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb Extension: .txt .RE .TP @@ -227,7 +227,7 @@ .P Name: mydb Driver: PackaDir - Directory: /var/cache/debconf/mydb + Directory: @FINKPREFIX@/var/cache/debconf/mydb .RE .TP .B LDAP @@ -243,7 +243,7 @@ casos em que você quer atualizar os dados de configuração no diretório. .P Para informações sobre a configuração de um servidor LDAP para o debconf -leia /usr/share/doc/debconf-doc/README.LDAP (presente no pacote +leia @FINKPREFIX@/share/doc/debconf-doc/README.LDAP (presente no pacote debconf-doc). .P Para usar este controlador de base de dados você deve ter o pacote @@ -477,13 +477,13 @@ # Esta é minha prória base de dados local. Name: mydb Driver: DirTree - Directory: /var/cache/debconf/config + Directory: @FINKPREFIX@/var/cache/debconf/config # Esta é outra base de dados que eu uso para # armazenar somente a configuração do servidor X. Name: X Driver: File - File: /etc/X11/debconf.dat + File: @FINKPREFIX@/etc/X11/debconf.dat Mode: 644 # É meio complicado descobrir quais questões # pertencem ao X; deveria estr usando uma profunda @@ -514,7 +514,7 @@ Required: false Name: passwords Driver: File - Filename: /etc/debconf/passwords + Filename: @FINKPREFIX@/etc/debconf/passwords Mode: 600 Accept-Type: password @@ -537,7 +537,7 @@ Driver: File Mode: 644 Format: 822 - Directory: /var/cache/debconf/templates + Directory: @FINKPREFIX@/var/cache/debconf/templates .SH NOTAS Caso você utilize algo como ${HOME} neste arquivo, isso será substituído com o valor da variável de ambiente nomeada. @@ -555,7 +555,7 @@ Um controlador de sobreescrita que pode sobreescrever o valor dos campos ou assinala todas as requisições que passam através do mesmo. .SH ARQUIVOS -/etc/debconf.conf +@FINKPREFIX@/etc/debconf.conf .P ~/.debconfrc .SH VEJA TAMBÉM diff -ruN debconf-1.4.51/doc/man/debconf.fr.7 debconf-1.4.51.new/doc/man/debconf.fr.7 --- debconf-1.4.51/doc/man/debconf.fr.7 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.fr.7 2005-06-20 09:55:19.000000000 -0400 @@ -23,7 +23,7 @@ Si vous utilisez apt (version 0.5 ou supérieure) et que vous avez installé apt-utils, chaque paquet installé par apt sera automatiquement préconfiguré. C'est contrôlé via -.I /etc/apt/apt.conf.d/70debconf +.I @FINKPREFIX@/etc/apt/apt.conf.d/70debconf .P Quelques fois vous voudrez préconfigurer un paquet manuellement, quand vous l'installez sans apt. Vous pouvez utiliser @@ -176,7 +176,7 @@ .SH Base de données principale Debconf utilise une base de données principale plutôt flexible et potentiellement compliquée pour garder les réponses déjà données aux questions. Le fichier -.B /etc/debconf.conf +.B @FINKPREFIX@/etc/debconf.conf est utilisé pour configurer cette base de données. Si vous avez besoin de configurer quelque chose de compliqué, comme faire lire à debconf une base de données distante pour obtenir les valeurs par défaut, annulées par des @@ -184,7 +184,7 @@ .BR debconf.conf (5) pour tous les détails croustillants. La base de données principale se trouve généralement dans -.B /var/cache/debconf/ +.B @FINKPREFIX@/var/cache/debconf/ .SH Installation des paquets sans surveillance Si vous avez beaucoup de machines à gérer, vous aurez sûrement besoin de faire une installation ou une mise à niveau sans surveillance, alors que les réponses @@ -224,7 +224,7 @@ DEBCONF_DB_FALLBACK et DEBCONF_DB_OVERRIDE, pour le faire à la volée et plus simplement. Ici, un exemple d'utilisation\ : .P - cat /var/cache/debconf/config.dat | \\ + cat @FINKPREFIX@/var/cache/debconf/config.dat | \\ ssh root@target "DEBIAN_FRONTEND=noninteractive \\ DEBCONF_DB_FALLBACK=Pipe apt-get upgrade" .P diff -ruN debconf-1.4.51/doc/man/debconf.pt_BR.7 debconf-1.4.51.new/doc/man/debconf.pt_BR.7 --- debconf-1.4.51/doc/man/debconf.pt_BR.7 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/debconf.pt_BR.7 2005-06-20 09:55:53.000000000 -0400 @@ -23,7 +23,7 @@ Se você usao o apt (versão 0.5 ou superior) e possui o pacote apt-utils instalado, cada pacote que o apt instala será automaticamente pré-configurado. Isto é controlado via -.I /etc/apt/apt.conf.d/70debconf +.I @FINKPREFIX@/etc/apt/apt.conf.d/70debconf .P Ás vezes você pode querer pré-configurar um pacote manualmente, quando você não está instalando o mesmo com o apt. Você pode usar @@ -167,7 +167,7 @@ .SH Backend de Base de Dados O Debconf utiliza um backend de base de dados bem flexível e complicado para o armazenamento de dados como respostas para as perguntas. O arquivo -.B /etc/debconf.conf +.B @FINKPREFIX@/etc/debconf.conf é usado para configurar este base de dados. Se você precisa configurar algo complicado, como fazer o debconf ler uma base de dados remota para obter os padrões, sem sobreescritas locais, leia a página de manual @@ -175,11 +175,11 @@ para todos os detalhes sangrentos.Geralmente, o backend de base de dados está localizado em the backend database is located in -.B /var/cache/debconf/ +.B @FINKPREFIX@/var/cache/debconf/ .SH Desenvolvendo para o Debconf Desenvolvedores de pacotes e outros que queiram usar o debconf devem ler o Tutorial dos Programadores Debconf -(/usr/share/doc/debconf-doc/tutorial*). +(@FINKPREFIX@/share/doc/debconf-doc/tutorial*). .P Resumidamente, o debconf se comunica com os scripts dos mantenedores ou outros programas através da entrada e saída padrão, usando uma linguagem diff -ruN debconf-1.4.51/doc/man/dpkg-preconfigure.fr.8.pod debconf-1.4.51.new/doc/man/dpkg-preconfigure.fr.8.pod --- debconf-1.4.51/doc/man/dpkg-preconfigure.fr.8.pod 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/dpkg-preconfigure.fr.8.pod 2005-06-20 09:56:12.000000000 -0400 @@ -36,7 +36,7 @@ l'entrée standard, plutôt que de les avoir en paramètre. C'est généralement utilisé pour faire exécuter dpkg-preconfigure par apt avant que tous les paquets soient installés. Pour ce faire, ajoutez quelque chose comme ceci dans -/etc/apt/apt.confE: +@FINKPREFIX@/etc/apt/apt.confE: // Pre-configure all packages before // they are installed. diff -ruN debconf-1.4.51/doc/man/dpkg-preconfigure.pt_BR.8.pod debconf-1.4.51.new/doc/man/dpkg-preconfigure.pt_BR.8.pod --- debconf-1.4.51/doc/man/dpkg-preconfigure.pt_BR.8.pod 2005-05-13 16:59:22.000000000 -0400 +++ debconf-1.4.51.new/doc/man/dpkg-preconfigure.pt_BR.8.pod 2005-06-20 09:56:35.000000000 -0400 @@ -35,7 +35,7 @@ pacotes a partir d entrada padrão (stdin) ao invés de obtê-los como parâmetros. Tipicamente isto é usado para fazer o apt executar dpkg-preconfigure em todos os pacotes antes que sejam instalados. Para -fazer isso, adicione algo como isso ao /etc/apt/apt.conf : +fazer isso, adicione algo como isso ao @FINKPREFIX@/etc/apt/apt.conf : // Préconfigure todos os pacotes antes // que eles sejam instalados. diff -ruN debconf-1.4.51/dpkg-preconfigure debconf-1.4.51.new/dpkg-preconfigure --- debconf-1.4.51/dpkg-preconfigure 2005-05-17 13:10:05.000000000 -0400 +++ debconf-1.4.51.new/dpkg-preconfigure 2005-06-19 19:37:41.000000000 -0400 @@ -117,7 +117,7 @@ exit(1); } -if (! -x "/usr/bin/apt-extracttemplates") { +if (! -x "@FINKPREFIX@/bin/apt-extracttemplates") { warn gettext("delaying package configuration, since apt-utils is not installed"); exit; } diff -ruN debconf-1.4.51/dpkg-reconfigure debconf-1.4.51.new/dpkg-reconfigure --- debconf-1.4.51/dpkg-reconfigure 2005-06-08 22:59:01.000000000 -0400 +++ debconf-1.4.51.new/dpkg-reconfigure 2005-06-19 19:37:41.000000000 -0400 @@ -71,7 +71,7 @@ =cut -my $infodir="/var/lib/dpkg/info"; +my $infodir="@FINKPREFIX@/var/lib/dpkg/info"; use strict; use Debconf::Db; @@ -235,7 +235,7 @@ my @ret; local $/="\n\n"; - open (STATUS, ") { push @ret, $1 diff -ruN debconf-1.4.51/fix_db.pl debconf-1.4.51.new/fix_db.pl --- debconf-1.4.51/fix_db.pl 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/fix_db.pl 2005-06-19 19:37:41.000000000 -0400 @@ -89,8 +89,8 @@ # templates belonging to all installed packages all over again. # This also means that if any of the stuff above resulted in a necessary # question and template being deleted, it will be reinstated now. -foreach my $templatefile (glob("/var/lib/dpkg/info/*.templates")) { - my ($package) = $templatefile =~ m:/var/lib/dpkg/info/(.*?).templates:; +foreach my $templatefile (glob("@FINKPREFIX@/var/lib/dpkg/info/*.templates")) { + my ($package) = $templatefile =~ m:@FINKPREFIX@/var/lib/dpkg/info/(.*?).templates:; Debconf::Template->load($templatefile, $package); } diff -ruN debconf-1.4.51/frontend debconf-1.4.51.new/frontend --- debconf-1.4.51/frontend 2005-05-17 13:10:05.000000000 -0400 +++ debconf-1.4.51.new/frontend 2005-06-19 19:37:41.000000000 -0400 @@ -35,10 +35,10 @@ if ($ARGV[0]=~m!^.*/(.*?)\.(?:postinst|postrm|prerm)$!) { $package=$1; } -elsif (-e "/var/lib/dpkg/tmp.ci/control") { +elsif (-e "@FINKPREFIX@/var/lib/dpkg/tmp.ci/control") { # The preinst is running, presumably. Now it gets really ugly, because # I have to parse the control file. - open (CONTROL, "< /var/lib/dpkg/tmp.ci/control") + open (CONTROL, "< @FINKPREFIX@/var/lib/dpkg/tmp.ci/control") || die "Debconf: unable to open control file: $!"; while () { if (/^Package: (.*)/) { @@ -77,7 +77,7 @@ unless ($ARGV[0]=~m/(.*)config$/ && trytemplate("${1}templates")) { # Finally, look in debconf lib directory for the base # filename with .templates appended. - unless ($ARGV[0]=~m!^(?:.*/)?(.*)! && trytemplate("/usr/share/debconf/templates/${1}.templates")) { + unless ($ARGV[0]=~m!^(?:.*/)?(.*)! && trytemplate("@FINKPREFIX@/share/debconf/templates/${1}.templates")) { debug developer => "Couldn't find a templates file." } } @@ -93,7 +93,7 @@ # lets you dpkg -i somepackage.deb and have its config script be run first. # # If it is the preinst, everything is in this weird directory deep in -# /var/lib/dpkg. +# @FINKPREFIX@/var/lib/dpkg. if ($ARGV[0] =~/^(.*[.\/])(?:postinst|preinst)$/) { my $base=$1; diff -ruN debconf-1.4.51/po/Makefile debconf-1.4.51.new/po/Makefile --- debconf-1.4.51/po/Makefile 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/po/Makefile 2005-06-20 10:14:42.000000000 -0400 @@ -1,6 +1,6 @@ # List here all source files with translatable strings. POTFILES=$(sort $(shell find ../Debconf -type f -name \*.pm)) \ - ../dpkg-* ../debconf-* ../debconf + ../dpkg-* ../debconf-* ../debconf.tmp POFILES=$(wildcard *.po) MOFILES=$(POFILES:.po=.mo) @@ -10,8 +10,8 @@ install: all for file in $(MOFILES); do \ lang=`echo $$file | sed 's/\.mo//'`; \ - install -d $(prefix)/usr/share/locale/$$lang/LC_MESSAGES/; \ - install -m 0644 $$file $(prefix)/usr/share/locale/$$lang/LC_MESSAGES/debconf.mo; \ + install -d $(prefix)/share/locale/$$lang/LC_MESSAGES/; \ + install -m 0644 $$file $(prefix)/share/locale/$$lang/LC_MESSAGES/debconf.mo; \ done debconf.pot: $(POTFILES) diff -ruN debconf-1.4.51/samples/demo debconf-1.4.51.new/samples/demo --- debconf-1.4.51/samples/demo 2005-05-28 20:18:12.000000000 -0400 +++ debconf-1.4.51.new/samples/demo 2005-06-19 19:37:41.000000000 -0400 @@ -7,7 +7,7 @@ if [ -e confmodule ]; then . confmodule else - . /usr/share/debconf/confmodule + . @FINKPREFIX@/share/debconf/confmodule fi db_version 2.0 diff -ruN debconf-1.4.51/samples/tutorial debconf-1.4.51.new/samples/tutorial --- debconf-1.4.51/samples/tutorial 2005-05-13 16:59:21.000000000 -0400 +++ debconf-1.4.51.new/samples/tutorial 2005-06-19 19:37:41.000000000 -0400 @@ -1,7 +1,7 @@ #!/bin/sh -e # Source debconf library. -. /usr/share/debconf/confmodule +. @FINKPREFIX@/share/debconf/confmodule # Do you like debian? db_input medium foo/like_debian || true diff -ruN debconf-1.4.51/samples/tutorial-back debconf-1.4.51.new/samples/tutorial-back --- debconf-1.4.51/samples/tutorial-back 2005-05-13 16:59:21.000000000 -0400 +++ debconf-1.4.51.new/samples/tutorial-back 2005-06-19 19:37:41.000000000 -0400 @@ -1,7 +1,7 @@ #!/bin/sh -e # Source debconf library. -. /usr/share/debconf/confmodule +. @FINKPREFIX@/share/debconf/confmodule db_version 2.0 # This conf script is capable of backing up diff -ruN debconf-1.4.51/transition_db.pl debconf-1.4.51.new/transition_db.pl --- debconf-1.4.51/transition_db.pl 2005-05-13 16:59:26.000000000 -0400 +++ debconf-1.4.51.new/transition_db.pl 2005-06-19 19:37:41.000000000 -0400 @@ -6,7 +6,7 @@ use Debconf::Question; use Debconf::Template; -my $dir = shift || '/var/lib/debconf'; +my $dir = shift || '@FINKPREFIX@/var/lib/debconf'; Debconf::Db->load;