diff options
author | taca <taca@pkgsrc.org> | 2016-05-26 03:23:38 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2016-05-26 03:23:38 +0000 |
commit | bd723d405b16846d4c35264cde5f71523ff2fac2 (patch) | |
tree | 295fb5000cf531487e69d6460cf47d6994141e36 /mail/roundcube | |
parent | 462e25428590c76d0186a0b25a2869a8976fdb98 (diff) | |
download | pkgsrc-bd723d405b16846d4c35264cde5f71523ff2fac2.tar.gz |
Oops, forgot to add a patch file for NetBSD (and perhaps for *BSD) to
make password plugin work.
Diffstat (limited to 'mail/roundcube')
-rw-r--r-- | mail/roundcube/patches/patch-plugins_password_helpers_passwd-expect | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/roundcube/patches/patch-plugins_password_helpers_passwd-expect b/mail/roundcube/patches/patch-plugins_password_helpers_passwd-expect new file mode 100644 index 00000000000..9ba494b8fdd --- /dev/null +++ b/mail/roundcube/patches/patch-plugins_password_helpers_passwd-expect @@ -0,0 +1,24 @@ +$NetBSD: patch-plugins_password_helpers_passwd-expect,v 1.1 2016/05/26 03:23:38 taca Exp $ + +Make password plugin work on NetBSD (and maybe other *BSD). + +--- plugins/password/helpers/passwd-expect.orig 2016-04-17 16:22:20.000000000 +0000 ++++ plugins/password/helpers/passwd-expect +@@ -49,7 +49,7 @@ set oldpassword_string "((O|o)ld|login|\ + set newpassword_string "(N|n)ew.* (P|p)assword.*" + set badoldpassword_string "(Authentication token manipulation error).*" + set badpassword_string "((passwd|BAD PASSWORD).*|(passwd|Bad:).*\r)" +-set verify_string "((R|r)e-*enter.*(P|p)assword|Retype new( UNIX)? password|(V|v)erification|(V|v)erify|(A|a)gain).*" ++set verify_string "((R|r)e-*enter.*(P|p)assword|Retype (N|n)ew( UNIX)? (P|p)assword|(V|v)erification|(V|v)erify|(A|a)gain).*" + set success_string "((P|p)assword.* changed|successfully)" + set login_string "(((L|l)ogin|(U|u)sername).*)" + set timeout 20 +@@ -251,6 +251,8 @@ expect { + expect { + -re $success_string {sleep .5 + send exit\r} ++ -re $prompt_string { sleep .5 ++ send exit\r} + -re $badpassword_string {puts $err "$expect_out(0,string)" + close $err + exit 1} |