Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.11.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 25fe7dd05f81cc0755131beecee046fd
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  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. do-configure:
  22. (cd $(WRKBUILD) && make -f Makefile.init makefiles "CCARGS=-DNO_PCRE -DNO_NIS -DNO_DB -DHAS_CDB -I$(STAGING_TARGET_DIR)/usr/include" "AUXLIBS=$(STAGING_TARGET_DIR)/usr/lib/libcdb.a")
  23. postfix-install:
  24. $(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
  25. $(CP) $(WRKBUILD)/conf/* $(IDIR_POSTFIX)/etc/postfix
  26. $(CP) ./files/main.cf $(IDIR_POSTFIX)/etc/postfix
  27. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/sbin
  28. $(CP) $(WRKBUILD)/bin/* $(IDIR_POSTFIX)/usr/sbin
  29. $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/libexec/postfix
  30. $(CP) $(WRKBUILD)/libexec/* $(IDIR_POSTFIX)/usr/libexec/postfix
  31. rm $(IDIR_POSTFIX)/usr/libexec/postfix/master.cf
  32. rm $(IDIR_POSTFIX)/usr/libexec/postfix/main.cf
  33. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-script
  34. mv $(IDIR_POSTFIX)/etc/postfix/postfix-script \
  35. $(IDIR_POSTFIX)/usr/libexec/postfix/
  36. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-files
  37. mv $(IDIR_POSTFIX)/etc/postfix/postfix-files \
  38. $(IDIR_POSTFIX)/usr/libexec/postfix/
  39. rm $(IDIR_POSTFIX)/usr/libexec/postfix/post-install
  40. mv $(IDIR_POSTFIX)/etc/postfix/post-install \
  41. $(IDIR_POSTFIX)/usr/libexec/postfix/
  42. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-wrapper
  43. mv $(IDIR_POSTFIX)/etc/postfix/postfix-wrapper \
  44. $(IDIR_POSTFIX)/usr/libexec/postfix/
  45. rm $(IDIR_POSTFIX)/usr/libexec/postfix/postmulti-script
  46. mv $(IDIR_POSTFIX)/etc/postfix/postmulti-script \
  47. $(IDIR_POSTFIX)/usr/libexec/postfix/
  48. chmod 755 $(IDIR_POSTFIX)/usr/libexec/postfix/*
  49. include ${TOPDIR}/mk/pkg-bottom.mk