From 8fd2bca1a55154e66771debad1726f746afc05d3 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 13 Apr 2023 11:11:39 +0200 Subject: [PATCH] dovecot, disable static libraries, remove libtool files (#8359) --- net-mail/dovecot/dovecot-2.3.11.3.recipe | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/net-mail/dovecot/dovecot-2.3.11.3.recipe b/net-mail/dovecot/dovecot-2.3.11.3.recipe index 276d8e04e..56c15928c 100644 --- a/net-mail/dovecot/dovecot-2.3.11.3.recipe +++ b/net-mail/dovecot/dovecot-2.3.11.3.recipe @@ -7,7 +7,7 @@ uses very little memory." HOMEPAGE="https://dovecot.org/" COPYRIGHT="2002-2016 Timo Sirainen" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://dovecot.org/releases/2.3/dovecot-$portVersion.tar.gz" CHECKSUM_SHA256="d3d9ea9010277f57eb5b9f4166a5d2ba539b172bd6d5a2b2529a6db524baafdc" PATCHES="dovecot-$portVersion.patchset" @@ -15,6 +15,9 @@ 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 " @@ -29,8 +32,8 @@ PROVIDES=" cmd:dovecot$secondaryArchSuffix = $portVersion cmd:dovecot_sysreport$secondaryArchSuffix = $portVersion cmd:dsync$secondaryArchSuffix = $portVersion - lib:libdovecot$secondaryArchSuffix = 0.0.0 - lib:libdovecot_storage$secondaryArchSuffix = 0.0.0 + lib:libdovecot$secondaryArchSuffix = $libVersionCompat + lib:libdovecot_storage$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix @@ -63,12 +66,17 @@ BUILD() export LDFLAGS="-lnetwork" autoreconf -fi CFLAGS=-D_BSD_SOURCE runConfigure ./configure \ - --libexecdir=$libDir/libexec --with-ssl=openssl \ - --disable-hardening + --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} }