--- trac-spamfilter-0.2.1+svn6871.orig/debian/changelog +++ trac-spamfilter-0.2.1+svn6871/debian/changelog @@ -0,0 +1,21 @@ +trac-spamfilter (0.2.1+svn6871-2) unstable; urgency=low + + * New maintainer email address. + * Add ${misc:Depends} to trac-spamfilter Depends. + * Move a number of packages from Build-Depends to Build-Depends-Indep. + * Tidy debian/rules. + * Add dummy debian/watch file. + * Use © symbol instead of (C) in debian/copyright to appease lintian. + * Bump Standards-Version to 3.8.0; no changes. + * Add description for 01-disable-spambayes-depends patch. + * Move to debhelper 7; no changes. + * Drop versioned dependency on Python 2.4. + * Update Git repository locations. + + -- Chris Lamb Mon, 16 Feb 2009 02:41:11 +0000 + +trac-spamfilter (0.2.1+svn6871-1) unstable; urgency=low + + * Initial release (Closes: #422441). + + -- Chris Lamb Tue, 22 Apr 2008 04:12:33 +0100 --- trac-spamfilter-0.2.1+svn6871.orig/debian/compat +++ trac-spamfilter-0.2.1+svn6871/debian/compat @@ -0,0 +1 @@ +7 --- trac-spamfilter-0.2.1+svn6871.orig/debian/rules +++ trac-spamfilter-0.2.1+svn6871/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +get-orig-source: + set -e ; \ + svn co http://svn.edgewall.com/repos/trac/sandbox/spam-filter trac-spamfilter-svn ; \ + REVISION=`svnversion trac-spamfilter-svn/` ; \ + find trac-spamfilter-svn/ -depth -type d -name ".svn" -print0 | xargs -0 rm -rf ; \ + tar cfz trac-spamfilter_0.2.1+svn$$REVISION.orig.tar.gz trac-spamfilter-svn/ ; \ + rm -rf trac-spamfilter-svn/ + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + python setup.py build + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + find -type f -name "*.pyc" -print0 | xargs -0 rm -f + rm -f TracSpamFilter.egg-info + +install: build + dh_testdir + dh_testroot + dh_clean + dh_install + python setup.py install --root=$(CURDIR)/debian/trac-spamfilter + +binary-indep: build install + dh_testdir + dh_testroot + dh_pysupport + dh_installchangelogs + dh_installdocs + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install --- trac-spamfilter-0.2.1+svn6871.orig/debian/watch +++ trac-spamfilter-0.2.1+svn6871/debian/watch @@ -0,0 +1 @@ +# Upstream development is done entirely in SVN. --- trac-spamfilter-0.2.1+svn6871.orig/debian/docs +++ trac-spamfilter-0.2.1+svn6871/debian/docs @@ -0,0 +1 @@ +README.txt --- trac-spamfilter-0.2.1+svn6871.orig/debian/README.Debian +++ trac-spamfilter-0.2.1+svn6871/debian/README.Debian @@ -0,0 +1,49 @@ +trac-spamfilter for Debian +-------------------------- + + CONTENTS + 1. Enabling trac-spamfilter globally + 2. Enabling trac-spamfilter per project + 3. Configuring the Akismet plugin + + +Enabling trac-spamfilter globally +================================= + + To enable, create or edit /etc/trac.ini and add: + + [components] + tracspamfilter.* = enabled + + You must restart tracd or your webserver for your changes to take effect. You + may also need to perform "trac-admin upgrade ". + + +Enabling trac-spamfilter per project +==================================== + + Edit the /conf/trac.ini file and the following: + + [components] + tracspamfilter.* = enabled + + You must restart tracd or your webserver for the changes to take effect. You + may also need to run "trac-admin upgrade ". + + +Configuring the Akismet plugin +============================== + + You can use trac-spamfilter with the Akismet web service to check content + for spam. For more information, please see . + + This filter requires a Wordpress API key. To configure your key, create or + edit the following section in /conf/trac.ini or /etc/trac.ini: + + [spam-filter] + akismet_api_key = 1234567890 + + You must restart tracd or your webserver for the changes to take effect. + + + -- Chris Lamb Tue, 22 Apr 2008 05:30:41 +0100 --- trac-spamfilter-0.2.1+svn6871.orig/debian/control +++ trac-spamfilter-0.2.1+svn6871/debian/control @@ -0,0 +1,24 @@ +Source: trac-spamfilter +Section: python +Priority: optional +Maintainer: Chris Lamb +Build-Depends: debhelper (>= 7), quilt +Build-Depends-Indep: python-support, python-setuptools +Standards-Version: 3.8.0 +Vcs-Git: git://git.chris-lamb.co.uk/debian/pkg-trac-spamfilter.git +Vcs-Browser: http://git.chris-lamb.co.uk/?p=debian/pkg-trac-spamfilter.git +Homepage: http://trac.edgewall.org/wiki/SpamFilter + +Package: trac-spamfilter +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, trac (>= 0.10), python-setuptools +Recommends: python-dnspython (>= 1.3.5), spambayes +Description: Spam-prevention plugin for Trac + This plugin attempts to reject contributions to Trac environments that contain + spam. It can use the following techniques: + . + * Regular expressions + * Akismet web service + * IP throttling + * IP blacklisting (requires python-dnspython package) + * Bayesian filtering (requires spambayes package) --- trac-spamfilter-0.2.1+svn6871.orig/debian/copyright +++ trac-spamfilter-0.2.1+svn6871/debian/copyright @@ -0,0 +1,48 @@ +This package was debianized by Chris Lamb on +Tue, 22 Apr 2008 05:35:17 +0100. + +It was downloaded from . + +Upstream Authors: + + Matthew Good + Christopher Lenz + Edgewall Software + +Copyright: + + Copyright © 2005-2006 Matthew Good + Copyright © 2006 Christopher Lenz + Copyright © 2006 Edgewall Software + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. Neither the name of the author nor the names of his contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is © 2008-2009, Chris Lamb and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- trac-spamfilter-0.2.1+svn6871.orig/debian/patches/01-disable-spambayes-depends +++ trac-spamfilter-0.2.1+svn6871/debian/patches/01-disable-spambayes-depends @@ -0,0 +1,16 @@ +# We don't strictly depend on the SpamBayes package as it's an optional +# component. dpkg already takes care of this stuff anyway. + +Index: spam-filter/setup.py +=================================================================== +--- spam-filter.orig/setup.py 2007-11-28 03:28:46.000000000 +0000 ++++ spam-filter/setup.py 2007-11-28 03:28:57.000000000 +0000 +@@ -44,7 +44,7 @@ + spamfilter.admin = tracspamfilter.admin + spamfilter.adapters = tracspamfilter.adapters + spamfilter.akismet = tracspamfilter.filters.akismet +- spamfilter.bayes = tracspamfilter.filters.bayes[SpamBayes] ++ spamfilter.bayes = tracspamfilter.filters.bayes + spamfilter.extlinks = tracspamfilter.filters.extlinks + spamfilter.ip_blacklist = tracspamfilter.filters.ip_blacklist[DNS] + spamfilter.ip_throttle = tracspamfilter.filters.ip_throttle --- trac-spamfilter-0.2.1+svn6871.orig/debian/patches/series +++ trac-spamfilter-0.2.1+svn6871/debian/patches/series @@ -0,0 +1 @@ +01-disable-spambayes-depends