Update to mboxgrep-0.7.9.

This commit is contained in:
ajacoutot 2015-06-19 12:44:49 +00:00
parent 668cd8b152
commit 3826ce05c6
5 changed files with 51 additions and 22 deletions

View File

@ -1,31 +1,29 @@
# $OpenBSD: Makefile,v 1.13 2015/01/22 18:41:16 naddy Exp $
# $OpenBSD: Makefile,v 1.14 2015/06/19 12:44:49 ajacoutot Exp $
COMMENT= scan mailboxes for messages matching a regular expression
COMMENT= scan mailboxes for messages matching a regular expression
DISTNAME= mboxgrep-0.7.8
REVISION = 0
CATEGORIES= mail
DISTNAME= mboxgrep-0.7.9
CATEGORIES= mail
HOMEPAGE= http://www.mboxgrep.org/
HOMEPAGE= http://www.mboxgrep.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c z pcre
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mboxgrep/}
WANTLIB += bz2 c pcre z
LIB_DEPENDS= devel/pcre
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mboxgrep/}
WRKSRC= ${WRKDIR}/mboxgrep
LIB_DEPENDS= archivers/bzip2 \
devel/pcre
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_STYLE= gnu dest
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
NO_TEST= Yes
# md5.c:122: warning: incompatible implicit declaration of built-in function 'bcopy'
CFLAGS += -DSTDC_HEADERS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mboxgrep ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/mboxgrep.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/mboxgrep.info ${PREFIX}/info
NO_TEST= Yes
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (mboxgrep-0.7.8.tar.gz) = G3t2imhdXg8pPcl3xROaScV5lpTxvCzXkJagxnXOhtM=
SIZE (mboxgrep-0.7.8.tar.gz) = 68577
SHA256 (mboxgrep-0.7.9.tar.gz) = eNN1oFw1IPrUvKiFCdTaDb6fujHzZ5C9IIgOISrNmdc=
SIZE (mboxgrep-0.7.9.tar.gz) = 76067

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_getopt_c,v 1.1 2015/06/19 12:44:49 ajacoutot Exp $
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__ */

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_main_c,v 1.1 2015/06/19 12:44:49 ajacoutot Exp $
main.c:317: warning: dereferencing 'void *' pointer
main.c:317: error: request for member '_file' in something not a structure or union
--- src/main.c.orig Fri Jun 19 14:37:26 2015
+++ src/main.c Fri Jun 19 14:37:27 2015
@@ -55,7 +55,7 @@ pcre_extra *hints;
char *boxname, *outboxname, *pipecmd, *tmpfilename;
int maildir_count = 0;
int count = 0;
-void *tmpp;
+FILE *tmpp;
checksum_t *cs;
int

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2004/09/15 09:09:42 espie Exp $
bin/mboxgrep
@comment $OpenBSD: PLIST,v 1.3 2015/06/19 12:44:49 ajacoutot Exp $
@bin bin/mboxgrep
@info info/mboxgrep.info
@man man/man1/mboxgrep.1