OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mailman/mailman.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # Mailman wants its own directory with the proper group rights.
  16. prefix=opt/mailman
  17. set_confopt
  18. # Make sure mailman uses the var prefix.
  19. var_append extraconfopt " " "--with-var-prefix=$localstatedir"
  20. # Make sure Python is installed.
  21. pkgprefix -t python
  22. var_append extraconfopt " " "--with-python=$(pkgprefix bindir python)/python"
  23. # The group id for the http server is needed. Currently we have
  24. # it hardcoded, however when mnemoc has his .tail stuff done
  25. # this should no longer be hardcoded.
  26. var_append extraconfopt " " "--with-cgi-gid=http"
  27. mailman_preconf() {
  28. # Make sure the prefix directory has the proper access rights.
  29. chgrp mailman $root/$prefix
  30. chmod a+rx,g+ws $root/$prefix
  31. # Also ensure the state dir has the proper access rights.
  32. chgrp mailman $localstatedir
  33. chmod a+rx,g+ws $localstatedir
  34. }
  35. mailman_postinstall() {
  36. # Have mailman check the permissions and correct them
  37. # if necessary.
  38. ( cd $root/$prefix; bin/check_perms -f )
  39. }
  40. hook_add preconf 5 "mailman_preconf"
  41. hook_add postinstall 5 "mailman_postinstall"