Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2004 15:14:28 +0000
From:      "Stefan A. Deutscher" <sa.deutscher@tiscali.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sad@mailaps.org
Subject:   ports/68144: New port: mail/renattach Filter to selectively rename or strip mail attachments
Message-ID:  <20040620151428.B49052@tiscali.de>
Resent-Message-ID: <200406201300.i5KD0aXT019390@freefall.freebsd.org>

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

>Number:         68144
>Category:       ports
>Synopsis:       New port: mail/renattach Filter to selectively rename or strip mail attachments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 13:00:36 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stefan A. Deutscher
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Usually pretty organized
>Environment:
System: FreeBSD dvorak.asylum.invalid 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Nov 21 21:48:14 CET 2003 root@dvorak.asylum.net:/usr/src/sys/i386/compile/GENERICCAM i386


	FreeBSD 5.1-RELEASE i386 on an Athlon XP-1700
>Description:
	Made a port of renattach-1.2.1 for inclusion in the ports tree
	renattach is a mail filter to selectively rename or remove mail attachments
	Passes portlint -A, repeated make install/deinstall/package/reinstall etc.
	cycles as suggested in the Porters handbook
>How-To-Repeat:
	Start reading at the top again :-)
>Fix:

	shar file attached

--- renattach-1.2.1.shar begins here ---
# 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:
#
#	renattach
#	renattach/Makefile
#	renattach/distinfo
#	renattach/pkg-descr
#	renattach/pkg-plist
#
echo c - renattach
mkdir -p renattach > /dev/null 2>&1
echo x - renattach/Makefile
sed 's/^X//' >renattach/Makefile << 'END-of-renattach/Makefile'
X# New ports collection makefile for:   renattach
X# Date created:        20 June 2004
X# Whom:                Stefan A. Deutscher (sad@mailaps.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	renattach
XPORTVERSION=	1.2.1
XCATEGORIES=	mail
XMASTER_SITES=	http://www.pc-tools.net/files/unix/
XPKGNAMEPREFIX=
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Rename or remove certain attachments or kill entire messages
X
XGNU_CONFIGURE=	yes
X
XMAN1=		renattach.1
XMANCOMPRESSED=	no
X
X# the special rules, in the order they are called
Xpost-build:
X	@${ECHO} ====================
X	@${ECHO} Now proceed as usual: Type \'make install clean\' to, well, install and clean
X	@${ECHO} Then check with ${DOCSDIR}/INSTALL
X	@${ECHO} After that you may need to adjust renattach.conf to your needs
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/INSTALL  ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-renattach/Makefile
echo x - renattach/distinfo
sed 's/^X//' >renattach/distinfo << 'END-of-renattach/distinfo'
XMD5 (renattach-1.2.1.tar.gz) = bd6bbcb74d8a7f8a94655aa73c1ab5ce
END-of-renattach/distinfo
echo x - renattach/pkg-descr
sed 's/^X//' >renattach/pkg-descr << 'END-of-renattach/pkg-descr'
Xrenattach is a fast and efficient e-mail stream filter written by Jem
XBerkes. It can rename or delete potentially dangerous attachments or
Xeven eliminate entire messages to help sites deal with resource strains
Xcaused by virus floods. Unlike conventional virus scanners, there are no
Xspecific virus or worm definitions. Instead, attachments are classified
Xbased on file extension and executable encoded body content.
X
XFeatures
X- Fast, efficient, lightweight, little overhead, pure C code
X- Recognizes both MIME and uuencoded attachments
X- Compliant with RFC2047 and RFC2231, handles encoded filenames
X- Capable of reading filenames inside ZIP archives, on the fly
X- Can rename or delete attachments, or kill entire messages
X- Can detect executables that carry DOS/Windows signature
X- Supports list of banned filenames (great for handling floods)
X- Simple pipe/stream operation; can be used within many filtering systems
X- Can be used directly as a content_filter for Postfix MTA
X- Can be installed as a local delivery agent for Sendmail MTA
X
X
XWWW: http://www.pc-tools.net/unix/renattach/
X
XHave fun.         Stefan   (sad@mailaps.org)
END-of-renattach/pkg-descr
echo x - renattach/pkg-plist
sed 's/^X//' >renattach/pkg-plist << 'END-of-renattach/pkg-plist'
Xbin/renattach
Xetc/renattach.conf.ex
X%%PORTDOCS%%share/doc/renattach/INSTALL
X%%PORTDOCS%%@dirrm share/doc/renattach
END-of-renattach/pkg-plist
exit
--- renattach-1.2.1.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:
 X-GNATS-Notify: 
 
 



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