Browse Source

Add hidden debconf question popularity-contest/submiturls to

support preseeding to the submission URL. (Closes: #384144)
suites/ascii
Petter Reinholdtsen 16 years ago
parent
commit
a4ccd4756f
  1. 8
      README
  2. 2
      debian/changelog
  3. 7
      debian/postinst
  4. 6
      debian/templates

8
README

@ -103,6 +103,14 @@ separate popcon installations at Fink, http://fink.opendarwin.org/popcon/
and Ubuntu, http://popcon.ubuntu.com, receiving information about the Ubuntu
users. We are sure there are others.
INSTALLATION PRESEEDING
=======================
The package support preseeding during installation to change the URL
used to submit reports. The template name is
'popularity-contest/submiturls', and it expect one or more space
separated URLs to use when submitting.
QUESTIONS ?
===========

2
debian/changelog

@ -32,6 +32,8 @@ popularity-contest (1.34) UNRELEASED; urgency=low
* Update standards-version from 3.6.2 to 3.7.2. No changes needed.
* Add Build-Depends with the same dependencies as
Build-Depends-Indep, to keep lintian happy.
* Add hidden debconf question popularity-contest/submiturls to
support preseeding to the submission URL. (Closes: #384144)
* Translations
- Updated Italian (it) by Davide Viti.
- Updated Tagalog (tl) by Eric Pareja.

7
debian/postinst

@ -51,6 +51,13 @@ generate_conffile() {
PARTICIPATE="$PARTICIPATE"
USEHTTP="yes"
EOF
# preseeding is only allowed on first time install
db_get popularity-contest/submiturls || true
if [ -n "$RET" ] ; then
echo "SUBMITRULS=\"$RET\"" >> $conffile
fi
# Make sure user nobody can read the file.
chmod a+r $conffile
}

6
debian/templates

@ -13,3 +13,9 @@ _Description: Participate in the package usage survey?
.
This choice can be later modified by running "dpkg-reconfigure
popularity-contest".
Template: popularity-contest/submiturls
Type: string
Description: for internal use
Preseed this during installation to replace the URL used for
submitting reports.

Loading…
Cancel
Save