22
33PortSystem 1.0
44PortGroup github 1.0
5+ PortGroup gpg_verify 1.0
56
6- set core_branch 2.3
7- set minor_version 21.1
7+ set core_branch 2.4
8+ set minor_version 2
89set core_version ${core_branch} .${minor_version}
9- github.setup dovecot core ${core_version}
10+ github.setup dovecot core ${core_version} v
1011github.tarball_from releases
1112name dovecot
12- revision 1
13+ revision 0
1314epoch 20060722
1415
1516categories mail
@@ -26,7 +27,7 @@ long_description Dovecot is an IMAP and POP3 server for \
2627 the common pitfalls.
2728
2829subport dovecot-sieve {
29- github.setup dovecot pigeonhole 0.5. ${minor_version}
30+ github.project pigeonhole
3031 revision 0
3132
3233 description Pigeonhole sieve and managesieve plugins for dovecot
@@ -65,18 +66,38 @@ subport dovecot-sieve {
6566
6667 homepage https://pigeonhole.dovecot.org/
6768
68- distname dovecot-${core_branch} -pigeonhole-${version}
6969 master_sites ${homepage} releases/${core_branch} /
70-
71- checksums rmd160 4936e99b2e3ca573acc600b2b060a26b5ee67775 \
72- sha256 0377db284b620723de060431115fb2e7791e1df4321411af718201d6925c4692 \
73- size 1956404
70+ distname dovecot-pigeonhole-${version}
71+
72+ checksums ${distname}${extract.suffix} \
73+ rmd160 10fb4b0a03c990aa391345898c8881bd16c099e4 \
74+ sha256 c2f90cf2a0154f94842ce0d8cafc81f282d0f98dfc3b51c3b7c2385c53316f97 \
75+ size 2071623
76+
77+ # https://repo.dovecot.org/DOVECOT-REPO-GPG-2.4
78+ set gpg_keyid 4EDC5219
79+
80+ gpg_verify.use_gpg_verification \
81+ yes
82+
83+ if {[option gpg_verify.use_gpg_verification]} {
84+ distfiles-append \
85+ ${distname}${extract.suffix} .sig
86+ checksums-append \
87+ ${distname}${extract.suffix} .sig \
88+ size 119
89+
90+ post-checksum {
91+ gpg_verify.verify_gpg_signature \
92+ ${filespath} /keyid-${gpg_keyid} .txt \
93+ ${distpath} /${distname}${extract.suffix} .sig \
94+ ${distpath} /${distname}${extract.suffix}
95+ }
96+ }
7497
7598 depends_lib-append \
7699 port:dovecot
77100
78- patchfiles dynamic_lookup-11-sieve.patch
79-
80101 configure.ldflags-append \
81102 -L${prefix} /lib/dovecot
82103 configure.args --with-managesieve=yes \
@@ -88,9 +109,32 @@ set perl5.major 5.34
88109if {${name} eq ${subport} } {
89110 master_sites https://dovecot.org/releases/${core_branch} /
90111 distname ${name} -${version}
91- checksums rmd160 a1dc152dc823680fd5675f982347251a47b6c8d3 \
92- sha256 2d90a178c4297611088bf7daae5492a3bc3d5ab6328c3a032eb425d2c249097e \
93- size 7842044
112+
113+ checksums ${distname}${extract.suffix} \
114+ rmd160 550e9fea2499f2cdac8b6d2e988eedbeb4e06e31 \
115+ sha256 2cd62e4d22b9fc1c80bd38649739950f0dbda34fbc3e62624fb6842264e93c6e \
116+ size 7807240
117+
118+ # https://repo.dovecot.org/DOVECOT-REPO-GPG-2.4
119+ set gpg_keyid 4EDC5219
120+
121+ gpg_verify.use_gpg_verification \
122+ yes
123+
124+ if {[option gpg_verify.use_gpg_verification]} {
125+ distfiles-append \
126+ ${distname}${extract.suffix} .sig
127+ checksums-append \
128+ ${distname}${extract.suffix} .sig \
129+ size 119
130+
131+ post-checksum {
132+ gpg_verify.verify_gpg_signature \
133+ ${filespath} /keyid-${gpg_keyid} .txt \
134+ ${distpath} /${distname}${extract.suffix} .sig \
135+ ${distpath} /${distname}${extract.suffix}
136+ }
137+ }
94138
95139 depends_build-append \
96140 port:bison \
@@ -112,22 +156,17 @@ if {${name} eq ${subport}} {
112156 ${default_login_user} group=${default_login_user} realname=Dovenull
113157
114158 patch.pre_args-replace -p0 -p1
115- patchfiles patch-doc-example-config-conf.d-10-master.conf.diff \
116- patch-src-master-master-settings.c.diff \
117- dynamic_lookup-11.patch \
118- dbox-storage.c.patch
159+ patchfiles patch-src-master-master-settings.c.diff
119160
120161 post-patch {
121162 reinplace " s|@@default_internal_user@@|${default_internal_user} |g" \
122- ${worksrcpath} /doc/example-config/conf.d/10- master.conf
163+ ${worksrcpath} /src/master/ master-settings.c
123164 reinplace " s|@@default_login_user@@|${default_login_user} |g" \
124- ${worksrcpath} /doc/example-config/conf.d/10- master.conf
165+ ${worksrcpath} /src/master/ master-settings.c
125166 }
126167
127168 configure.args --sysconfdir=${prefix} /etc \
128169 --localstatedir=${prefix} /var \
129- --with-ssl=openssl \
130- --with-zlib \
131170 --with-bzlib \
132171 --with-ssldir=${prefix} /etc/openssl \
133172 --with-shared-libs \
@@ -138,11 +177,6 @@ if {${name} eq ${subport}} {
138177 configure.env-append \
139178 PANDOC=false
140179
141- # Remove next release
142- # https://github.com/dovecot/core/commit/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830
143- configure.env-append \
144- LIBICU_LIBS=-licui18n\ -licuuc
145-
146180 # check if dovecot-sieve must be upgraded
147181 post-activate {
148182 if { ![catch {set result [registry_active dovecot-sieve]}]
@@ -160,15 +194,17 @@ if {${name} eq ${subport}} {
160194 configure.args-append --with-ldap=yes
161195 }
162196
163- variant solr requires lucene description {Enable apache-solr support} {
197+ variant solr description {Enable apache-solr support} {
164198 depends_lib-append port:curl port:expat
165199 depends_run-append port:apache-solr9
166200 configure.args-append --with-solr
167201 }
168202
169- variant lucene description {Enable lucene support} {
170- depends_lib-append port:clucene
171- configure.args-append --with-lucene
203+ # remove after 2027-01-01
204+ variant lucene \
205+ description " Enable Lucene support \[ deprecated]" {
206+ notes-append \
207+ " Dovecot no longer provides this option."
172208 }
173209
174210 variant libstemmer description {Use libstemmer for full-text search} {
0 commit comments