Files
haikuports/net-mail/dovecot/dovecot-2.3.21.recipe
2023-09-29 10:46:22 +00:00

88 lines
2.2 KiB
Bash

SUMMARY="An open source IMAP and POP3 email 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://dovecot.org/"
COPYRIGHT="2002-2016 Timo Sirainen"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://dovecot.org/releases/2.3/dovecot-$portVersion.tar.gz"
CHECKSUM_SHA256="05b11093a71c237c2ef309ad587510721cc93bbee6828251549fc1586c36502d"
PATCHES="dovecot-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
GLOBAL_WRITABLE_FILES="
settings/dovecot/README auto-merge
"
USER_SETTINGS_FILES="
settings/dovecot directory manual
"
PROVIDES="
dovecot$secondaryArchSuffix = $portVersion
cmd:doveadm$secondaryArchSuffix = $portVersion
cmd:doveconf$secondaryArchSuffix = $portVersion
cmd:dovecot$secondaryArchSuffix = $portVersion
cmd:dovecot_sysreport$secondaryArchSuffix = $portVersion
cmd:dsync$secondaryArchSuffix = $portVersion
lib:libdovecot$secondaryArchSuffix = $libVersionCompat
lib:libdovecot_storage$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:awk
cmd:diff
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:gettext
cmd:ld$secondaryArchSuffix
cmd:libtool$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LDFLAGS="-lnetwork"
autoreconf -fi
CFLAGS=-D_BSD_SOURCE runConfigure ./configure \
--libexecdir=$libDir/libexec \
--with-ssl=openssl \
--disable-hardening \
--disable-static
make
}
INSTALL()
{
make install
# remove libtool files
rm -f $libDir/dovecot/{auth/*.la,doveadm/*.la,old-stats/*.la,*.la}
}
TEST()
{
make check
}