Merge branch 'master' of git+ssh://openadk.org/git/openadk
[openadk.git] / package / postfix / Makefile
blob549a272f8de7fb1968f9b0281dc30c6aec4438dc
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= postfix
7 PKG_VERSION:= 2.11.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= ca1d9d32d5662678dc4e3f700cce82f5d7bed6a614852b17b1a5166936330c38
10 PKG_DESCR:= popular mail transfer agent
11 PKG_SECTION:= net/mail
12 PKG_BUILDDEP:= tinycdb
13 PKG_URL:= http://www.postfix.org/
14 PKG_SITES:= http://de.postfix.org/ftpmirror/official/
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_HOST_DEPENDS:= !darwin
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call PKG_template,POSTFIX,postfix,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 XAKE_FLAGS+= GCC_HONOUR_COPTS=s
25 CONFIG_STYLE:= manual
26 ALL_TARGET:=
27 INSTALL_STYLE:= manual
29 do-configure:
30 (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")
32 postfix-install:
33 $(INSTALL_DIR) $(IDIR_POSTFIX)/etc/postfix
34 $(CP) $(WRKBUILD)/conf/* $(IDIR_POSTFIX)/etc/postfix
35 $(CP) ./files/main.cf $(IDIR_POSTFIX)/etc/postfix
36 $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/sbin
37 $(CP) $(WRKBUILD)/bin/* $(IDIR_POSTFIX)/usr/sbin
38 $(INSTALL_DIR) $(IDIR_POSTFIX)/usr/libexec/postfix
39 $(CP) $(WRKBUILD)/libexec/* $(IDIR_POSTFIX)/usr/libexec/postfix
40 rm $(IDIR_POSTFIX)/usr/libexec/postfix/master.cf
41 rm $(IDIR_POSTFIX)/usr/libexec/postfix/main.cf
42 rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-script
43 mv $(IDIR_POSTFIX)/etc/postfix/postfix-script \
44 $(IDIR_POSTFIX)/usr/libexec/postfix/
45 rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-files
46 mv $(IDIR_POSTFIX)/etc/postfix/postfix-files \
47 $(IDIR_POSTFIX)/usr/libexec/postfix/
48 rm $(IDIR_POSTFIX)/usr/libexec/postfix/post-install
49 mv $(IDIR_POSTFIX)/etc/postfix/post-install \
50 $(IDIR_POSTFIX)/usr/libexec/postfix/
51 rm $(IDIR_POSTFIX)/usr/libexec/postfix/postfix-wrapper
52 mv $(IDIR_POSTFIX)/etc/postfix/postfix-wrapper \
53 $(IDIR_POSTFIX)/usr/libexec/postfix/
54 rm $(IDIR_POSTFIX)/usr/libexec/postfix/postmulti-script
55 mv $(IDIR_POSTFIX)/etc/postfix/postmulti-script \
56 $(IDIR_POSTFIX)/usr/libexec/postfix/
57 chmod 755 $(IDIR_POSTFIX)/usr/libexec/postfix/*
59 include ${ADK_TOPDIR}/mk/pkg-bottom.mk