# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind # URL: http://dovecot.org # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: zlib bzip2 openssl tcp_wrappers libcap name=dovecot version=2.0.7 release=1 source=(http://dovecot.org/releases/2.0/$name-$version.tar.gz \ dovecot-config.patch dovecot) build () { cd $name-$version patch -p1 -i $SRC/$name-config.patch echo "i_cv_epoll_works=no" > config.cache echo "i_cv_inotify_works=no" >> config.cache echo "i_cv_posix_fallocate_works=yes" >> config.cache echo "i_cv_signed_size_t=no" >> config.cache echo "i_cv_gmtime_max_time_t=32" >> config.cache echo "i_cv_signed_time_t=yes" >> config.cache echo "i_cv_mmap_plays_with_write=yes" >> config.cache echo "i_cv_fd_passing=yes" >> config.cache echo "i_cv_c99_vsnprintf=yes" >> config.cache echo "lib_cv_va_copy=yes" >> config.cache echo "lib_cv___va_copy=yes" >> config.cache echo "lib_cv_va_val_copy=yes" >> config.cache ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --with-moduledir=/usr/lib/dovecot/modules \ --with-ssl=openssl \ --with-libwrap \ --cache-file=config.cache sed -i config.h -e '/HAVE_FALLOCATE 1/d' make make DESTDIR=$PKG install cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot rm -r $PKG/usr/share/doc rm $PKG/etc/dovecot/README install -d $PKG/etc/ssl/{certs,keys} touch $PKG/etc/ssl/certs/dovecot.crt touch $PKG/etc/ssl/keys/dovecot.key chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt} install -d -m 0750 $PKG/var/lib/dovecot install -d -m 0755 $PKG/var/run/dovecot install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login }