diff -u ecryptfs-utils-73/debian/ecryptfs-utils.install ecryptfs-utils-73/debian/ecryptfs-utils.install --- ecryptfs-utils-73/debian/ecryptfs-utils.install +++ ecryptfs-utils-73/debian/ecryptfs-utils.install @@ -7,0 +8 @@ +../local/ecryptfs-remind-passphrase usr/share/ecryptfs-utils diff -u ecryptfs-utils-73/debian/changelog ecryptfs-utils-73/debian/changelog --- ecryptfs-utils-73/debian/changelog +++ ecryptfs-utils-73/debian/changelog @@ -1,3 +1,18 @@ +ecryptfs-utils (73-0ubuntu3) jaunty; urgency=low + + * Add interactive update-notifier hook for reminding the user to write down + the autogenerated passphrase: (LP: #352307) + - Add debian/local/ecryptfs-remind-passphrase: update-notifier hook, with + German translations. (Unfortunately this package is not gettextized yet, + thus translations have to be added inline). + - debian/ecryptfs-utils.install: Install above into + /usr/share/ecryptfs-utils. + - Add update-notifier-remind-passphrase.dpatch: Create update-notifier + message about recording your passphrase, if it was generated randomly, + and ecryptfs-setup-private is run as root. + + -- Martin Pitt Sun, 05 Apr 2009 12:34:44 -0700 + ecryptfs-utils (73-0ubuntu2) jaunty; urgency=low * src/utils/ecryptfs-setup-private: fix bug in grep when running with LANG only in patch2: unchanged: --- ecryptfs-utils-73.orig/debian/local/ecryptfs-remind-passphrase +++ ecryptfs-utils-73/debian/local/ecryptfs-remind-passphrase @@ -0,0 +1,24 @@ +Name: Record your encryption passphrase +Name-de: Notieren Sie Ihr Verschlüsselungs-Passwort +Priority: High +OnlyAdminUsers: False +DisplayIf: test -e $HOME/.ecryptfs/wrapped-passphrase +Terminal: True +Command: "bash -c 'ecryptfs-unwrap-passphrase $HOME/.ecryptfs/wrapped-passphrase; read -p [Enter]'" +Description: To encrypt your home directory or "Private" folder, a strong + passphrase has been autogenerated. Usually your directory is unlocked + with your user password, but if you ever need to manually recover this + directory, you will need this passphrase. Please print or write it down and + store it in a safe location. + . + You can run the "ecryptfs-unwrap-passphrase" command now to do this. Enter + your user password at the "Passphrase" prompt. +Description-de: Um Ihr Heimat- oder "Private"-Verzeichnis zu verschlüsseln, + wurde automatisch ein starkes Passwort geniert. Normalerweise wird Ihr + Verzeichnis mit Ihrem Benutzerpasswort freigegeben, aber wenn Sie jemals + dieses Verzeichnis manuell wiederherstellen müssen, benötigen Sie dieses + Passwort. Bitte drucken Sie es aus oder schreiben es auf und lagern es an + einem sicheren Ort. + . + Sie können den "ecryptfs-unwrap-passphrase"-Befehl jetzt ausführen lassen. + Geben Sie Ihr Benutzerpasswort bei der "Passphrase"-Aufforderung ein. only in patch2: unchanged: --- ecryptfs-utils-73.orig/debian/patches/update-notifier-remind-passphrase.dpatch +++ ecryptfs-utils-73/debian/patches/update-notifier-remind-passphrase.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## update-notifier-remind-passphrase.dpatch by Martin Pitt +## +## DP: Create update-notifier message about recording your passphrase, if it +## DP: was generated randomly, and ecryptfs-setup-private is run as root (such +## DP: as in the installer). (https://launchpad.net/bugs/352307) +@DPATCH@ +diff -urNad ecryptfs-utils-73~/src/utils/ecryptfs-setup-private ecryptfs-utils-73/src/utils/ecryptfs-setup-private +--- ecryptfs-utils-73~/src/utils/ecryptfs-setup-private 2009-04-03 08:40:36.000000000 -0700 ++++ ecryptfs-utils-73/src/utils/ecryptfs-setup-private 2009-04-05 12:25:46.590714572 -0700 +@@ -103,6 +103,14 @@ + return 0 + } + ++create_update_notifier_message() { ++ if [ -e /usr/share/ecryptfs-utils/ecryptfs-remind-passphrase ] && \ ++ [ -w /var/lib/update-notifier/user.d/ ]; then ++ cp /usr/share/ecryptfs-utils/ecryptfs-remind-passphrase /var/lib/update-notifier/user.d/ecryptfs-remind-passphrase ++ touch /var/lib/update-notifier/dpkg-run-stamp ++ fi ++} ++ + filename_encryption_available && FNEK="--fnek" + + if [ ! -z "$SUDO_USER" ]; then +@@ -325,6 +333,7 @@ + if [ "$RANDOM_MOUNTPASS" = "1" ]; then + echo "YOU SHOULD RECORD THIS MOUNT PASSPHRASE AND STORE IN A SAFE LOCATION:" + echo "$MOUNTPASS" ++ create_update_notifier_message + else + echo "YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IN A SAFE LOCATION:" + fi only in patch2: unchanged: --- ecryptfs-utils-73.orig/debian/patches/00list +++ ecryptfs-utils-73/debian/patches/00list @@ -0,0 +1 @@ +update-notifier-remind-passphrase.dpatch