summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2018-07-03 22:23:28 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2018-07-09 20:43:18 +0200
commit1664d7b36f4d7e8b0c446568a95ac697e71a795a (patch)
treee0705197fb25ac2f6979720e11fd0328d9b0f036
parentf2e96c82856ff6165353a381d85c13b01fb70ec6 (diff)
downloadnet-1664d7b36f4d7e8b0c446568a95ac697e71a795a.tar.gz
net-1664d7b36f4d7e8b0c446568a95ac697e71a795a.tar.xz
dovecot: Version bump to 2.3.2.1
-rw-r--r--packages/net-mail/dovecot/dovecot-2.3.2.1.exheres-0178
1 files changed, 178 insertions, 0 deletions
diff --git a/packages/net-mail/dovecot/dovecot-2.3.2.1.exheres-0 b/packages/net-mail/dovecot/dovecot-2.3.2.1.exheres-0
new file mode 100644
index 0000000..3bc7886
--- /dev/null
+++ b/packages/net-mail/dovecot/dovecot-2.3.2.1.exheres-0
@@ -0,0 +1,178 @@
+# Copyright 2008 Fernando J. Pereda
+# Copyright 2009, 2010 Daniel Mierswa <impulze@impulze.org>
+# Copyright 2012-2016 Wulf C. Krueger <philantrop@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+# edo sed ... src/lib-program-client/Makefile.am
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
+require systemd-service
+
+case "$(ever range 4)" in
+ rc*|beta*|alpha*) MYPV="$(ever range 1-3).$(ever range 4)" ;;
+ *) MYPV="${PV}" ;;
+esac
+
+case "$(ever range 4)" in
+ rc*) DOWNLOAD_PATH="rc" ;;
+ beta*) DOWNLOAD_PATH="beta" ;;
+ alpha*) DOWNLOAD_PATH="alpha" ;;
+esac
+
+SUMMARY="Fast, secure, IMAP/POP server"
+DESCRIPTION="
+Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like systems,
+written with security primarily in mind. Dovecot is an excellent choice for both
+small and large installations. It's fast, simple to set up, requires no special
+administration and it uses very little memory.
+"
+HOMEPAGE="https://www.${PN}.org"
+DOWNLOADS="${HOMEPAGE}/releases/$(ever range 1-2)/${DOWNLOAD_PATH}/${PN}-${MYPV}.tar.gz"
+BUGS_TO="philantrop@exherbo.org"
+LICENCES="LGPL-2.1 MIT BSD-3 public-domain"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="
+ argon2 [[ description = [ Support hashing passwords with Argon2 via libsodium ] ]]
+ caps
+ ldap
+ lucene [[ description = [ Support for full text search with CLucene ] ]]
+ lz4 [[ description = [ Build with LZ4 compression support ] ]]
+ mysql
+ postgresql
+ solr [[ description = [ Apache Solr fast text searching backend ] ]]
+ sqlite
+ tcpd
+ (
+ mysql
+ postgresql
+ sqlite
+ ) [[ description = [ Database backends for dovecot and plugins ] ]]
+
+ ( libc: musl )
+ ( providers: libressl openssl ) [[ number-selected = exactly-one ]]
+"
+
+WORK=${WORKBASE}/${PN}-${MYPV}
+
+DEPENDENCIES="
+ build:
+ app-text/unicode-data
+ virtual/pkg-config
+ build+run:
+ app-arch/xz
+ app-arch/bzip2
+ dev-libs/icu:=
+ sys-libs/pam
+ sys-libs/zlib
+ argon2? ( dev-libs/libsodium )
+ caps? ( sys-libs/libcap )
+ ldap? ( net-directory/openldap )
+ libc:musl? ( dev-libs/libbsd )
+ !libc:musl? ( sys-libs/glibc[>=2.25] [[ note = getrandom ]] )
+ lucene? ( dev-cpp/clucene )
+ lz4? ( app-arch/lz4 )
+ mysql? ( virtual/mysql )
+ postgresql? ( dev-db/postgresql )
+ providers:libressl? ( dev-libs/libressl:= )
+ providers:openssl? ( dev-libs/openssl )
+ solr? (
+ dev-libs/expat
+ net-misc/curl
+ )
+ sqlite? ( dev-db/sqlite:3 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ user/dovecot
+ user/dovenull
+ run:
+ group/dovecot
+ user/dovecot
+ suggestion:
+ net-mail/dovecot-pigeonhole
+ [[ description =
+ [ Sieve plugin for deliver and Managesieve implementation. ]
+ ]]
+"
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ PANDOC=false
+ VALGRIND=no
+ --enable-hardening
+ --localstatedir=/var
+ --with-bzlib
+ --with-docs
+ --with-icu
+ --with-lzma
+ --with-pam
+ --with-rundir=/run/dovecot
+ --with-shadow
+ --with-ssl
+ --with-systemdsystemunitdir="${SYSTEMDSYSTEMUNITDIR}"
+ --with-zlib
+ --without-cassandra
+ --without-lua
+ # broken (?)
+ --without-gssapi
+ --without-nss
+ --without-stemmer
+ --without-textcat
+ # avoid automagic dependencies
+ --without-apparmor
+ --without-cdb
+ --without-vpopmail
+ --without-sia
+)
+
+DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
+ "argon2 sodium"
+ "caps libcap"
+ # Avoid some automagicness with musl[<1.1.20]:
+ # getrandom (glibc[>=2.25]/musl[>=1.1.20], not released yet)
+ # -> arc4random (libbsd) -> /dev/urandom
+ "libc:musl libbsd"
+ ldap
+ lucene
+ lz4
+ mysql
+ "postgresql pgsql"
+ solr
+ sqlite
+ "tcpd libwrap"
+)
+
+src_unpack() {
+ default
+
+ edo cp /usr/share/unicode-data/UnicodeData.txt "${WORK}"/src/lib
+}
+
+src_prepare() {
+ # Disable test which tries to bind to 0.0.0.0@0
+ edo sed \
+ -e '/^test_programs =/,+2s:test-program-client-unix \\:test-program-client-unix:' \
+ -e '/^test_programs =/,+3s:.*test-program-client-net::' \
+ -i src/lib-program-client/Makefile.am
+
+ autotools_src_prepare
+}
+
+src_test() {
+ esandbox allow_net "unix:${WORK}/src/lib-program-client/program-client-test.sock"
+ esandbox allow_net --connect "LOOPBACK@0"
+ default
+ esandbox disallow_net --connect "LOOPBACK@0"
+ esandbox disallow_net "unix:${WORK}/src/lib-program-client/program-client-test.sock"
+}
+
+src_install() {
+ default
+
+ # remove pointless README which just points to /usr/share/doc/*
+ edo rm "${IMAGE}"/etc/dovecot/README
+ edo rmdir "${IMAGE}"/etc/dovecot
+
+ # /etc should be empty, because init.d script won't get installed
+ edo rmdir "${IMAGE}"/etc
+
+ keepdir /usr/$(exhost --target)/lib/dovecot/auth
+}
+