1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mailman/mailman.conf
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 # Mailman wants its own directory with the proper group rights.
20 # Make sure mailman uses the var prefix.
21 var_append extraconfopt " " "--with-var-prefix=$localstatedir"
23 # Make sure Python is installed.
25 var_append extraconfopt " " "--with-python=$(pkgprefix bindir python)/python"
27 # The group id for the http server is needed. Currently we have
28 # it hardcoded, however when mnemoc has his .tail stuff done
29 # this should no longer be hardcoded.
30 var_append extraconfopt " " "--with-cgi-gid=http"
33 # Make sure the prefix directory has the proper access rights.
34 chgrp mailman $root/$prefix
35 chmod a+rx,g+ws $root/$prefix
37 # Also ensure the state dir has the proper access rights.
38 chgrp mailman $localstatedir
39 chmod a+rx,g+ws $localstatedir
42 mailman_postinstall() {
43 # Have mailman check the permissions and correct them
45 ( cd $root/$prefix; bin/check_perms -f )
48 hook_add preconf 5 "mailman_preconf"
49 hook_add postinstall 5 "mailman_postinstall"