upg btrfs-progs fakeroot gnutls libsasl

This commit is contained in:
joborun linux 2024-08-16 03:20:05 +03:00
parent bee99b4dc5
commit 64162433dc
15 changed files with 271 additions and 123 deletions

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=btrfs-progs
pkgver=6.10
pkgver=6.10.1
pkgrel=01
pkgdesc='Btrfs filesystem utilities w/o systemd'
makedepends=('asciidoc' 'xmlto' 'python' 'python-setuptools' 'e2fsprogs'
@ -72,9 +72,10 @@ license=('GPL-2.0-only')
validpgpkeys=('F2B41200C54EFB30380C1756C565D5F9D76D583B')
sha256sums=(3382a84e3fcfe1ffdea07a61ab3f4e86665d38fa35f1f34548d5df867423e0df # btrfs-progs-v6.10.tar.xz
0dfcbb37986e6b3ae06b6fe4af95f54c2beb02c184c7bb7d746cf2bc2b381098 # btrfs-progs-v6.10.tar.sign
sha256sums=(25684696bc5b5d07c98f19d4bf7a48b53ab94870ca4c468a68af3df9e2c8a35e # btrfs-progs-v6.10.1.tar.xz
8af0811fffe01e21a987747990348d4efacef27e35a8fdbb09fac17fb017e1e3 # btrfs-progs-v6.10.1.tar.sign
bbe60b35d1b1e2efc1308a8f54f1fdc6808240a81c5f5b4d75321b7ee86e41f4 # initcpio-install-btrfs
35efeee8590d6d60c711ae9cdc918e4841ab61d10cb02359e65e36ebff95ffc5) # initcpio-hook-btrfs
## 2ecfd35f702b2080543d34f96268a9a3b19992298460b7d243e21a55470a5437 btrfs-progs-6.10-01-x86_64.pkg.tar.lz
## 69532ae2032888e8cd35a32b8795c82aa06bbfd9a70b2c6c3afa8fb221c553aa btrfs-progs-6.10.1-01-x86_64.pkg.tar.lz

View file

@ -3,7 +3,7 @@
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=btrfs-progs
pkgver=6.10
pkgver=6.10.1
pkgrel=1
pkgdesc='Btrfs filesystem utilities'
arch=('x86_64')
@ -28,7 +28,7 @@ source=("https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-
install=btrfs-progs.install
options=(!staticlibs)
sha256sums=('SKIP'
'3382a84e3fcfe1ffdea07a61ab3f4e86665d38fa35f1f34548d5df867423e0df'
'25684696bc5b5d07c98f19d4bf7a48b53ab94870ca4c468a68af3df9e2c8a35e'
'bbe60b35d1b1e2efc1308a8f54f1fdc6808240a81c5f5b4d75321b7ee86e41f4'
'35efeee8590d6d60c711ae9cdc918e4841ab61d10cb02359e65e36ebff95ffc5'
'eaa7af92d28bfa8940bb551560fd7be777f9f175292eaa72b5f6ef00fb240252'

View file

@ -8,3 +8,4 @@ python-sphinx
python-typing_extensions
python-sphinx_rtd_theme

View file

@ -6,32 +6,34 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=fakeroot
pkgver=1.35.1
pkgver=1.36
pkgrel=01
pkgdesc='Tool for simulating superuser privileges w/o systemd'
url='https://tracker.debian.org/pkg/fakeroot'
groups=( jobbot )
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=('po4a')
makedepends=(git po4a)
checkdepends=('sharutils')
source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
'0001-Cast-uint8_t-pointers.patch')
#source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
source=("git+https://salsa.debian.org/clint/fakeroot.git#tag=upstream/${pkgver}")
# '0001-Cast-uint8_t-pointers.patch')
prepare() {
cd "${pkgname}-${pkgver}"
cd $pkgname
patch -Np1 < ../0001-Cast-uint8_t-pointers.patch
# patch -Np1 < ../0001-Cast-uint8_t-pointers.patch
autoreconf -fi
}
build() {
cd $pkgname-$pkgver
cd $pkgname
./configure --prefix=/usr \
./configure \
--prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=sysv
make
cd doc
@ -39,12 +41,12 @@ build() {
}
check() {
cd $pkgname-$pkgver
cd $pkgname
make check
}
package() {
cd $pkgname-$pkgver
cd $pkgname
make DESTDIR="$pkgdir" install
@ -59,10 +61,9 @@ package() {
arch=(x86_64)
license=('GPL')
license=('GPL-3.0-or-later')
sha256sums=(6a0de53b2de05277d4e6d4a884eb0de7a8ad467b82c07a6f8f2f6a629e655fdc # fakeroot_1.35.1.orig.tar.gz
a4afc930e4ee49925a31373f1d4f4d986e7554353e9429b64f9423575f4fbbc8) # 0001-Cast-uint8_t-pointers.patch
## 66f023241392bab5f9906c8a40724ad2ca4366ffdecee2c35feebcf059c0dd9d fakeroot-1.35.1-01-x86_64.pkg.tar.lz
sha256sums=('6cf5ddf3fdb4d2ece465e4dc51b4d0b1a265c241bdaf2858f0a1519a9b4e8c63')
## 5fd1d083351f9db9467f84310423cead51ae92bb4adf7d5106778801bf540fee fakeroot-1.36-01-x86_64.pkg.tar.lz

View file

@ -3,35 +3,33 @@
# Contributor: Jochem Kossen <j.kossen@home.nl>
pkgname=fakeroot
pkgver=1.35.1
pkgver=1.36
pkgrel=1
pkgdesc='Tool for simulating superuser privileges'
arch=('x86_64')
license=('GPL')
license=('GPL-3.0-or-later')
url='https://tracker.debian.org/pkg/fakeroot'
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=('systemd' 'po4a')
makedepends=('git' 'systemd' 'po4a')
checkdepends=('sharutils')
source=("https://deb.debian.org/debian/pool/main/f/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz"
'0001-Cast-uint8_t-pointers.patch')
sha256sums=('6a0de53b2de05277d4e6d4a884eb0de7a8ad467b82c07a6f8f2f6a629e655fdc'
'a4afc930e4ee49925a31373f1d4f4d986e7554353e9429b64f9423575f4fbbc8')
source=("git+https://salsa.debian.org/clint/fakeroot.git#tag=upstream/${pkgver}")
sha256sums=('6cf5ddf3fdb4d2ece465e4dc51b4d0b1a265c241bdaf2858f0a1519a9b4e8c63')
prepare() {
cd "${pkgname}-${pkgver}"
cd "${pkgname}"
patch -Np1 < ../0001-Cast-uint8_t-pointers.patch
autoreconf -fi
}
build() {
cd "${pkgname}-${pkgver}"
cd "${pkgname}"
./configure --prefix=/usr \
./configure \
--prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=sysv
make
cd doc
@ -39,13 +37,13 @@ build() {
}
check() {
cd "${pkgname}-${pkgver}"
cd "${pkgname}"
make check
}
package() {
cd "${pkgname}-${pkgver}"
cd "${pkgname}"
make DESTDIR="${pkgdir}" install

View file

@ -1 +1 @@
rm -rf {pkg,src,*gz}
rm -rf {pkg,src,*gz,$(pbde)}

View file

@ -1,4 +1,7 @@
po4a
sharutils
autoconf
git
automake

81
gnutls/MR1866.patch Normal file
View file

@ -0,0 +1,81 @@
From b64e8e1f72a1c41d3df346c17efd49bcd65b1e8b Mon Sep 17 00:00:00 2001
From: Andreas Metzler <ametzler@bebt.de>
Date: Thu, 15 Aug 2024 12:42:56 +0200
Subject: [PATCH 1/2] Also set ENABLE_DSA for tests in cert-tests subdirectory.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
---
tests/cert-tests/Makefile.am | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/cert-tests/Makefile.am b/tests/cert-tests/Makefile.am
index ea5673d37e..5a695dbebc 100644
--- a/tests/cert-tests/Makefile.am
+++ b/tests/cert-tests/Makefile.am
@@ -180,6 +180,12 @@ if WINDOWS
TESTS_ENVIRONMENT += WINDOWS=1
endif
+if ENABLE_DSA
+TESTS_ENVIRONMENT += ENABLE_DSA=1
+else
+TESTS_ENVIRONMENT += ENABLE_DSA=0
+endif
+
if ENABLE_GOST
TESTS_ENVIRONMENT += ENABLE_GOST=1
else
--
GitLab
From f3e8eac0586a19f4dafd89f68006a536b826e65a Mon Sep 17 00:00:00 2001
From: Andreas Metzler <ametzler@bebt.de>
Date: Thu, 15 Aug 2024 16:22:02 +0200
Subject: [PATCH 2/2] revert back to datefudge for "openssl ocsp".
openssl's -attime only changes the verification logic but not the
generation.
Broken by: d1bc7f644422c4d87edfcd9fafe7f292a1a3a6de
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
---
tests/ocsp-tests/ocsp-must-staple-connection.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/ocsp-tests/ocsp-must-staple-connection.sh b/tests/ocsp-tests/ocsp-must-staple-connection.sh
index bfa785e040..94d41ce245 100755
--- a/tests/ocsp-tests/ocsp-must-staple-connection.sh
+++ b/tests/ocsp-tests/ocsp-must-staple-connection.sh
@@ -48,6 +48,8 @@ fi
. "${srcdir}/scripts/common.sh"
+skip_if_no_datefudge
+
eval "${GETPORT}"
# Port for gnutls-serv
TLS_SERVER_PORT=$PORT
@@ -69,7 +71,6 @@ fi
CERTDATE="2016-04-28 00:00:00"
TESTDATE="2016-04-29 00:00:00"
-EPOCHTESTDATE=1461888000
EXP_OCSP_DATE="2016-03-27 00:00:00"
OCSP_PID=""
@@ -129,8 +130,8 @@ cp "${srcdir}/ocsp-tests/certs/ocsp_index.txt.attr" ${ATTRFILE}
# SO_REUSEADDR usage.
PORT=${OCSP_PORT}
launch_bare_server \
- "${OPENSSL}" ocsp -attime "${EPOCHTESTDATE}" \
- -index "${INDEXFILE}" -text \
+ "$FAKETIME" "${TESTDATE}" \
+ "${OPENSSL}" ocsp -index "${INDEXFILE}" -text \
-port "${OCSP_PORT}" \
-rsigner "${srcdir}/ocsp-tests/certs/ocsp-server.pem" \
-rkey "${srcdir}/ocsp-tests/certs/ocsp-server.key" \
--
GitLab

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gnutls
pkgver=3.8.6
pkgver=3.8.7
pkgrel=01
pkgdesc="A library which provides a secure layer over a reliable transport layer w/o zstd "
url="https://www.gnutls.org/"
@ -19,13 +19,17 @@ checkdepends=('net-tools' 'tpm2-tools')
optdepends=('tpm2-tss: support for TPM2 wrapped keys')
backup=(etc/gnutls/config
etc/modules-load.d/gnutls.conf)
source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig}
source=(#https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig}
https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.1.tar.xz{,.sig}
config
gnutls-ktls_disable_keyupdate_test.patch)
gnutls-ktls_disable_keyupdate_test.patch
MR1866.patch)
prepare() {
cd ${pkgname}-${pkgver}
patch -Np1 -i ../gnutls-ktls_disable_keyupdate_test.patch
# fix broken test
patch -Np1 -i ../MR1866.patch
autoreconf -vfi
}
@ -79,13 +83,14 @@ arch=(x86_64)
#license=('GPL3' 'LGPL2.1')
license=('GPL-3.0-or-later AND LGPL-2.1-or-later')
#validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich <zfridric@redhat.com>"
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
#validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich <zfridric@redhat.com>"
sha256sums=(2e1588aae53cb32d43937f1f4eca28febd9c0c7aa1734fc5dd61a7e81e0ebcdd # gnutls-3.8.6.tar.xz
0e4ce7ae73d2f595ab5eb21498c7df37ae97f920a532850f22252aa906060ba1 # gnutls-3.8.6.tar.xz.sig
sha256sums=(9ca0ddaccce28a74fa18d738744190afb3b0daebef74e6ad686bf7bef99abd60 # gnutls-3.8.7.tar.xz
1303aee2243db853463d74fced547b136933d25938b208f5460d08fe623a7caf # gnutls-3.8.7.1.tar.xz.sig
22e614510fe52defe8c233ce3e5ead2205739fd967657ce3176ca121f3c562b5 # config
2a911615739cb327b6dced36b595ea10c89f40bb7274d062dab14a9ecfe89708) # gnutls-ktls_disable_keyupdate_test.patch
2a911615739cb327b6dced36b595ea10c89f40bb7274d062dab14a9ecfe89708 # gnutls-ktls_disable_keyupdate_test.patch
4fe4b334d39eb0a845cda18da1cfdbcbd12ada5fffc9f41d400cee3d2695b509) # MR1866.patch
## faa4aba456002b9301c474e3bd729e2e97ec8a9223cedc51eb852f9896e18955 gnutls-3.8.6-01-x86_64.pkg.tar.lz
## ec04b53238296b8fadc559bce1d8773f975e88b0041beec82050a9981233bf4e gnutls-3.8.7-01-x86_64.pkg.tar.lz

View file

@ -2,7 +2,7 @@
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=gnutls
pkgver=3.8.6
pkgver=3.8.7
pkgrel=1
pkgdesc="A library which provides a secure layer over a reliable transport layer"
arch=('x86_64')
@ -18,19 +18,24 @@ checkdepends=('net-tools' 'tpm2-tools')
optdepends=('tpm2-tss: support for TPM2 wrapped keys')
backup=(etc/gnutls/config
etc/modules-load.d/gnutls.conf)
source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig}
source=(#https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig}
https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.1.tar.xz{,.sig}
config
gnutls-ktls_disable_keyupdate_test.patch)
sha256sums=('2e1588aae53cb32d43937f1f4eca28febd9c0c7aa1734fc5dd61a7e81e0ebcdd'
gnutls-ktls_disable_keyupdate_test.patch
MR1866.patch)
sha256sums=('9ca0ddaccce28a74fa18d738744190afb3b0daebef74e6ad686bf7bef99abd60'
'SKIP'
'22e614510fe52defe8c233ce3e5ead2205739fd967657ce3176ca121f3c562b5'
'2a911615739cb327b6dced36b595ea10c89f40bb7274d062dab14a9ecfe89708')
#validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich <zfridric@redhat.com>"
'2a911615739cb327b6dced36b595ea10c89f40bb7274d062dab14a9ecfe89708'
'4fe4b334d39eb0a845cda18da1cfdbcbd12ada5fffc9f41d400cee3d2695b509')
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
#validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich <zfridric@redhat.com>"
prepare() {
cd ${pkgname}-${pkgver}
patch -Np1 -i ../gnutls-ktls_disable_keyupdate_test.patch
# fix broken test
patch -Np1 -i ../MR1866.patch
autoreconf -vfi
}

View file

@ -1 +1,2 @@
gpg -v --recv-key 7A75A648B3F9220C
#gpg -v --recv-key 7A75A648B3F9220C
gpg --recv-key D605848ED7E69871

View file

@ -13,25 +13,40 @@
_name=cyrus-sasl
pkgname=libsasl
pkgver=2.1.28
pkgrel=04 ## rebuilt against Obarun's updated postgresql
pkgrel=05
pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library w/o systemd"
arch=('x86_64')
url="https://www.cyrusimap.org/sasl/"
depends=(gdbm libgdbm.so glibc openssl)
makedepends=(krb5 libldap mariadb-libs postgresql-libs sqlite)
_url=https://github.com/cyrusimap/cyrus-sasl
depends=(glibc)
makedepends=(gdbm git krb5 libldap mariadb-libs openssl postgresql-libs sqlite)
provides=(libsasl2.so)
# options=(debug) ## uncomment this to produce the debug package
source=(https://github.com/cyrusimap/$_name/releases/download/$_name-$pkgver/$_name-$pkgver.tar.gz{,.sig})
#source=(https://github.com/cyrusimap/$_name/releases/download/$_name-$pkgver/$_name-$pkgver.tar.gz{,.sig})
source=($_name::git+$_url.git?signed#tag=$_name-$pkgver)
prepare() {
cd $_name-$pkgver
local commit
local cherry_picks=(
2d2e97b0eb53fa7f87a3bf1529d8f712dd954480 # fix for CVE-2022-24407
266f0acf7f5e029afbb3e263437039e50cd6c262 # fix issues with time.h detection https://github.com/cyrusimap/cyrus-sasl/issues/859
887dbc0435056ec58ee48c4d803f110ade1e4c39 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
dfaa62392e7caecc6ecf0097b4d73738ec4fc0a8 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
c2bd3afbca57f176d8c650670ce371444bb7fcc0 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
)
cd $_name
for commit in "${cherry_picks[@]}"; do
git cherry-pick -n "$commit"
done
autoreconf -fiv
}
build() {
cd $_name-$pkgver
./configure --prefix=/usr \
cd $_name
./configure \
--prefix=/usr \
--disable-krb4 \
--disable-macos-framework \
--disable-otp \
@ -73,28 +88,34 @@ build() {
}
check() {
make -k check -C $_name-$pkgver
make -k check -C $_name
}
package() {
depends+=(gdbm libgdbm.so openssl libcrypto.so)
local _target
make DESTDIR="$pkgdir" install-pkgconfigDATA -C $_name-$pkgver
make DESTDIR="$pkgdir" install-pkgconfigDATA -C $_name
for _target in include lib sasldb plugins utils; do
make DESTDIR="$pkgdir" install -C $_name-$pkgver/$_target
make DESTDIR="$pkgdir" install -C $_name/$_target
done
install -vDm 644 $_name-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 $_name/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
# remove files provided by extra/cyrus-sasl
rm -fv "$pkgdir"/usr/lib/sasl2/lib{gs2,gssapiv2,ldapdb,sql}.so*
}
#---- license gpg-key sha256sums ----
#---- arch license gpg-key & sha256sums ----
license=('custom')
arch=(x86_64)
license=(BSD-3-Clause-Attribution)
validpgpkeys=(829F339F8C296FE80F409D93E3D7C118C7B9F46A # Partha Susarla <mail@spartha.org>
DEA1999F0CDB1AAEBA001E0DBEE3E3B4D2F06546) # Quanah Gibson-Mount <quanah@fast-mail.org>
sha256sums=(7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c # cyrus-sasl-2.1.28.tar.gz
e6169548f42234eb2b1af9719415016a57116835b8ea494596f52743b49971fd) # cyrus-sasl-2.1.28.tar.gz.sig
sha512sums=('a055876910be34d59c6e1c8891244975d213490ba6aa0924e5f018094f3ef01871f627b076d6a6ad9547f77ad528f0ac20b3c0efd391cac97bb9e024de037271')
b2sums=('c4d417139a81ffb1ade5456ecd14be77bd2e0ff0e59cf818206dc3df78a4d4be1ee5b0988d3a3edbb1542041b9f3b921d855075df5d86b0458b99020192170d1')
sha256sums=(c9c70b96552ce226be66373e5a96235c138862b02a200848e8e0b203cf2ce232) # cyrus-sasl 2.1.28
## 23bca38d2d71f4ea8cc753e267a73b1516a63f032fc0096d517be7fac438671b libsasl-2.1.28-05-x86_64.pkg.tar.lz

View file

@ -9,84 +9,113 @@
_name=cyrus-sasl
pkgname=libsasl
pkgver=2.1.28
pkgrel=3
pkgrel=5
pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library"
arch=(x86_64)
url="https://www.cyrusimap.org/sasl/"
license=(custom)
depends=(gdbm libgdbm.so glibc openssl)
makedepends=(krb5 libldap mariadb-libs postgresql-libs sqlite)
_url=https://github.com/cyrusimap/cyrus-sasl
license=(BSD-3-Clause-Attribution)
depends=(glibc)
makedepends=(
gdbm
git
krb5
libldap
mariadb-libs
openssl
postgresql-libs
sqlite
)
provides=(libsasl2.so)
options=(debug)
source=(https://github.com/cyrusimap/$_name/releases/download/$_name-$pkgver/$_name-$pkgver.tar.gz{,.sig})
sha512sums=('db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78'
'SKIP')
b2sums=('6cca8c26cebb9c2ee5d539c43797d30b6309a476ec4233225789978e1d7315c4ea5d2abbc7f5464be0f3c0de5fd9212706b43fbc92f40b76cd0b1013cc00f823'
'SKIP')
source=(
$_name::git+$_url.git?signed#tag=$_name-$pkgver
)
sha512sums=('a055876910be34d59c6e1c8891244975d213490ba6aa0924e5f018094f3ef01871f627b076d6a6ad9547f77ad528f0ac20b3c0efd391cac97bb9e024de037271')
b2sums=('c4d417139a81ffb1ade5456ecd14be77bd2e0ff0e59cf818206dc3df78a4d4be1ee5b0988d3a3edbb1542041b9f3b921d855075df5d86b0458b99020192170d1')
validpgpkeys=(
'829F339F8C296FE80F409D93E3D7C118C7B9F46A' # Partha Susarla <mail@spartha.org>
'DEA1999F0CDB1AAEBA001E0DBEE3E3B4D2F06546' # Quanah Gibson-Mount <quanah@fast-mail.org>
)
prepare() {
cd $_name-$pkgver
local commit
local cherry_picks=(
2d2e97b0eb53fa7f87a3bf1529d8f712dd954480 # fix for CVE-2022-24407
266f0acf7f5e029afbb3e263437039e50cd6c262 # fix issues with time.h detection https://github.com/cyrusimap/cyrus-sasl/issues/859
887dbc0435056ec58ee48c4d803f110ade1e4c39 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
dfaa62392e7caecc6ecf0097b4d73738ec4fc0a8 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
c2bd3afbca57f176d8c650670ce371444bb7fcc0 # openssl 3.0 support: https://github.com/cyrusimap/cyrus-sasl/pull/653
)
cd $_name
for commit in "${cherry_picks[@]}"; do
git cherry-pick -n "$commit"
done
autoreconf -fiv
}
build() {
cd $_name-$pkgver
./configure --prefix=/usr \
--disable-krb4 \
--disable-macos-framework \
--disable-otp \
--disable-passdss \
--disable-srp \
--disable-srp-setpass \
--disable-static \
--enable-alwaystrue \
--enable-anon \
--enable-auth-sasldb \
--enable-checkapop \
--enable-cram \
--enable-digest \
--enable-gssapi \
--enable-ldapdb \
--enable-login \
--enable-ntlm \
--enable-plain \
--enable-shared \
--enable-sql \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--sbin=/usr/bin \
--sysconfdir=/etc \
--with-dblib=gdbm \
--with-devrandom=/dev/urandom \
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
--with-ldap \
--with-mysql=/usr \
--with-pam \
--with-pgsql=/usr/lib \
--with-saslauthd=/var/run/saslauthd \
--with-sqlite3=/usr/lib
local configure_options=(
--disable-krb4
--disable-macos-framework
--disable-otp
--disable-passdss
--disable-srp
--disable-srp-setpass
--disable-static
--enable-alwaystrue
--enable-anon
--enable-auth-sasldb
--enable-checkapop
--enable-cram
--enable-digest
--enable-gssapi
--enable-ldapdb
--enable-login
--enable-ntlm
--enable-plain
--enable-shared
--enable-sql
--infodir=/usr/share/info
--mandir=/usr/share/man
--prefix=/usr
--sbin=/usr/bin
--sysconfdir=/etc
--with-dblib=gdbm
--with-devrandom=/dev/urandom
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
--with-ldap
--with-mysql=/usr
--with-pam
--with-pgsql=/usr/lib
--with-saslauthd=/var/run/saslauthd
--with-sqlite3=/usr/lib
)
cd $_name
./configure "${configure_options[@]}"
# prevent excessive overlinking by libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
make -k check -C $_name-$pkgver
make -k check -C $_name
}
package() {
depends+=(
gdbm libgdbm.so
openssl libcrypto.so
)
local _target
make DESTDIR="$pkgdir" install-pkgconfigDATA -C $_name-$pkgver
make DESTDIR="$pkgdir" install-pkgconfigDATA -C $_name
for _target in include lib sasldb plugins utils; do
make DESTDIR="$pkgdir" install -C $_name-$pkgver/$_target
make DESTDIR="$pkgdir" install -C $_name/$_target
done
install -vDm 644 $_name-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 $_name/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
# remove files provided by extra/cyrus-sasl
rm -fv "$pkgdir"/usr/lib/sasl2/lib{gs2,gssapiv2,ldapdb,sql}.so*
}

View file

@ -1 +1 @@
rm -rf {src,pkg,*tar.gz*}
rm -rf {src,pkg,*tar.gz*,cyrus-sasl}

View file

@ -6,3 +6,5 @@ gettext
git