mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
update mairix to git head, this has support for indexing IMAP folders
(TLS is currently disabled as cert verification isn't working correctly)
This commit is contained in:
+27
-10
@@ -1,24 +1,41 @@
|
||||
COMMENT= program for indexing & searching email
|
||||
|
||||
DISTNAME= mairix-0.23
|
||||
CATEGORIES= mail
|
||||
HOMEPAGE= http://www.rpcurnow.force9.co.uk/mairix/
|
||||
GH_ACCOUNT= vandry
|
||||
GH_PROJECT= mairix
|
||||
GH_COMMIT= 1cc06f4a73ba4b940008c1ffc398d2ac708cd6d6
|
||||
|
||||
# GPLv2
|
||||
DISTNAME= mairix-0.25pre20220920
|
||||
CATEGORIES= mail
|
||||
|
||||
# GPLv2 only
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
SITES= ${SITE_SOURCEFORGE:=mairix/} \
|
||||
http://www.rpcurnow.force9.co.uk/mairix/
|
||||
|
||||
WANTLIB= c z bz2
|
||||
# patched to disable TLS for now, cert verification fails
|
||||
# update DESCR if fixed
|
||||
#WANTLIB= bz2 c crypto lzma ssl z
|
||||
WANTLIB= bz2 c lzma z
|
||||
|
||||
BUILD_DEPENDS= devel/bison
|
||||
LIB_DEPENDS= archivers/bzip2
|
||||
LIB_DEPENDS= archivers/bzip2 \
|
||||
archivers/xz
|
||||
TEST_DEPENDS= shells/bash \
|
||||
sysutils/coreutils \
|
||||
misc/findutils
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" \
|
||||
LDFLAGS="-L${PREFIX}/lib"
|
||||
USE_GMAKE= Yes
|
||||
TEST_TARGET= check
|
||||
|
||||
NO_TEST= Yes
|
||||
pre-test:
|
||||
sed -i 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,' ${WRKSRC}/test/scripts/*.sh
|
||||
.for i in stat find
|
||||
ln -fs /usr/local/bin/g$i ${WRKDIR}/bin/$i
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mairix
|
||||
${INSTALL_DATA} ${WRKSRC}/*.eg ${PREFIX}/share/examples/mairix/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (mairix-0.23.tar.gz) = gE4jWxg8M1AHGijN2o60Zbz0Rwkqggb0BIYZGHW98vs=
|
||||
SIZE (mairix-0.23.tar.gz) = 193726
|
||||
SHA256 (mairix-0.25pre20220920-1cc06f4a.tar.gz) = e2qfVkLXuIPV5jzU88KbDJKiRP7ITuoNgHxRkWg60SQ=
|
||||
SIZE (mairix-0.25pre20220920-1cc06f4a.tar.gz) = 219041
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
"certificate verify failed" when trying to connect with TLS
|
||||
|
||||
Index: configure
|
||||
--- configure.orig
|
||||
+++ configure
|
||||
@@ -413,7 +413,7 @@ else
|
||||
fi
|
||||
|
||||
printf "Checking for OpenSSL : "
|
||||
-if [ `test_for_openssl` -eq 0 ]; then
|
||||
+if [ true || `test_for_openssl` -eq 0 ]; then
|
||||
printf "Yes\n";
|
||||
DEFS="${DEFS} -DUSE_OPENSSL"
|
||||
LIBS="${LIBS} -lssl -lcrypto"
|
||||
@@ -1,11 +0,0 @@
|
||||
--- dfasyn/compdfa.c.orig Sun Apr 19 09:57:26 2009
|
||||
+++ dfasyn/compdfa.c Sun Apr 19 09:56:53 2009
|
||||
@@ -425,7 +425,7 @@ do_next_dfa_state:
|
||||
|
||||
for (j=0; j<ntokens; j++) {
|
||||
int next_state = dfas[i]->map[j];
|
||||
- if (leads_to_result[next_state] == 0) {
|
||||
+ if ((next_state >= 0) && leads_to_result[next_state] == 0) {
|
||||
dfas[i]->map[j] = -1;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
mairix is a program for indexing and searching email messages stored in
|
||||
Maildir, MH or mbox folders. The search mode populates a "virtual"
|
||||
maildir (or MH) folder with symlinks which point to the real messages.
|
||||
This folder can be opened as usual in your mail program.
|
||||
Maildir, MH or mbox folders, or on an IMAP server. (Note that TLS
|
||||
support is currently disabled due to a problem with certificate
|
||||
validation, so it is recommended only to use this on localhost).
|
||||
|
||||
The search mode populates a "virtual" folder with symlinks which point
|
||||
to the real messages which can be opened as usual in your mail program.
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
@bin bin/mairix
|
||||
@man man/man1/mairix.1
|
||||
@man man/man5/mairixrc.5
|
||||
share/examples/mairix/
|
||||
share/examples/mairix/dotmairixrc.eg
|
||||
share/zsh/
|
||||
share/zsh/site-functions/
|
||||
share/zsh/site-functions/_mairix
|
||||
|
||||
Reference in New Issue
Block a user