src/debian/NEWS.Debian -text
src/debian/README.source -text
src/debian/compat -text
-src/debian/dsf-helper/ucf-choices.templates -text
src/debian/dsf-in/db-postgresql.postrm -text
src/debian/dsf-in/plugin-mailman.postrm -text
src/debian/dsf-in/plugin-mailman.preinst -text
+++ /dev/null
-#- beginning of included section from create-random-pw.config
-gen_random_pw () { # Generate a random password
- if [ -c /dev/urandom ]; then # ...using /dev/urandom when possible
- tmp=$(dd if=/dev/urandom count=1 bs=8 2> /dev/null | md5sum | cut -b1-8)
- else # ...or something else if need be.
- # Last I was told, the Hurd had no /dev/urandom
- # (Correct me if it has changed)
- # Suggestions form something more random than $(date) are welcome
- tmp=$(date | md5sum | cut -b1-8)
- fi
- echo $tmp
-}
-#- end of included section from create-random-pw.config
+++ /dev/null
-#- beginning of included section from get-pw-from-debconf.config
-get_pw () { # Use Debconf to get a password
- get_pw__pwname=$1
- get_pw__priority=$2
- get_pw__ok=''
- while [ -z "$get_pw__ok" ] ; do
- db_input ${get_pw__priority} ${get_pw__pwname} || get_pw__retcode=$? || true
- db_input ${get_pw__priority} ${get_pw__pwname}_confirm || true
- db_go
- if [ "$get_pw__retcode" = 30 ] ; then
- get_pw__ok="not-asked"
- else
- db_get ${get_pw__pwname} || true
- get_pw__PW1=$RET
- db_get ${get_pw__pwname}_confirm || true
- get_pw__PW2=$RET
- if [ "$get_pw__PW1" = "$get_pw__PW2" ] ; then
- get_pw__ok="confirmed"
- else
- get_pw__ok="mismatch"
- db_fset ${get_pw__pwname} seen false
- db_fset ${get_pw__pwname}_confirm seen false
- fi
- fi
- done
- case $get_pw__ok in
- not-asked)
- echo "not-asked"
- ;;
- confirmed)
- echo "confirmed"
- ;;
- *)
- echo "SHOULDN'T HAVE HAPPENED"
- exit 1
- ;;
- esac
-}
-#- end of included section from get-pw-from-debconf.config
+++ /dev/null
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# debian-l10n-english@lists.debian.org for advice.
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-Template: @PACKAGE@/ucfchangeprompt
-Type: select
-__Choices: install the new version configured by @PACKAGE@, keep the local version currently installed, show the differences between the versions, show a side-by-side difference between the versions, start a new shell to examine the situation
-Choices-C: install_new, keep_current, diff, sdiff, shell
-Default: install_new
-_Description: What do you want to do about configuration file ${BASENAME}?
- The configuration file ${FILE} needs to be modified by @PACKAGE@,
- whereas it is also a configuration file of the postgresql package.
# Source debconf library.
. /usr/share/debconf/confmodule
-#DSFHELPER:get-pw-from-debconf#
-#DSFHELPER:create-random-pw#
+gen_random_pw () { # Generate a random password
+ if [ -c /dev/urandom ]; then # ...using /dev/urandom when possible
+ tmp=$(dd if=/dev/urandom count=1 bs=8 2> /dev/null | md5sum | cut -b1-8)
+ else # ...or something else if need be.
+ # Last I was told, the Hurd had no /dev/urandom
+ # (Correct me if it has changed)
+ # Suggestions form something more random than $(date) are welcome
+ tmp=$(date | md5sum | cut -b1-8)
+ fi
+ echo $tmp
+}
+
+get_pw () { # Use Debconf to get a password
+ get_pw__pwname=$1
+ get_pw__priority=$2
+ get_pw__ok=''
+ while [ -z "$get_pw__ok" ] ; do
+ db_input ${get_pw__priority} ${get_pw__pwname} || get_pw__retcode=$? || true
+ db_input ${get_pw__priority} ${get_pw__pwname}_confirm || true
+ db_go
+ if [ "$get_pw__retcode" = 30 ] ; then
+ get_pw__ok="not-asked"
+ else
+ db_get ${get_pw__pwname} || true
+ get_pw__PW1=$RET
+ db_get ${get_pw__pwname}_confirm || true
+ get_pw__PW2=$RET
+ if [ "$get_pw__PW1" = "$get_pw__PW2" ] ; then
+ get_pw__ok="confirmed"
+ else
+ get_pw__ok="mismatch"
+ db_fset ${get_pw__pwname} seen false
+ db_fset ${get_pw__pwname}_confirm seen false
+ fi
+ fi
+ done
+ case $get_pw__ok in
+ not-asked)
+ echo "not-asked"
+ ;;
+ confirmed)
+ echo "confirmed"
+ ;;
+ *)
+ echo "SHOULDN'T HAVE HAPPENED"
+ exit 1
+ ;;
+ esac
+}
db_fget @PACKAGE@/shared/admin_password seen || true
if [ "$RET" = "false" ]; then
_Description: Password confirmation:
Please re-type the password for confirmation.
-#DSFHELPER:ucf-choices#
+Template: @PACKAGE@/ucfchangeprompt
+Type: select
+__Choices: install the new version configured by @PACKAGE@, keep the local version currently installed, show the differences between the versions, show a side-by-side difference between the versions, start a new shell to examine the situation
+Choices-C: install_new, keep_current, diff, sdiff, shell
+Default: install_new
+_Description: What do you want to do about configuration file ${BASENAME}?
+ The configuration file ${FILE} needs to be modified by @PACKAGE@,
+ whereas it is also a configuration file of the postgresql package.