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.

48 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../qsheff/qsheff.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. prefix=opt/$pkg
  15. set_confopt
  16. sysconfdir=${sysconfdir%/$pkg}
  17. datadir=/var/qsheff
  18. pkgprefix -t qmail
  19. var_append confopt ' ' "--with-qmaildir=/$(pkgprefix qmail)"
  20. var_append confopt ' ' '--with-custom-prog'
  21. var_append confopt ' ' '--enable-subject-tag'
  22. # direct ClamAV support
  23. if pkginstalled clamav; then
  24. var_append confopt ' ' '--with-clamav'
  25. var_append confopt ' ' '--with-clamd-socket=/var/run/clamd'
  26. fi
  27. # patched for QMAILQUEUE ?
  28. if [ "$SDECFG_PKG_QMAIL_LDAP" = '1' -o "$SDECFG_PKG_QMAIL_QUEUE" = '1' ]; then
  29. var_append confopt ' ' '--enable-qq-patch'
  30. fi
  31. hook_add postmake 5 'qsheff_create_var'
  32. qsheff_create_var() {
  33. mkdir -p $root$datadir/{spool,tmp}
  34. mkdir -p $root$datadir/{backup,quarantine}/{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,x}
  35. }
  36. hook_add postmake 5 'qsheff_permissions'
  37. qsheff_permissions() {
  38. chown -v root:21 $root$bindir/qsheff
  39. chmod -v 4511 $root$bindir/qsheff
  40. }