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.

42 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../qmailanalog/qmailanalog.conf
  5. # Copyright (C) 2009 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. if [ "$prefix_auto" == 1 ]; then
  15. prefix=opt/qmailanalog
  16. set_confopt
  17. fi
  18. makeopt=
  19. makeinstopt="setup check"
  20. # the author loves to use head -1 and tail -1
  21. # so we borow a gentoo fuction lookalike
  22. #
  23. ht_fix_file() {
  24. for x in auto_home.c.do default.do Makefile ; do
  25. sed -i -e 's,head -,head -n ,g' -e 's,tail -,tail -n ,g' ${x}
  26. done
  27. }
  28. pkg_qmailan_configure() {
  29. echo /$prefix > conf-home
  30. echo $CC > conf-cc
  31. echo $CC > conf-ld
  32. }
  33. hook_add preconf 5 "ht_fix_file"
  34. hook_add premake 5 "pkg_qmailan_configure"