--- rubyfilter-0.12.orig/debian/changelog +++ rubyfilter-0.12/debian/changelog @@ -0,0 +1,34 @@ +rubyfilter (0.12-2.1) unstable; urgency=high + + * Non-maintainer upload. + * Build for current Ruby versions. (Closes: #722366) + + -- Christian Hofstaedtler Thu, 13 Feb 2014 01:02:11 +0100 + +rubyfilter (0.12-2) unstable; urgency=low + + * Drop Ruby1.6 support. Closes: #337102. + * Remove debian/docs. Closes: #337989. + + -- YAEGASHI Takeshi Mon, 19 Dec 2005 03:04:54 +0900 + +rubyfilter (0.12-1) unstable; urgency=low + + * New upstream release. + * Split package for Ruby1.6, Ruby1.8, docs, rdeliver utility. + * Uploaded, closes: Bug#209404. + + -- YAEGASHI Takeshi Mon, 22 Mar 2004 21:35:29 +0900 + +rubyfilter (0.10-0.2) unstable; urgency=low + + * debian/rdeliver.1: Manual page converted from rdeliver. + + -- YAEGASHI Takeshi Wed, 10 Sep 2003 03:24:43 +0900 + +rubyfilter (0.10-0.1) unstable; urgency=low + + * Experimental release. + + -- YAEGASHI Takeshi Thu, 28 Aug 2003 23:36:35 +0900 + --- rubyfilter-0.12.orig/debian/compat +++ rubyfilter-0.12/debian/compat @@ -0,0 +1 @@ +4 --- rubyfilter-0.12.orig/debian/control +++ rubyfilter-0.12/debian/control @@ -0,0 +1,38 @@ +Source: rubyfilter +Section: interpreters +Priority: optional +Maintainer: YAEGASHI Takeshi +Build-Depends-Indep: debhelper (>> 4.0.0), ruby, gem2deb +Standards-Version: 3.6.2.1 + +Package: rdeliver +Architecture: all +Section: mail +Depends: ruby, librfilter-ruby1.8 +Suggests: rubyfilter-doc +Description: A fully functioning mail filter with RubyFilter + rdeliver is a basic mail local delivery agent (DeliveryAgent of + RubyFilter) that can be used in place of procmail, maildrop, etc. in a + user's .forward or .qmail file. + . + The user supplies a delivery script that is written in Ruby, which + avoids the limitations of the crippled mini-languages so often used in + other DeliveryAgent programs. + +Package: rubyfilter-doc +Architecture: all +Description: A mail filtering library for Ruby (documentation) + RubyFilter is a framework for filtering mail, possibly modifying it, and + delivering it to various mailbox formats. + . + This package contains an online documentation of RubyFilter. + +Package: librfilter-ruby1.8 +Architecture: all +Depends: ruby-rubymail +Suggests: rubyfilter-doc +Description: A mail filtering library for Ruby + RubyFilter is a framework for filtering mail, possibly modifying it, and + delivering it to various mailbox formats. + . + This package contains a runtime library for Ruby. --- rubyfilter-0.12.orig/debian/copyright +++ rubyfilter-0.12/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by YAEGASHI Takeshi on +Thu, 28 Aug 2003 23:36:35 +0900. + +It was downloaded from http://www.lickey.com/rubyfilter/ + +Upstream Author: Matt Armstrong + +Copyright (c) 2003 Matt Armstrong. All rights reserved. + +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. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. --- rubyfilter-0.12.orig/debian/dirs +++ rubyfilter-0.12/debian/dirs @@ -0,0 +1 @@ +/usr/bin --- rubyfilter-0.12.orig/debian/rdeliver.1 +++ rubyfilter-0.12/debian/rdeliver.1 @@ -0,0 +1,149 @@ +.TH rdeliver 1 "September 2003" +.SH NAME +rdeliver \- Ruby mail filter script +.SH SYNOPSYS +.B rdeliver + +.RI [ script ] +.SH DESCRIPTION +.PP +This script serves as an example of how you can use the +.B RFilter::DeliveryAgent +class to perform mail delivery. +You can also use this script as a fully functioning mail filter. +.PP +This script is a basic mail local delivery agent +.RB ( DeliveryAgent ) +that can be used in place of procmail, maildrop, etc. in a user's +.I \&.forward +or +.I \&.qmail +file. The user supplies a delivery script that +is written in Ruby, which avoids the limitations of the crippled +mini\-languages so often used in other +.B DeliveryAgent +programs. +.SH USAGE +.PP +.B rdeliver +is invoked from the command line using: +.RS +.sp +% +.B rdeliver + +.RI [ script ] +.sp +.RE +The +.I script +argument is optional. +If omitted the script will look for a file called +.I \&.rdeliver +in the home directory. +.PP +Options are: +.TP +.BI \-\-load\-path " directory" +Prepend the given +.I directory +to ruby's load path. +.TP +.BI \-\-log " filename" +Log to the given +.IR filename . +If no log is specified, no logging occurs. +.TP +.BI \-\-home " directory" +Specify the home directory. +.B rdeliver +will change to this +.I directory +before reading and writing any files. +The home directory defaults to the value of the +.B HOME +or +.B LOGDIR +environment variable. +.SH DELIVERY SCRIPT +.PP +The delivery script runs in the context of a class called +.B Deliver +(in contrast, most ruby scripts run in the context of the +.B Object +class). So any methods added with +.B def +will be added to the +.B Deliver +class. +.PP +A minimal delivery script would be: +.RS +.sp + def main + agent\&.save('inbox') + end +.sp +.RE +This code defines a +.B Deliver#main +method that saves the mail into an mbox style mailbox. +.PP +The only API the +.B Deliver +script has is the +.B #agent +method. This retrieves the +.B RFilter::DeliveryAgent +object associated with the current message. +Using the API of the +.B RFilter::DeliveryAgent +object, you can access and modify the message body and headers, +defer or reject the message delivery, +and deliver into various mailbox formats. +.PP +See also +.B RFilter::DeliveryAgent +and +.BR Deliver . +.SH INSTALLATION +.PP +Assuming you have the +.B RubyMail +mail classes installed, you typically have to put something like this in your +.I .forward +file: +.RS +.sp +|"/usr/bin/rdeliver \-\-log /home/you/\&.rlog" +.sp +.RE +This will call +.B rdeliver +for each new message you get, and log to +.IR /home/you/\&.rlog . +.SH "CATASTROPHIC ERRORS" +The +.B rdeliver +script is very careful with errors. +If there is any problem, it logs the error to the log file you specify. +But if you do not specify a log file, +or the error occurs before the log file is opened, +a record of the error is placed in a file called +.I CATASTROPHIC_DELIVERY_FAILURE +in the home directory. +If that fails, the error information is printed to the standard output +in the hopes that it will be part of a bounce message. +In all cases, the exit code 75 is returned, +which tells the MTA to re\-try the delivery again. +.SH AUTHOR +.PP +.B rdeliver +and +.B RFilter +support classes were written by Matt Armstrong . +.PP +This document was originally an RD format document of +.B rdeliver +script. +This manual page was converted from it for Debian GNU/Linux system. --- rubyfilter-0.12.orig/debian/rules +++ rubyfilter-0.12/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# +DOCDIR = $(CURDIR)/debian/rubyfilter-doc/usr/share/doc/rubyfilter-doc +RUBY_VERSIONS = $(shell dh_ruby -p | sed -e 's/ruby//') + +configure: configure-stamp +configure-stamp: + dh_testdir + for i in $(RUBY_VERSIONS); do \ + mkdir build-tree-$$i; \ + ruby$$i -Cbuild-tree-$$i ../install.rb config \ + --rb-dir='$$std-ruby'; \ + done + touch configure-stamp + + +build: build-stamp + +build-stamp: configure + dh_testdir + for i in $(RUBY_VERSIONS); do \ + mkdir build-tree-$$i; \ + ruby$$i -Cbuild-tree-$$i ../install.rb setup; \ + done + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf build-tree-* + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + for i in $(RUBY_VERSIONS); do \ + mkdir build-tree-$$i; \ + ruby$$i -Cbuild-tree-$$i ../install.rb install \ + --prefix=$(CURDIR)/debian/librfilter-ruby$$i; \ + mv $(CURDIR)/debian/librfilter-ruby$$i/usr/bin/rdeliver.rb \ + $(CURDIR)/debian/rdeliver/usr/bin/rdeliver; \ + rm -rf $(CURDIR)/debian/librfilter-ruby$$i/usr/bin; \ + done + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs -A NEWS README THANKS TODO + install -d $(DOCDIR)/html + (cd doc && tar -cf - .) | (cd $(DOCDIR)/html && tar -xf -) + dh_installexamples + install -d $(DOCDIR)/examples/bin $(DOCDIR)/examples/test + cp bin/* $(DOCDIR)/examples/bin + (cd test && tar -cf - .) | (cd $(DOCDIR)/examples/test && tar -xf -) + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman debian/rdeliver.1 + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl +# dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure