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.

52 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../vmailmgr/vmailmgr.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. if [ "$prefix_auto" = 1 ]; then
  15. prefix="opt/vmailmgr"
  16. set_confopt
  17. fi
  18. # fix sysconfidir
  19. #
  20. hook_add preconf 3 'sed -i -e "s,/etc/vmailmgr,$sysconfdir,g" lib/config/configrc.h'
  21. # i patch .am files :(
  22. #
  23. autogen=1
  24. hook_add preconf 5 'cp -v $root/usr/share/automake-1.7/depcomp .'
  25. # rename types.py to something not reserved
  26. #
  27. hook_add preconf 5 'mv -v python/types.py python/vmmtypes.py'
  28. # filepipe
  29. #
  30. pkg_vmailmgr_filepipe() {
  31. mkdir -p filepipe
  32. bunzip2 -c `match_source_file -p filepipe` > filepipe/filepipe.c
  33. gcc -o filepipe/filepipe filepipe/filepipe.c
  34. }
  35. hook_add inmake 5 'pkg_vmailmgr_filepipe'
  36. hook_add postmake 5 'cp -v filepipe/filepipe $root/usr/bin/'
  37. # procmailrc sample
  38. pkg_vmailmgr_procmailsample() {
  39. echo "$docdir/vmailmgr.procmailrc"
  40. sed -e "s,@BINDIR@,$bindir,g" \
  41. -e "s,@QMAILBINDIR@,/var/qmail/bin,g" \
  42. $confdir/vmailmgr.procmailrc > $docdir/vmailmgr.procmailrc
  43. # i'll set separators here too :)
  44. echo -n @ > $sysconfdir/separators
  45. }
  46. hook_add postdoc 5 'pkg_vmailmgr_procmailsample'