Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= postfix
  5. PKG_VERSION:= 2.8.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b3ff47a38db920fc15bb207f42da53db
  8. PKG_DESCR:= Postfix MTA
  9. PKG_SECTION:= mail
  10. PKG_BUILDDEP:= db
  11. PKG_DEPENDS:= libdb
  12. PKG_URL:= http://www.postfix.org/
  13. PKG_SITES:= http://de.postfix.org/ftpmirror/official/
  14. PKG_HOST_DEPENDS:= !darwin
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,POSTFIX,postfix,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  18. CONFIG_STYLE:= manual
  19. ALL_TARGET:=
  20. INSTALL_STYLE:= manual
  21. postfix-install:
  22. $(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
  23. $(CP) $(WRKBUILD)/conf/* $(IDIR_POSTFIX)/etc/postfix
  24. $(CP) ./files/main.cf $(IDIR_POSTFIX)/etc/postfix
  25. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/sbin
  26. $(CP) $(WRKBUILD)/bin/* $(IDIR_POSTFIX)/usr/sbin
  27. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/libexec/postfix
  28. $(CP) $(WRKBUILD)/libexec/* $(IDIR_POSTFIX)/usr/libexec/postfix
  29. rm $(IDIR_POSTFIX)/usr/libexec/postfix/master.cf
  30. rm $(IDIR_POSTFIX)/usr/libexec/postfix/main.cf
  31. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-script
  32. mv $(IDIR_POSTFIX)/etc/postfix/postfix-script \
  33. $(IDIR_POSTFIX)/usr/libexec/postfix/
  34. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-files
  35. mv $(IDIR_POSTFIX)/etc/postfix/postfix-files \
  36. $(IDIR_POSTFIX)/usr/libexec/postfix/
  37. rm $(IDIR_POSTFIX)/usr/libexec/postfix/post-install
  38. mv $(IDIR_POSTFIX)/etc/postfix/post-install \
  39. $(IDIR_POSTFIX)/usr/libexec/postfix/
  40. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-wrapper
  41. mv $(IDIR_POSTFIX)/etc/postfix/postfix-wrapper \
  42. $(IDIR_POSTFIX)/usr/libexec/postfix/
  43. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postmulti-script
  44. mv $(IDIR_POSTFIX)/etc/postfix/postmulti-script \
  45. $(IDIR_POSTFIX)/usr/libexec/postfix/
  46. chmod 755 $(IDIR_POSTFIX)/usr/libexec/postfix/*
  47. include ${TOPDIR}/mk/pkg-bottom.mk