1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

add ricochet

An automated agent for tracing and reporting internet junk mail

PR:		30411
Submitted by:	Yen-Ming Lee <leeym@utopia.leeym.com>
This commit is contained in:
Ying-Chieh Liao 2001-10-15 11:37:30 +00:00
parent aebd64183a
commit d5c5a08f0c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48784
8 changed files with 125 additions and 0 deletions

View File

@ -169,6 +169,7 @@
SUBDIR += rblcheck
SUBDIR += regm
SUBDIR += rftp
SUBDIR += ricochet
SUBDIR += ripmime
SUBDIR += rlytest
SUBDIR += rmime

32
mail/ricochet/Makefile Normal file
View File

@ -0,0 +1,32 @@
# New ports collection makefile for: ricochet
# Date created: 02 September 2001
# Whom: Yen-Ming Lee <leeym@leeym.com>
#
# $FreeBSD$
#
PORTNAME= ricochet
PORTVERSION= 0.97
CATEGORIES= mail
MASTER_SITES= http://vipul.net/perl/sources/spamcontrol/ricochet/
MAINTAINER= leeym@leeym.com
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/XWhois.pm:${PORTSDIR}/net/p5-Net-XWhois \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
NO_BUILD= yes
post-patch:
.for file in install ricochet
@${PERL5} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/${file}
@${PERL5} -pi -e 's,%%INSTALL_DATA%%,${INSTALL_DATA},g' ${WRKSRC}/${file}
.endfor
do-install:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} ./install
.include <bsd.port.mk>

1
mail/ricochet/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (ricochet-0.97.tar.gz) = 99ef76f12777b2dcb882e132391904fa

View File

@ -0,0 +1,59 @@
--- install.orig Sat Oct 23 07:22:23 1999
+++ install Fri Sep 7 09:05:47 2001
@@ -11,13 +11,13 @@
$APP = 'Ricochet';
$VERSION = '0.92';
-$DIR = "$ENV{HOME}/.ricochet";
+$DIR = "%%PREFIX%%/share/ricochet";
@PACKAGE = qw/TODO CHANGES README ARTISTIC complaint-template ricochet abuse-contacts/;
@REQUIRED = qw /Mail::Internet Net::DNS Text::Template Net::XWhois LWP::UserAgent/;
-$BINDIR = '/usr/local/bin';
+$BINDIR = '%%PREFIX%%/bin';
-$EMAIL = defined $ENV{EMAIL} ? $ENV{EMAIL} : "$ENV{USERNAME}\@$ENV{HOSTNAME}";
+$EMAIL = defined $ENV{EMAIL} ? $ENV{EMAIL} : "$ENV{USER}\@$ENV{HOST}";
## Print an intro message.
print "\n---== $APP $VERSION Install ==---\n\n";
@@ -89,25 +89,25 @@
}
## Take config params:
-&take_input ("Where should I place the Ricochet executable [Default: $BINDIR]?", \$BINDIR);
-&take_input ("Return email address for complaint mails [Default: $EMAIL]?", \$EMAIL);
+#&take_input ("Where should I place the Ricochet executable [Default: $BINDIR]?", \$BINDIR);
+#&take_input ("Return email address for complaint mails [Default: $EMAIL]?", \$EMAIL);
## Make $HOME/.ricochet
unless (-e $DIR) {
print "\nMaking $DIR...\n";
- mkdir $DIR, 0700;
+ mkdir $DIR, 0755;
}
print "\n";
unless (-e "$DIR/whois") {
print "\nMaking $DIR/whois ...\n";
- mkdir "$DIR/whois", 0700;
+ mkdir "$DIR/whois", 0755;
}
print "\n";
unless (-e "$DIR/backup") {
print "\nMaking $DIR/backup ...\n";
- mkdir "$DIR/backup", 0700;
+ mkdir "$DIR/backup", 0755;
}
print "\n";
@@ -119,7 +119,7 @@
system "mv $DIR/$_ $DIR/backup/$_";
}
print "Copying $_ to $DIR ...\n";
- system "cp $_ $DIR";
+ system "%%INSTALL_DATA%% $_ $DIR";
print "\n";
} @PACKAGE;

View File

@ -0,0 +1,12 @@
--- ricochet.orig Fri Feb 9 03:23:19 2001
+++ ricochet Fri Sep 7 09:03:59 2001
@@ -574,7 +574,8 @@
sub initialize {
my $self = shift;
- my $rc = "$ENV{RICOCHET}" || "$ENV{HOME}/.ricochet"; $rc .= "/ricochetrc";
+ my $rc = "$ENV{RICOCHET}" || -f "$ENV{HOME}/.ricochet" ? "$ENV{HOME}/.ricochet" : "%%PREFIX%%/share/ricochet";
+ $rc .= "/ricochetrc";
Carp::croak "** Ricochet configuration file $rc doesn't exist. Aborting.\n" unless -e $rc;
open (RC, $rc);
grep {

View File

@ -0,0 +1 @@
An automated agent for tracing and reporting internet junk mail

6
mail/ricochet/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Ricochet is an automated agent for tracing and reporting internet junk
mail (a.k.a Spam). Ricochet analyses the headers of a spam to identity
the machines used for its injection, looks up the email addresses of the
machine owners and mails out a complaint to them. Ricochet uses various
network information resources like nameserver records, MX records and
Whois databases worldwide to collect and verify this information.

13
mail/ricochet/pkg-plist Normal file
View File

@ -0,0 +1,13 @@
bin/ricochet
share/ricochet/ARTISTIC
share/ricochet/CHANGES
share/ricochet/README
share/ricochet/TODO
share/ricochet/abuse-contacts
share/ricochet/complaint-template
share/ricochet/ricochet
share/ricochet/ricochetrc
share/ricochet/skip-list
@dirrm share/ricochet/whois
@dirrm share/ricochet/backup
@dirrm share/ricochet