blob: 8c18d86e07d68888dd4cfc65fa16bd34065e1248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: Edmund Lodewijks <edmund@proteamail.com>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: mutantmonkey <mutantmonkey@gmail.com>
# Update 2025-09-02: This now builds from Snapshots, instead of
# from Release.
_origname=sendmail # libmilter is bundled with the sendmail source
_pkgname=libmilter
pkgname=libmilter-sharedlib
pkgbase="${pkgname}"
pkgver=8.18.1.10
pkgrel=1
pkgdesc='Implementation of the sendmail Mail Filter API'
url='https://www.proofpoint.com/us/sendmail-open-source'
arch=('x86_64')
license=('Sendmail-8.23')
provides=('libmilter')
source=(
"https://ftp.sendmail.org/snapshots/$_origname.$pkgver.tar.gz"{,.sig}
"https://ftp.sendmail.org/mfapi.h.p1"{,.sig}
'site.config.m4'
'Patch01-fd-passing-libmilter.patch'
'Patch02-Allow-setting-local-CFLAGS-devtools-M4-UNIX-defines.patch'
'Patch03-enable-building-shared-library.patch'
'patch-for-linux-sharedlib.patch'
)
# Signing keys sourced from upstream. Current version is signed with the 2025 keys.
# https://www.proofpoint.com/us/products/email-protection/open-source-email-solution
validpgpkeys=(
'8AB063D7A4C5939DA9C01E38C4065A87C71F6844'
'032312C7C0C2B1973D5013180C19D37CB7E6543E'
)
b2sums=('22fe4f3484c3f888b909bebe3ad0dd3d66f8a753e97f668fbc3af90c466aca596112f68e54c45dde73a16ae62deb998b337b12095b2948e4eaef7f88d8d92900'
'SKIP'
'3b0e12a63debe17120145b9230ec67252b74e8baf4d15dbf24473106b68486e92a4d19c9f29bf9f6e3f4eb09c29b6148e9a58c1a0362924108171b7f9e7f03cc'
'SKIP'
'9d601a731d3571ad285e08cfeab7c3c9586aa48158ac7698e4f1345a409d5c6828602de65316918c596a1364b4314ddf49ae075f3e741736d5c6371f11813c56'
'ea2f1811666ce1b2c7532794845de9ec1f1e72d6c58a02c4c5800e93359c1c1cd4a0353fee572c258c378b0fea776d03ba19d794da7ed3295d9432b47ceb2481'
'3ce6d5c4cef02596a7a629d560f92f2b63bbf10b7cae02cf2f4801d90af1b0221ab4ad06d31b6fc693159479ad3758860efa28ab3074ff2537de171a66fc5f90'
'0dabe047d660ea6999e36bd9aaa46f78ff7f500ddebe67f331e34d0c281ad30db601134531b235101f349416a23f6465505ac1a6fbd62fdfdbbaa6e7d75a1f03'
'9a1aed11881d94d79ae2780c761a0a7670eb95de15724b4398cbedde8f06b2067c95610e21354ef9b051d768c326936737b07fcb69f5d1c681cbc791afdc83cf')
prepare() {
cd "$_origname-$pkgver"
patch -p1 -i ../Patch01-fd-passing-libmilter.patch # FS#49421
# Patch for C23+: 'bool' now keyword in C (Patch from Sendmail - License: Sendmail-8.23)
patch -p1 -i ../mfapi.h.p1
# Set Arch Linux specific options
cp ../site.config.m4 devtools/Site
# Prevent circular reference to CFLAGS when local CFLAGS are set via 'confOPTIMIZE' in site.config.m4
patch -p1 -i ../Patch02-Allow-setting-local-CFLAGS-devtools-M4-UNIX-defines.patch
# Enable the building of a static and shared library
patch -p1 -i ../Patch03-enable-building-shared-library.patch
# Extract milter version number from mfapi.h. Create SONAME and all symlinks for Linux
patch -p1 -i ../patch-for-linux-sharedlib.patch
}
build() {
cd "$_origname-$pkgver/$_pkgname"
./Build
}
#check() {
# These tests are run by the PKGBUILD maintainer and not shared with the PKGBUILD.
# cd "$_origname-$pkgver/$_pkgname"
# ./libmilter-tests/run-tests.sh
#}
package() {
# create install directory
install -vd "$pkgdir/usr/lib"
# install library files
cd "$_origname-$pkgver/$_pkgname"
./Build DESTDIR="$pkgdir" install
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$_pkgname" ../LICENSE
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$_pkgname" ../README
install -vDm644 -t "$pkgdir/usr/share/doc/$_pkgname" docs/*
# correct permissions
chown -R root:root "$pkgdir"
}
|