Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2001 09:59:11 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30411: new port: mail/ricochet
Message-ID:  <200109070159.f871xB284257@utopia.leeym.com>

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

>Number:         30411
>Category:       ports
>Synopsis:       new port: mail/ricochet
>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:   Thu Sep 06 19:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 4.4-RC FreeBSD 4.4-RC #15: Thu Aug 30 05:17:03 CST 2001 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

An automated agent for tracing and reporting internet junk mail

>How-To-Repeat:
	
>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:
#
#	ricochet
#	ricochet/Makefile
#	ricochet/pkg-comment
#	ricochet/pkg-descr
#	ricochet/pkg-plist
#	ricochet/distinfo
#	ricochet/files
#	ricochet/files/patch-install
#	ricochet/files/patch-ricochet
#
echo c - ricochet
mkdir -p ricochet > /dev/null 2>&1
echo x - ricochet/Makefile
sed 's/^X//' >ricochet/Makefile << 'END-of-ricochet/Makefile'
X# New ports collection makefile for:	ricochet
X# Date created:				02 September 2001
X# Whom:	      				Yen-Ming Lee <leeym@leeym.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ricochet
XPORTVERSION=	0.97
XCATEGORIES=	mail
XMASTER_SITES=	http://vipul.net/perl/sources/spamcontrol/ricochet/
X
XMAINTAINER=	leeym@leeym.com
X
XBUILD_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/XWhois.pm:${PORTSDIR}/net/p5-Net-XWhois \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
X
XNO_BUILD=	yes
X
Xpost-patch:
X.for file in install ricochet
X	@${PERL5} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/${file}
X	@${PERL5} -pi -e 's,%%INSTALL_DATA%%,${INSTALL_DATA},g' ${WRKSRC}/${file}
X.endfor
X
Xdo-install:
X	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} ./install
X
X.include <bsd.port.mk>
END-of-ricochet/Makefile
echo x - ricochet/pkg-comment
sed 's/^X//' >ricochet/pkg-comment << 'END-of-ricochet/pkg-comment'
XAn automated agent for tracing and reporting internet junk mail
END-of-ricochet/pkg-comment
echo x - ricochet/pkg-descr
sed 's/^X//' >ricochet/pkg-descr << 'END-of-ricochet/pkg-descr'
X    Ricochet is an automated agent for tracing and reporting  internet  junk
X    mail (a.k.a Spam). Ricochet analyses the headers of a spam  to  identity
X    the machines used for its injection, looks up the email addresses of the
X    machine owners and mails out a complaint to them. Ricochet uses  various
X    network information resources like nameserver records,  MX  records  and
X    Whois databases worldwide to collect and verify this information.
END-of-ricochet/pkg-descr
echo x - ricochet/pkg-plist
sed 's/^X//' >ricochet/pkg-plist << 'END-of-ricochet/pkg-plist'
Xbin/ricochet
Xshare/ricochet/ARTISTIC
Xshare/ricochet/CHANGES
Xshare/ricochet/README
Xshare/ricochet/TODO
Xshare/ricochet/abuse-contacts
Xshare/ricochet/complaint-template
Xshare/ricochet/ricochet
Xshare/ricochet/ricochetrc
Xshare/ricochet/skip-list
X@dirrm share/ricochet/whois
X@dirrm share/ricochet/backup
X@dirrm share/ricochet
END-of-ricochet/pkg-plist
echo x - ricochet/distinfo
sed 's/^X//' >ricochet/distinfo << 'END-of-ricochet/distinfo'
XMD5 (ricochet-0.97.tar.gz) = 99ef76f12777b2dcb882e132391904fa
END-of-ricochet/distinfo
echo c - ricochet/files
mkdir -p ricochet/files > /dev/null 2>&1
echo x - ricochet/files/patch-install
sed 's/^X//' >ricochet/files/patch-install << 'END-of-ricochet/files/patch-install'
X--- install.orig	Sat Oct 23 07:22:23 1999
X+++ install	Fri Sep  7 09:05:47 2001
X@@ -11,13 +11,13 @@
X 
X $APP = 'Ricochet'; 
X $VERSION = '0.92';
X-$DIR = "$ENV{HOME}/.ricochet"; 
X+$DIR = "%%PREFIX%%/share/ricochet";
X @PACKAGE = qw/TODO CHANGES README ARTISTIC complaint-template ricochet abuse-contacts/; 
X 
X @REQUIRED = qw /Mail::Internet Net::DNS Text::Template Net::XWhois LWP::UserAgent/;  
X 
X-$BINDIR = '/usr/local/bin'; 
X+$BINDIR = '%%PREFIX%%/bin'; 
X-$EMAIL = defined $ENV{EMAIL} ? $ENV{EMAIL} : "$ENV{USERNAME}\@$ENV{HOSTNAME}";
X+$EMAIL = defined $ENV{EMAIL} ? $ENV{EMAIL} : "$ENV{USER}\@$ENV{HOST}";
X 
X ## Print an intro message.
X print "\n---== $APP $VERSION Install ==---\n\n"; 
X@@ -89,25 +89,25 @@
X }
X 
X ## Take config params: 
X-&take_input ("Where should I place the Ricochet executable [Default: $BINDIR]?", \$BINDIR); 
X-&take_input ("Return email address for complaint mails [Default: $EMAIL]?", \$EMAIL);  
X+#&take_input ("Where should I place the Ricochet executable [Default: $BINDIR]?", \$BINDIR); 
X+#&take_input ("Return email address for complaint mails [Default: $EMAIL]?", \$EMAIL);  
X 
X ## Make $HOME/.ricochet 
X unless (-e $DIR) { 
X     print "\nMaking $DIR...\n"; 
X-    mkdir $DIR, 0700; 
X+    mkdir $DIR, 0755; 
X }
X print "\n"; 
X 
X unless (-e "$DIR/whois") { 
X     print "\nMaking $DIR/whois ...\n"; 
X-    mkdir "$DIR/whois", 0700; 
X+    mkdir "$DIR/whois", 0755; 
X }
X print "\n"; 
X 
X unless (-e "$DIR/backup") { 
X     print "\nMaking $DIR/backup ...\n"; 
X-    mkdir "$DIR/backup", 0700; 
X+    mkdir "$DIR/backup", 0755; 
X }
X print "\n"; 
X 
X@@ -119,7 +119,7 @@
X         system "mv $DIR/$_ $DIR/backup/$_";
X     }    
X     print "Copying $_ to $DIR ...\n"; 
X-    system "cp $_ $DIR"; 
X+    system "%%INSTALL_DATA%% $_ $DIR"; 
X     print "\n";
X } @PACKAGE; 
X 
END-of-ricochet/files/patch-install
echo x - ricochet/files/patch-ricochet
sed 's/^X//' >ricochet/files/patch-ricochet << 'END-of-ricochet/files/patch-ricochet'
X--- ricochet.orig	Fri Feb  9 03:23:19 2001
X+++ ricochet	Fri Sep  7 09:03:59 2001
X@@ -574,7 +574,8 @@
X 
X sub initialize { 
X     my $self = shift; 
X-    my $rc = "$ENV{RICOCHET}" || "$ENV{HOME}/.ricochet"; $rc .= "/ricochetrc"; 
X+    my $rc = "$ENV{RICOCHET}" || -f "$ENV{HOME}/.ricochet" ? "$ENV{HOME}/.ricochet" : "%%PREFIX%%/share/ricochet";
X+    $rc .= "/ricochetrc"; 
X     Carp::croak "** Ricochet configuration file $rc doesn't exist. Aborting.\n" unless -e $rc; 
X     open (RC, $rc); 
X     grep { 
END-of-ricochet/files/patch-ricochet
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?200109070159.f871xB284257>