diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /mail-filter/razor | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'mail-filter/razor')
-rw-r--r-- | mail-filter/razor/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/razor/files/no-install-razor-agents.patch | 11 | ||||
-rw-r--r-- | mail-filter/razor/files/razor-2.85-cosmetic-pv-fix.patch | 22 | ||||
-rw-r--r-- | mail-filter/razor/files/razor-2.85-use-sha-not-sha1.patch | 119 | ||||
-rw-r--r-- | mail-filter/razor/metadata.xml | 17 | ||||
-rw-r--r-- | mail-filter/razor/razor-2.85-r2.ebuild | 79 |
6 files changed, 249 insertions, 0 deletions
diff --git a/mail-filter/razor/Manifest b/mail-filter/razor/Manifest new file mode 100644 index 000000000000..eccc86048baf --- /dev/null +++ b/mail-filter/razor/Manifest @@ -0,0 +1 @@ +DIST razor-agents-2.85.tar.bz2 81691 SHA256 7fe0afe73e5b3979444dd86e2ad25ea99bc05b23d5648d357544f78f0b6eb6d7 SHA512 31dded1969dde963389a5939514c29638ad07f45dbb2f4c633cf20ebc4abab94e65e9a6d8885233cdde686ef365aab11fa5eba2ca38d79c5b8fab689143ff5db WHIRLPOOL 6c8f98e8f1090204fb9e4f53f5f53fe810034829f781226bb156e23d2297d1a420e616be1b8ef8adfcecda358ef4d74e3d620d71f28d92490ca6c706bac53a43 diff --git a/mail-filter/razor/files/no-install-razor-agents.patch b/mail-filter/razor/files/no-install-razor-agents.patch new file mode 100644 index 000000000000..109eec039524 --- /dev/null +++ b/mail-filter/razor/files/no-install-razor-agents.patch @@ -0,0 +1,11 @@ +--- razor-agents-2.36/Makefile.old 2003-12-20 21:27:37.000000000 -0500 ++++ razor-agents-2.36/Makefile 2003-12-20 21:27:55.000000000 -0500 +@@ -816,7 +816,7 @@ + + # begin razor-agents + install_razor_agents :: +- $(INST_SCRIPT)/razor-client ++# $(INST_SCRIPT)/razor-client + # end razor-agents + + diff --git a/mail-filter/razor/files/razor-2.85-cosmetic-pv-fix.patch b/mail-filter/razor/files/razor-2.85-cosmetic-pv-fix.patch new file mode 100644 index 000000000000..c391d48fbc4f --- /dev/null +++ b/mail-filter/razor/files/razor-2.85-cosmetic-pv-fix.patch @@ -0,0 +1,22 @@ +--- a/lib/Razor2/Client/Version.pm 2007-05-10 22:32:10.000000000 +0200 ++++ b/lib/Razor2/Client/Version.pm 2010-03-25 11:11:36.911409707 +0100 +@@ -14,7 +14,7 @@ + + $PROTOCOL = 3; + +-$VERSION = '2.84'; ++$VERSION = '2.85'; + + 1; + +--- a/META.yml 2007-05-23 20:29:34.000000000 +0200 ++++ b/META.yml 2010-03-25 11:11:43.691408628 +0100 +@@ -1,7 +1,7 @@ + # http://module-build.sourceforge.net/META-spec.html + #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# + name: razor-agents +-version: 2.84 ++version: 2.85 + version_from: lib/Razor2/Client/Version.pm + installdirs: site + requires: diff --git a/mail-filter/razor/files/razor-2.85-use-sha-not-sha1.patch b/mail-filter/razor/files/razor-2.85-use-sha-not-sha1.patch new file mode 100644 index 000000000000..8e90ce2839d9 --- /dev/null +++ b/mail-filter/razor/files/razor-2.85-use-sha-not-sha1.patch @@ -0,0 +1,119 @@ +Patch-URL: http://cvs.fedoraproject.org/viewvc/devel/perl-Razor-Agent/razor-agents-2.85-use-sha-not-sha1.patch?view=log + +diff -urN razor-agents-2.85.orig/lib/Razor2/Client/Engine.pm razor-agents-2.85/lib/Razor2/Client/Engine.pm +--- razor-agents-2.85.orig/lib/Razor2/Client/Engine.pm 2005-06-13 19:42:25.000000000 -0400 ++++ razor-agents-2.85/lib/Razor2/Client/Engine.pm 2009-11-01 13:45:08.125369192 -0500 +@@ -1,7 +1,6 @@ + package Razor2::Client::Engine; + + use strict; +-use Digest::SHA1 qw(sha1_hex); + use Data::Dumper; + use Razor2::Signature::Ephemeral; + use Razor2::Engine::VR8; +diff -urN razor-agents-2.85.orig/lib/Razor2/Signature/Ephemeral.pm razor-agents-2.85/lib/Razor2/Signature/Ephemeral.pm +--- razor-agents-2.85.orig/lib/Razor2/Signature/Ephemeral.pm 2003-03-03 18:09:50.000000000 -0500 ++++ razor-agents-2.85/lib/Razor2/Signature/Ephemeral.pm 2009-11-01 13:45:08.125369192 -0500 +@@ -2,9 +2,13 @@ + + package Razor2::Signature::Ephemeral; + use strict; +-use Digest::SHA1; + use Data::Dumper; + ++BEGIN { ++ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 } ++ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) } ++} ++ + sub new { + + my ($class, %args) = @_; +@@ -86,16 +90,12 @@ + } + + my $digest; +- my $ctx = Digest::SHA1->new; + + if ($seclength > 128) { +- $ctx->add($section1); +- $ctx->add($section2); +- $digest = $ctx->hexdigest; ++ $digest = sha1_hex($section1, $section2); + } else { + debug("Sections too small... reverting back to orginal content."); +- $ctx->add($content); +- $digest = $ctx->hexdigest; ++ $digest = sha1_hex($content); + } + + debug("Computed e-hash is $digest"); +diff -urN razor-agents-2.85.orig/lib/Razor2/Signature/Whiplash.pm razor-agents-2.85/lib/Razor2/Signature/Whiplash.pm +--- razor-agents-2.85.orig/lib/Razor2/Signature/Whiplash.pm 2007-05-08 18:22:36.000000000 -0400 ++++ razor-agents-2.85/lib/Razor2/Signature/Whiplash.pm 2009-11-01 13:45:08.124368017 -0500 +@@ -7,7 +7,10 @@ + + package Razor2::Signature::Whiplash; + +-use Digest::SHA1; ++BEGIN { ++ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 } ++ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) } ++} + + sub new { + +@@ -683,13 +686,8 @@ + # the value of length to the nearest multiple of ``length_error''. + # Take the first 20 hex chars from SHA1 and call it the signature. + +- my $sha1 = Digest::SHA1->new(); +- +- $sha1->add($host); +- $sig = substr $sha1->hexdigest, 0, 12; +- +- $sha1->add($corrected_length); +- $sig .= substr $sha1->hexdigest, 0, 4; ++ $sig = substr sha1_hex($host), 0, 12; ++ $sig .= substr sha1_hex($corrected_length), 0, 4; + + push @sigs, $sig; + $sig_meta{$sig} = [$host, $corrected_length]; +diff -urN razor-agents-2.85.orig/lib/Razor2/String.pm razor-agents-2.85/lib/Razor2/String.pm +--- razor-agents-2.85.orig/lib/Razor2/String.pm 2005-06-13 17:09:59.000000000 -0400 ++++ razor-agents-2.85/lib/Razor2/String.pm 2009-11-01 13:45:08.123368518 -0500 +@@ -1,11 +1,15 @@ + # $Id$ + package Razor2::String; + +-use Digest::SHA1 qw(sha1_hex); + use URI::Escape; + use Razor2::Preproc::enBase64; + use Data::Dumper; + ++BEGIN { ++ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 } ++ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) } ++} ++ + #use MIME::Parser; + + require Exporter; +@@ -69,15 +73,8 @@ + return unless $text && $iv1 && $iv2; + die "no ref's allowed" if ref($text); + +- my $ctx = Digest::SHA1->new; +- $ctx->add($iv2); +- $ctx->add($text); +- my $digest = $ctx->hexdigest; +- +- $ctx = Digest::SHA1->new; +- $ctx->add($iv1); +- $ctx->add($digest); +- $digest = $ctx->hexdigest; ++ my $digest = sha1_hex($iv2, $text); ++ $digest = sha1_hex($iv1, $digest); + + return (hextobase64($digest), $digest); + } diff --git a/mail-filter/razor/metadata.xml b/mail-filter/razor/metadata.xml new file mode 100644 index 000000000000..a9c5caae301c --- /dev/null +++ b/mail-filter/razor/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <herd>net-mail</herd> + <maintainer> + <email>razor-admin@cloudmark.com</email> + <description> + A contact designated by upstream developers. This email address + should always be added to CC list of any Razor bug that needs + upstream care. + </description> + </maintainer> + <upstream> + <remote-id type="sourceforge">razor</remote-id> + </upstream> +</pkgmetadata> diff --git a/mail-filter/razor/razor-2.85-r2.ebuild b/mail-filter/razor/razor-2.85-r2.ebuild new file mode 100644 index 000000000000..5b1b0bf73310 --- /dev/null +++ b/mail-filter/razor/razor-2.85-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit perl-module + +MY_PN="razor-agents" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Vipul's Razor is a distributed, collaborative spam detection and filtering network" +HOMEPAGE="http://razor.sourceforge.net/" +SRC_URI="mirror://sourceforge/razor/${MY_P}.tar.bz2" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos" +# This package warrants IUSE doc +IUSE="" + +DEPEND="" + +RDEPEND="dev-perl/Net-DNS + virtual/perl-Net-Ping + virtual/perl-Time-HiRes + || ( virtual/perl-Digest-SHA dev-perl/Digest-SHA1 ) + dev-perl/URI + dev-perl/Digest-Nilsimsa" + +PATCHES=( + "${FILESDIR}/${PN}-2.85-use-sha-not-sha1.patch" + "${FILESDIR}/${PN}-2.85-cosmetic-pv-fix.patch" + ) + +S=${WORKDIR}/${MY_P} +# Install docs/ content +mydoc="docs/*" +SRC_TEST="do parallel" + +pkg_postinst() { + elog + elog "Run 'razor-admin -create' to create a default config file in your" + elog "home directory under /home/user/.razor. (Remember to change user to" + elog "your username from root before running razor-admin)" + elog + elog "Razor v2 requires reporters to be registered so their reputations can" + elog "be computed over time and they can participate in the revocation" + elog "mechanism. Registration is done with razor-admin -register. It has to be" + elog "manually invoked in either of the following ways:" + elog + elog "To register user foo with 's1kr3t' as password: " + elog + elog "razor-admin -register -user=foo -pass=s1kr3t" + elog + elog "To register with an email address and have the password assigned:" + elog + elog "razor-admin -register -user=foo@bar.com " + elog + elog "To have both (random) username and password assgined: " + elog + elog "razor-admin -register " + elog + elog "razor-admin -register negotiates a registration with the Nomination Server" + elog "and writes the identity information in" + elog "/home/user/.razor/identity-username, or /etc/razor/identity-username" + elog "when invoked as root." + elog + elog "You can edit razor-agent.conf to change the defaults. Config options" + elog "and their values are defined in the razor-agent.conf(5) manpage." + elog + elog "The next step is to integrate razor-check, razor-report and" + elog "razor-revoke in your mail system. If you are running Razor v1, the" + elog "change will be transparent, new versions of razor agents will overwrite" + elog "the old ones. You would still need to plugin razor-revoke in your MUA," + elog "since it's a new addition in Razor v2. If you are not running Razor v1," + elog "refer to manpages of razor-check(1), razor-report(1), and" + elog "razor-revoke(1) for integration instructions." + elog +} |