Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.10.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 109e753aecafe487207b425dd46e6ee9
  8. PKG_DESCR:= Postfix MTA
  9. PKG_SECTION:= mail
  10. PKG_BUILDDEP:= tinycdb
  11. PKG_URL:= http://www.postfix.org/
  12. PKG_SITES:= http://de.postfix.org/ftpmirror/official/
  13. PKG_HOST_DEPENDS:= !darwin
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,POSTFIX,postfix,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  17. CONFIG_STYLE:= manual
  18. ALL_TARGET:=
  19. INSTALL_STYLE:= manual
  20. do-configure:
  21. (cd $(WRKBUILD) && make -f Makefile.init makefiles "CCARGS=-DNO_PCRE -DNO_NIS -DNO_DB -DHAS_CDB -I$(STAGING_DIR)/usr/include" "AUXLIBS=$(STAGING_DIR)/usr/lib/libcdb.a")
  22. postfix-install:
  23. $(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
  24. $(CP) $(WRKBUILD)/conf/* $(IDIR_POSTFIX)/etc/postfix
  25. $(CP) ./files/main.cf $(IDIR_POSTFIX)/etc/postfix
  26. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/sbin
  27. $(CP) $(WRKBUILD)/bin/* $(IDIR_POSTFIX)/usr/sbin
  28. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/libexec/postfix
  29. $(CP) $(WRKBUILD)/libexec/* $(IDIR_POSTFIX)/usr/libexec/postfix
  30. rm $(IDIR_POSTFIX)/usr/libexec/postfix/master.cf
  31. rm $(IDIR_POSTFIX)/usr/libexec/postfix/main.cf
  32. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-script
  33. mv $(IDIR_POSTFIX)/etc/postfix/postfix-script \
  34. $(IDIR_POSTFIX)/usr/libexec/postfix/
  35. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-files
  36. mv $(IDIR_POSTFIX)/etc/postfix/postfix-files \
  37. $(IDIR_POSTFIX)/usr/libexec/postfix/
  38. rm $(IDIR_POSTFIX)/usr/libexec/postfix/post-install
  39. mv $(IDIR_POSTFIX)/etc/postfix/post-install \
  40. $(IDIR_POSTFIX)/usr/libexec/postfix/
  41. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-wrapper
  42. mv $(IDIR_POSTFIX)/etc/postfix/postfix-wrapper \
  43. $(IDIR_POSTFIX)/usr/libexec/postfix/
  44. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postmulti-script
  45. mv $(IDIR_POSTFIX)/etc/postfix/postmulti-script \
  46. $(IDIR_POSTFIX)/usr/libexec/postfix/
  47. chmod 755 $(IDIR_POSTFIX)/usr/libexec/postfix/*
  48. include ${TOPDIR}/mk/pkg-bottom.mk