Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 11:40:23 +0100 (CET)
From:      Anders Nordby <anders@fix.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31550: New port: mail/mboxgrep
Message-ID:  <20011028104023.5DA2C3D42@totem.fix.no>

next in thread | raw e-mail | index | archive | help

>Number:         31550
>Category:       ports
>Synopsis:       New port: mail/mboxgrep
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 02:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Anders Nordby
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:

	<Relevant environment information (multiple lines)>

>Description:

New port of mboxgrep, a utility to scan mailboxes for messages matching a
regular expression.

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mboxgrep
#	mboxgrep/files
#	mboxgrep/files/patch-wrap.h
#	mboxgrep/files/patch-Makefile.in
#	mboxgrep/Makefile
#	mboxgrep/distinfo
#	mboxgrep/pkg-comment
#	mboxgrep/pkg-descr
#	mboxgrep/pkg-plist
#
echo c - mboxgrep
mkdir -p mboxgrep > /dev/null 2>&1
echo c - mboxgrep/files
mkdir -p mboxgrep/files > /dev/null 2>&1
echo x - mboxgrep/files/patch-wrap.h
sed 's/^X//' >mboxgrep/files/patch-wrap.h << 'END-of-mboxgrep/files/patch-wrap.h'
X--- src/wrap.h.orig	Fri Oct 26 15:08:54 2001
X+++ src/wrap.h	Sun Oct 28 11:06:48 2001
X@@ -28,6 +28,7 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <dirent.h>
X+#include <unistd.h>
X 
X int m_open(const char *pathname, int flags, mode_t mode);
X 
END-of-mboxgrep/files/patch-wrap.h
echo x - mboxgrep/files/patch-Makefile.in
sed 's/^X//' >mboxgrep/files/patch-Makefile.in << 'END-of-mboxgrep/files/patch-Makefile.in'
X--- src/Makefile.in.orig	Fri Oct 26 15:08:54 2001
X+++ src/Makefile.in	Sun Oct 28 10:46:33 2001
X@@ -19,9 +19,9 @@
X 
X CC		= 	@CC@
X OBJS		=	info.o main.o mh.o scan.o maildir.o mbox.o misc.o \
X-			wrap.o
X+			wrap.o getopt.o getopt1.o
X SRCS		= 	info.c main.c mh.c scan.c maildir.c mbox.c misc.c \
X-			wrap.c
X+			wrap.c getopt.c getopt1.c
X TARGET		=	mboxgrep
X CFLAGS		=	@CFLAGS@
X LIBS		=	@LIBS@
END-of-mboxgrep/files/patch-Makefile.in
echo x - mboxgrep/Makefile
sed 's/^X//' >mboxgrep/Makefile << 'END-of-mboxgrep/Makefile'
X# New ports collection makefile for:	mboxgrep
X# Date created:				28 October 2001
X# Whom:					Anders Nordby <anders@fix.no>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mboxgrep
XPORTVERSION=	0.7.0
XCATEGORIES=	mail
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	anders@fix.no
X
X.if defined(WITH_PCRE)
XLIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
X.endif
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
X		LIBS="-L${LOCALBASE}/lib"
X
XMAN1=	mboxgrep.1
X
XDOCS=	ChangeLog NEWS README TODO
X
Xpost-install:
X	install-info ${PREFIX}/info/mboxgrep.info ${PREFIX}/info/dir
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-mboxgrep/Makefile
echo x - mboxgrep/distinfo
sed 's/^X//' >mboxgrep/distinfo << 'END-of-mboxgrep/distinfo'
XMD5 (mboxgrep-0.7.0.tar.gz) = 7259f9ed9be88666e3386fbd8db9db28
END-of-mboxgrep/distinfo
echo x - mboxgrep/pkg-comment
sed 's/^X//' >mboxgrep/pkg-comment << 'END-of-mboxgrep/pkg-comment'
XUtility to scan mailboxes for messages matching a regular expression
END-of-mboxgrep/pkg-comment
echo x - mboxgrep/pkg-descr
sed 's/^X//' >mboxgrep/pkg-descr << 'END-of-mboxgrep/pkg-descr'
Xmboxgrep is a small utility that scans a mailbox for messages matching a
Xregular expression. Found messages can be either displayed on standard output,
Xcounted, deleted, piped to a shell command or written to another mailbox.
X
XIts features include:
X
X* ability to limit the search to message body or headers (although the whole
Xmessage is scanned by default)
X* message counting
X* ability to invert the sense of matching
X* ability to write found messages to another mailbox
X* support for mbox (either plain or compressed), MH, nnmh, nnml and maildir
Xfolders
X* support for basic and extended POSIX regular expressions, and, optionally,
XPerl-complatible regular expressions (if linked with the PCRE library)
X
XWWW: http://mboxgrep.sourceforge.net/
X
X- Anders Nordby <anders@fix.no>
END-of-mboxgrep/pkg-descr
echo x - mboxgrep/pkg-plist
sed 's/^X//' >mboxgrep/pkg-plist << 'END-of-mboxgrep/pkg-plist'
Xbin/mboxgrep
X@unexec install-info --delete %D/info/mboxgrep.info %D/info/dir
Xinfo/mboxgrep.info
X@exec install-info %D/info/mboxgrep.info %D/info/dir
X%%PORTDOCS%%share/doc/mboxgrep/ChangeLog
X%%PORTDOCS%%share/doc/mboxgrep/NEWS
X%%PORTDOCS%%share/doc/mboxgrep/README
X%%PORTDOCS%%share/doc/mboxgrep/TODO
X%%PORTDOCS%%@dirrm share/doc/mboxgrep
END-of-mboxgrep/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011028104023.5DA2C3D42>