package/cryptodev-linux: improve Makefile
[openadk.git] / package / dovecot / Makefile
blob3ba6e7ecbd85f07eddb6ea05f2636e92f82d518a
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:= dovecot
7 PKG_VERSION:= 2.2.12
8 PKG_RELEASE:= 1
9 PKG_HASH:= f3de1cae5665ff202713c1489bc96b4d029760808bf3311d76c173d7f3e38c56
10 PKG_DESCR:= minimal and secure imap server
11 PKG_BUILDDEP:= openssl
12 PKG_DEPENDS:= libopenssl
13 PKG_SECTION:= net/mail
14 PKG_URL:= http://www.dovecot.org/
15 PKG_SITES:= http://www.dovecot.org/releases/2.2/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 include ${ADK_TOPDIR}/mk/package.mk
21 $(eval $(call PKG_template,DOVECOT,dovecot,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 CONFIGURE_ENV+= RPCGEN='' \
24 ignore_signed_size=1 \
25 signed_size_t=no \
26 gmtime_max_time_t=32 \
27 fd_passing=yes \
28 lib_cv_va_copy=yes \
29 lib_cv___va_copy=yes \
30 lib_cv_va_val_copy=yes \
31 mmap_plays_with_write=yes \
32 i_cv_gmtime_max_time_t=31 \
33 i_cv_posix_fallocate_works=no \
34 i_cv_epoll_works=yes \
35 i_cv_signed_time_t=yes \
36 i_cv_mmap_plays_with_write=yes \
37 i_cv_signed_size_t=yes \
38 i_cv_c99_vsnprintf=yes \
39 i_cv_fd_passing=yes
40 CONFIGURE_ARGS+= --with-notify=none \
41 --without-gssapi \
42 --without-pam \
43 --with-ioloop=epoll \
44 --with-moduledir=/usr/lib/dovecot/modules \
45 --with-ssl=openssl
47 dovecot-install:
48 ${INSTALL_DIR} ${IDIR_DOVECOT}/etc
49 ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/sbin
50 ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/libexec/dovecot
51 ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/lib/dovecot/modules
52 ${INSTALL_DATA} ./files/dovecot.conf ${IDIR_DOVECOT}/etc
53 $(CP) ${WRKINST}/usr/lib/dovecot/modules/*.so \
54 ${IDIR_DOVECOT}/usr/lib/dovecot/modules/
55 $(CP) ${WRKINST}/usr/libexec/dovecot/* \
56 ${IDIR_DOVECOT}/usr/libexec/dovecot/
57 $(INSTALL_BIN) ${WRKINST}/usr/sbin/dovecot* \
58 ${IDIR_DOVECOT}/usr/sbin
60 include ${ADK_TOPDIR}/mk/pkg-bottom.mk