mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
update mboxgrep to 0.7.13
still builds on llvm 22, but project has switched from pcre to pcre2.
This commit is contained in:
+7
-10
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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__ */
|
||||
@@ -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 */
|
||||
@@ -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>
|
||||
@@ -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;
|
||||
@@ -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)
|
||||
@@ -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);
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user