aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-14 09:04:08 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-21 23:19:55 +0000
commitcefc8415715c247a8d424a46a05ccb9be8ca091d (patch)
treeae4fb659a4b0f86160fba0625b864726c0d9bc84
parent6eacc73de2ac75910a69b95801484135518e1a9e (diff)
downloadaports-cefc8415715c247a8d424a46a05ccb9be8ca091d.tar.gz
aports-cefc8415715c247a8d424a46a05ccb9be8ca091d.tar.bz2
aports-cefc8415715c247a8d424a46a05ccb9be8ca091d.tar.xz
main/postfix: disable berkeleydb
Co-authored-by: Duncan Bellamy <dunk@denkimushi.com>
-rw-r--r--main/postfix/APKBUILD15
-rw-r--r--main/postfix/lmdb-default.patch27
2 files changed, 36 insertions, 6 deletions
diff --git a/main/postfix/APKBUILD b/main/postfix/APKBUILD
index b4a0dca3f3..75b17373d7 100644
--- a/main/postfix/APKBUILD
+++ b/main/postfix/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postfix
pkgver=3.5.7
-pkgrel=1
+pkgrel=2
pkgdesc="Secure and fast drop-in replacement for Sendmail (MTA)"
url="http://www.postfix.org/"
arch="all"
@@ -12,7 +12,6 @@ depends="musl>=1.1.24-r7"
makedepends="
coreutils
cyrus-sasl-dev
- db-dev
linux-headers
lmdb-dev
m4
@@ -30,7 +29,6 @@ subpackages="
$pkgname-doc
$pkgname-openrc
$pkgname-ldap:_mv_dict
- $pkgname-lmdb:_mv_dict
$pkgname-mysql:_mv_dict
$pkgname-pcre:_mv_dict
$pkgname-pgsql:_mv_dict
@@ -45,6 +43,7 @@ source="https://de.postfix.org/ftpmirror/official/postfix-$pkgver.tar.gz
$pkgname.initd
postfix-musl-2.patch
postfix-install.patch
+ lmdb-default.patch
"
_shared_libs() {
@@ -66,6 +65,9 @@ build() {
local ccargs="-DHAS_SHL_LOAD"
local auxlibs="$LDFLAGS"
+ # berkeley-db
+ ccargs="$ccargs -DNO_DB"
+
# pcre
ccargs="$ccargs -DHAS_PCRE $(pkg-config --cflags libpcre)"
@@ -92,8 +94,8 @@ build() {
# sqlite
ccargs="$ccargs -DHAS_SQLITE $(pkg-config --cflags sqlite3)"
- # lmdb
- ccargs="$ccargs -DHAS_LMDB $(pkg-config --cflags lmdb)"
+ # lmdb (make it default)
+ ccargs="$ccargs -DHAS_LMDB $(pkg-config --cflags lmdb) -DDEF_DB_TYPE=\\\"lmdb\\\""
#
# AUXLIBS_CDB="$cdb_libs" \
@@ -198,4 +200,5 @@ stone() {
sha512sums="7828210bc9d3eadfd47f1121ae2f7ca057e03391048e8e79fbf2f96f6677f5e17145f5869d6f5c0b735ecd8584f420df7ba4922f54686f1a5be663bff257f2c2 postfix-3.5.7.tar.gz
2752e69c4e1857bdcf29444ffb458bca818bc60b9c77c20823c5f5b87c36cb5e0f3217a625a7fe5788d5bfcef7570a1f2149e1233fcd23ccf7ee14190aff47a2 postfix.initd
7b9d658a6130295b0e0bcf19db064d9daf21a783ef865d83d62eb09176380b7ee5e6a73f6c5ad82f3c1eded1f0c351ed55b203dfffe32c0071e5bb2b16edfeb5 postfix-musl-2.patch
-25cd34f23ca909d4e33aaf3239d1e397260abc7796d9a4456dee4f005682fd3a58aab8106126e5218c95bdddae415a3ef7e2223cd3b0d7b1e2bd76158bb7eaf8 postfix-install.patch"
+25cd34f23ca909d4e33aaf3239d1e397260abc7796d9a4456dee4f005682fd3a58aab8106126e5218c95bdddae415a3ef7e2223cd3b0d7b1e2bd76158bb7eaf8 postfix-install.patch
+0769e2e503486f8dd6fa21f2c534ad7df7a9f1bb57dde2f0ad61863a3e615d0a6dc18132b27796eb28cd81afb2b4e97c65c9d490a391f835aa3b7b18e74252c5 lmdb-default.patch"
diff --git a/main/postfix/lmdb-default.patch b/main/postfix/lmdb-default.patch
new file mode 100644
index 0000000000..949b2a8406
--- /dev/null
+++ b/main/postfix/lmdb-default.patch
@@ -0,0 +1,27 @@
+Upstream: Not applicable
+Reason: Make LMDB the default configuration
+
+Author: Duncan Bellamy <dunk@denkimushi.com>
+
+diff --git a/src/global/mail_params.h b/src/global/mail_params.h
+index a6119f1..9639c60 100644
+--- a/src/global/mail_params.h
++++ b/src/global/mail_params.h
+@@ -2826,7 +2826,7 @@ extern int var_vrfy_pend_limit;
+ extern char *var_verify_service;
+
+ #define VAR_VERIFY_MAP "address_verify_map"
+-#define DEF_VERIFY_MAP "btree:$data_directory/verify_cache"
++#define DEF_VERIFY_MAP "lmdb:$data_directory/verify_cache"
+ extern char *var_verify_map;
+
+ #define VAR_VERIFY_POS_EXP "address_verify_positive_expire_time"
+@@ -3594,7 +3594,7 @@ extern char *var_multi_cntrl_cmds;
+ * postscreen(8)
+ */
+ #define VAR_PSC_CACHE_MAP "postscreen_cache_map"
+-#define DEF_PSC_CACHE_MAP "btree:$data_directory/postscreen_cache"
++#define DEF_PSC_CACHE_MAP "lmdb:$data_directory/postscreen_cache"
+ extern char *var_psc_cache_map;
+
+ #define VAR_SMTPD_SERVICE "smtpd_service_name"