update mboxgrep to 0.7.13

still builds on llvm 22, but project has switched from pcre to pcre2.
This commit is contained in:
daniel
2026-05-30 22:05:37 +00:00
parent f17ce5aa43
commit d3e6ddd6ba
10 changed files with 11 additions and 107 deletions
+7 -10
View File
@@ -1,7 +1,8 @@
COMMENT= scan mailboxes for messages matching a regular expression
DISTNAME= mboxgrep-0.7.9
REVISION= 1
V= 0.7.13
DISTNAME= mboxgrep-${V}
CATEGORIES= mail
HOMEPAGE= http://www.mboxgrep.org/
@@ -9,18 +10,14 @@ HOMEPAGE= http://www.mboxgrep.org/
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += bz2 c pcre z
WANTLIB += bz2 c pcre2-32 z
SITES= ${SITE_SOURCEFORGE:=mboxgrep/}
SITES= https://git.datatipp.se/dspiljar/mboxgrep/releases/download/${V}/
LIB_DEPENDS= archivers/bzip2 \
devel/pcre
devel/pcre2
CONFIGURE_STYLE= gnu dest
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CFLAGS += -DHAVE_CONFIG_H
CONFIGURE_STYLE= gnu
NO_TEST= Yes
+2 -2
View File
@@ -1,2 +1,2 @@
SHA256 (mboxgrep-0.7.9.tar.gz) = eNN1oFw1IPrUvKiFCdTaDb6fujHzZ5C9IIgOISrNmdc=
SIZE (mboxgrep-0.7.9.tar.gz) = 76067
SHA256 (mboxgrep-0.7.13.tar.gz) = viydZbvaqXqGAxPjlJOM9L3Lym5fhNX7mENOw4uNZbQ=
SIZE (mboxgrep-0.7.13.tar.gz) = 254085
-13
View File
@@ -1,13 +0,0 @@
getopt.c:457: warning: incompatible implicit declaration of built-in function 'strlen'
--- src/getopt.c.orig Fri Jun 19 14:38:04 2015
+++ src/getopt.c Fri Jun 19 14:38:27 2015
@@ -30,6 +30,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not __GNUC__ */
-13
View File
@@ -1,13 +0,0 @@
fix for -fno-common
Index: src/main.c
--- src/main.c.orig
+++ src/main.c
@@ -47,6 +47,7 @@
#include <dmalloc.h>
#endif /* HAVE_LIBDMALLOC */
+option_t config;
regex_t posix_pattern;
#ifdef HAVE_LIBPCRE
pcre *pcre_pattern;
@@ -1,11 +0,0 @@
Index: src/mboxgrep.h
--- src/mboxgrep.h.orig
+++ src/mboxgrep.h
@@ -129,6 +129,6 @@ typedef struct
}
option_t;
-option_t config;
+extern option_t config;
#endif /* MBOXGREP_H */
-17
View File
@@ -1,17 +0,0 @@
Index: src/misc.c
--- src/misc.c.orig
+++ src/misc.c
@@ -20,12 +20,9 @@
-#define _XOPEN_SOURCE /* Pull in strptime(3) from time.h */
-#define _BSD_SOURCE /* Compensate for _XOPEN_SOURCE to pull in strdup(3)
- * from string.h. */
-
#include <config.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>
#include <stdlib.h>
#include <time.h>
-12
View File
@@ -1,12 +0,0 @@
Index: src/scan.c
--- src/scan.c.orig
+++ src/scan.c
@@ -77,7 +77,7 @@ void scan_mailbox (char path[])
/* {{{ */
{
static FILE *outf;
- extern FILE *tmpp;
+ extern void *tmpp;
static mbox_t *mbox, *out;
#ifdef HAVE_LIBPCRE
extern pcre *pcre_pattern;
-15
View File
@@ -1,15 +0,0 @@
Index: src/wrap.c
--- src/wrap.c.orig
+++ src/wrap.c
@@ -107,9 +107,9 @@ FILE *m_fdopen (int fildes, const char *mode)
#ifdef HAVE_LIBZ
-gzFile *m_gzdopen (int fildes, const char *mode)
+gzFile m_gzdopen (int fildes, const char *mode)
{
- gzFile *blah;
+ gzFile blah;
blah = gzdopen (fildes, mode);
if (blah == NULL)
-12
View File
@@ -1,12 +0,0 @@
Index: src/wrap.h
--- src/wrap.h.orig
+++ src/wrap.h
@@ -57,7 +57,7 @@ int m_open (const char *pathname, int flags, mode_t mo
FILE *m_fopen (const char *path, const char *mode);
FILE *m_fdopen (int fildes, const char *mode);
#ifdef HAVE_LIBZ
-gzFile *m_gzdopen (int fildes, const char *mode);
+gzFile m_gzdopen (int fildes, const char *mode);
#endif /* HAVE_LIBZ */
DIR *m_opendir (const char *name);
+2 -2
View File
@@ -1,4 +1,4 @@
Mboxgrep is a small utility that scans a mailbox for messages matching
a regular expression. Found messages can be either displayed on standard
output, counted, deleted, piped to a shell command or written to another
mailbox.
output, counted, deleted, piped to a shell command or written to another
mailbox.