]> git.donarmstrong.com Git - roundcube.git/blob - debian/patches/debianize_password_plugin.patch
3b23ab23acde5430daf8de1e14559657e6022add
[roundcube.git] / debian / patches / debianize_password_plugin.patch
1 Description: specify Debian path and group names in password plugin
2 Forwarded: not-needed
3 Author: Jérémy Bobbio <lunar@debian.org>
4
5 diff --git a/plugins/password/README b/plugins/password/README
6 index 81e4f1e..bdb8264 100644
7 --- a/plugins/password/README
8 +++ b/plugins/password/README
9 @@ -133,7 +133,8 @@
10  
11   Installation:
12  
13 - Change into the drivers directory. Edit the chgsaslpasswd.c file as is
14 + Change into the drivers directory. Copy and edit
15 + /usr/share/roundcube-plugins/examples/chgsaslpasswd.c as is
16   documented within it.
17  
18   Compile the wrapper program:
19 @@ -200,7 +201,8 @@
20   ----------------------------
21  
22   As in sasl driver this one allows to change password using shell
23 - utility called "virtualmin". See drivers/chgvirtualminpasswd.c for
24 + utility called "virtualmin". See
25 + /usr/share/doc/roundcube-plugins/examples/chgvirtualminpasswd.c for
26   installation instructions. See also config.inc.php.dist file.
27  
28  
29 @@ -225,8 +227,9 @@
30   Driver that adds functionality to change the systems user password via 
31   the 'chpasswd' command. See config.inc.php.dist file.
32  
33 - Attached wrapper script (chpass-wrapper.py) restricts password changes
34 - to uids >= 1000 and can deny requests based on a blacklist.
35 + Attached wrapper script
36 + (/usr/share/doc/roundcube-plugins/examples/chpass-wrapper.py) restricts
37 + password changes to uids >= 1000 and can deny requests based on a blacklist.
38  
39  
40   2.12.  LDAP - no PEAR (ldap_simple)
41 diff --git a/plugins/password/drivers/chgsaslpasswd.c b/plugins/password/drivers/chgsaslpasswd.c
42 index bcdcb2e..2c3bbf9 100644
43 --- a/plugins/password/drivers/chgsaslpasswd.c
44 +++ b/plugins/password/drivers/chgsaslpasswd.c
45 @@ -8,7 +8,7 @@
46  
47  /* INSTALLING:
48    gcc -o chgsaslpasswd chgsaslpasswd.c
49 -  chown cyrus.apache chgsaslpasswd
50 +  chown cyrus:www-data chgsaslpasswd
51    strip chgsaslpasswd
52    chmod 4550 chgsaslpasswd
53  */
54 diff --git a/plugins/password/drivers/chgvirtualminpasswd.c b/plugins/password/drivers/chgvirtualminpasswd.c
55 index 4e2299c..12989c6 100644
56 --- a/plugins/password/drivers/chgvirtualminpasswd.c
57 +++ b/plugins/password/drivers/chgvirtualminpasswd.c
58 @@ -7,7 +7,7 @@
59  
60  /* INSTALLING:
61    gcc -o chgvirtualminpasswd chgvirtualminpasswd.c
62 -  chown root.apache chgvirtualminpasswd
63 +  chown root:www-data chgvirtualminpasswd
64    strip chgvirtualminpasswd
65    chmod 4550 chgvirtualminpasswd
66  */