diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-15 11:37:30 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-15 11:37:30 +0000 |
commit | d5c5a08f0c62c8ee5bf8ff1e9bc9d2b1a06bcb96 (patch) | |
tree | e6b1af7500d252f4de9ca2254aa97b36e6b17325 | |
parent | add notif2 (diff) |
add ricochet
An automated agent for tracing and reporting internet junk mail
PR: 30411
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
Notes
Notes:
svn path=/head/; revision=48784
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/ricochet/Makefile | 32 | ||||
-rw-r--r-- | mail/ricochet/distinfo | 1 | ||||
-rw-r--r-- | mail/ricochet/files/patch-install | 59 | ||||
-rw-r--r-- | mail/ricochet/files/patch-ricochet | 12 | ||||
-rw-r--r-- | mail/ricochet/pkg-comment | 1 | ||||
-rw-r--r-- | mail/ricochet/pkg-descr | 6 | ||||
-rw-r--r-- | mail/ricochet/pkg-plist | 13 |
8 files changed, 125 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 552560e86b1f..dacd24a0305e 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -169,6 +169,7 @@ SUBDIR += rblcheck SUBDIR += regm SUBDIR += rftp + SUBDIR += ricochet SUBDIR += ripmime SUBDIR += rlytest SUBDIR += rmime diff --git a/mail/ricochet/Makefile b/mail/ricochet/Makefile new file mode 100644 index 000000000000..ca065077e9b5 --- /dev/null +++ b/mail/ricochet/Makefile @@ -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> diff --git a/mail/ricochet/distinfo b/mail/ricochet/distinfo new file mode 100644 index 000000000000..657031466444 --- /dev/null +++ b/mail/ricochet/distinfo @@ -0,0 +1 @@ +MD5 (ricochet-0.97.tar.gz) = 99ef76f12777b2dcb882e132391904fa diff --git a/mail/ricochet/files/patch-install b/mail/ricochet/files/patch-install new file mode 100644 index 000000000000..88080974bf35 --- /dev/null +++ b/mail/ricochet/files/patch-install @@ -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; + diff --git a/mail/ricochet/files/patch-ricochet b/mail/ricochet/files/patch-ricochet new file mode 100644 index 000000000000..267113b8ac1a --- /dev/null +++ b/mail/ricochet/files/patch-ricochet @@ -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 { diff --git a/mail/ricochet/pkg-comment b/mail/ricochet/pkg-comment new file mode 100644 index 000000000000..89805a3a9045 --- /dev/null +++ b/mail/ricochet/pkg-comment @@ -0,0 +1 @@ +An automated agent for tracing and reporting internet junk mail diff --git a/mail/ricochet/pkg-descr b/mail/ricochet/pkg-descr new file mode 100644 index 000000000000..62bfcbe93f38 --- /dev/null +++ b/mail/ricochet/pkg-descr @@ -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. diff --git a/mail/ricochet/pkg-plist b/mail/ricochet/pkg-plist new file mode 100644 index 000000000000..5e56dac816be --- /dev/null +++ b/mail/ricochet/pkg-plist @@ -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 |